So. I'm kinda getting angry because roblox doesn't work, again.
I have a couple of scripts that all get actived with OnTouch.
HOWEVER! ONE OF THE 8 DOESNT WORK? And all of them start and end the same.
Can you guys tell me why OnTouch doesn't register the part getting touched. WHILE ANOTHER SCRIPT IN THE SAME BRICK WITH ONTOUCH, GET'S REGISTERED....
local function onTouch() warn("HALLOOOOOOOOOOOOOOOOOOOOOOOOO") print("HALLOOOOOOOOOOOOOOOOOOOOOOOOO") if (Gestart == 0) then wait() Gestart = 1 wait() warn("Voorshow Gestart Value = " ..Gestart) if (Playing == 0) then warn("Voorshow Playing Value = " ..Playing.. ". The show has started") wait() Playing = 1 wait() end end end script.Parent.Touched:Connect(onTouch)
It doesn't even print the warn() or print(). I also don't receive errorcodes in the log. WTF?
(The If Gestart and If Playing = is a Debounce. This method works in all of my other scripts.
In order for the function to run, you must call the function.
Using
part.Touched:Connect(onTouch)
will simply call the function with the touched
event.
Make sure to accept this answer.