#Touched event not working

22 messages · Page 1 of 1 (latest)

tribal estuary
#

Look, there's another way you could do this

#

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

primal laurel
#

alr im messing around checking how stuff works i haven't learned boolean value and that stuff yet

fickle blazeBOT
#

studio** You are now Level 5! **studio

primal laurel
#

why does this not work tho?

#

uhhh

#

i guess it's just wrong way to do it

#

alr thanks

tribal estuary
#
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
primal laurel
#

alr

tribal estuary
#

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

primal laurel
tribal estuary
#

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

primal laurel
#

alr

neon burrow
#

blitz i recommend watching thedevking he will really teach you a lot of stuff

#

just a recommendation