#How do you make an I-frames system?

79 messages · Page 1 of 1 (latest)

long sphinx
#

im trying to make an ability with I-frames but i dont know how to make an I-frames system, qutie simple question

deep sand
#

u can check if the player has iframes attribute or folder inside of them and if they do then just return out of the damage script or function

brittle pawn
long sphinx
deep sand
#

yeah basically

long sphinx
#

there are many models for the player

#

i mean characters

#

so when the player is assigned a character i also assign the attribute?

deep sand
#

yes

#

when the player spawns just give it a iframes attribute

#

and set it to false

long sphinx
#

ok but how do i set the attribute type?

brittle pawn
#

let me check actually

#

i havent researched that

long sphinx
brittle pawn
#

you could also just

#

do the more simple and normal way by creating a folder (for organization) in the character when the player is added and check also if the character is added (incase of a trillion ping or smth)

#

and then

#

add a bool value to that folder u created

#

and if u want make it so when the boolvalue is true then the iframes are on

#

and when its false its not on

long sphinx
#

friendly fire

#

well to disable it

brittle pawn
#

this is just an idea for you if u wanna use or manipulate

brittle pawn
#

do you think you got your solution?

#

or do you need anymore help in this topic

long sphinx
brittle pawn
#

its basically just

#

add folder - insert value into folder

#

boom

#

and u just edit everything urself

#

but

#

let me check

#

how to do the attribute thing rq

deep sand
#

char:SetAttribute("iframe", false)

#

whoops

long sphinx
deep sand
#

and u can do

#

char:GetAttribute("iframe") to get it

brittle pawn
#

oh yea

long sphinx
brittle pawn
#

use setattribute to make or modify a attribute

#

but make sure to check if the attribute exists already depending on ur situation

#

so you dont create clones

long sphinx
#

ARE YOU FU-

brittle pawn
#

send your script

long sphinx
#

spawnRE is obviously a remote event

#

oh wait a second...

deep sand
#

it should of worked

brittle pawn
#

it might be the fireserver function

#

that is the issue

long sphinx
#

should i replace it to if not plr.character thingy

brittle pawn
#

cuz he has parameters

#

eh

#

i think just typing

deep sand
#

shouldnt u be setting it in newCharacter?

brittle pawn
#

if plr.character ~= nil

#

is better

deep sand
#

or smthn

long sphinx
brittle pawn
# long sphinx

also you have to make the attribute when the player is added, it functions a bit weird when u do it like that

long sphinx
brittle pawn
#

its less text

deep sand
brittle pawn
#

it just makes ur script formatted better

deep sand
#

idk how ur script is layed out so idk

#

tho

long sphinx
#

kuz it works now when its under

deep sand
#

yeah that works too

long sphinx
#

ok thanks

brittle pawn
#

alright i hope i helped at all