#Touched event not working
22 messages · Page 1 of 1 (latest)
Just while loop it, add a local function inside for the functionality of it & add a boolean value on the while loop, and if a player touches the bool val will change to the opposite
alr im messing around checking how stuff works i haven't learned boolean value and that stuff yet
** You are now Level 5! **
why does this not work tho?
uhhh
i guess it's just wrong way to do it
alr thanks
Oh it's
local CanTouch = true -- your boolean value
while CanTouch then -- If your boolean value is true, then it'll keep running until it's false/opposite
print("Will repeat opperation when the Boolean is always true")
if CanTouch then -- If the bool is true
CanTouch = false -- set this to false, then it won't ever run again
wait()
end
alr
This is only an example above I gave
Don't copy it, just think of it an as advice/example on how you may do it
You will use "While loop" and the boolean values so yeah
yh im trying to actually learn how all of this works plus it's not for my game im just messing around learning stuff
Oh don't worry
I do the same as you do
If there's no further discussion, etc etc
You may close this post now
alr
blitz i recommend watching thedevking he will really teach you a lot of stuff
just a recommendation
im watching him rn lol