#How do you make an I-frames system?
79 messages · Page 1 of 1 (latest)
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
and continuing this you can disable the iframes attribute if you want in specific situations for example how the strongest battlegrounds does it
so basicaly make a boolean attribute for the player and use it in the scripts where the player is supposed to be damaged?
yeah basically
but one small issue
there are many models for the player
i mean characters
so when the player is assigned a character i also assign the attribute?
ok but how do i set the attribute type?
so
let me check actually
i havent researched that
and i didint do that in a while
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
yknow i might add folder for another reason
friendly fire
well to disable it
this is just an idea for you if u wanna use or manipulate
that works
do you think you got your solution?
or do you need anymore help in this topic
i think i might go with the attribute way kuz your's seems a bit complicated
not really but its an additional step
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
ight
oh yea
i know that one
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
ARE YOU FU-
send your script
it should of worked
should i replace it to if not plr.character thingy
shouldnt u be setting it in newCharacter?
or smthn
thats the same damn thing
also you have to make the attribute when the player is added, it functions a bit weird when u do it like that
in???
the function new character
it just makes ur script formatted better
you meant under?
kuz it works now when its under
yeah that works too
ok thanks
alright i hope i helped at all