Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Touched events not working when fired after standing on an object?

Asked by
eyad27 8
4 years ago

For some reason, when standing on an object before firing a touched event. The event doesn’t register.

0
Please give me more details on the code. Gooncreeper 98 — 4y
0
I am trying to make wall phasing. I made a block that detects objects. If it touches an object and the phase gets activated, it will not work. If it doesn’t touch anything at first, it will work eyad27 8 — 4y
0
Can you show us your code? @eyad27 Dovydas1118 1495 — 4y
0
I posted the script at answer eyad27 8 — 4y

1 answer

Log in to vote
0
Answered by
eyad27 8
4 years ago

ground.Touched:Connect (function (hit) if hit.CanCollide == true and hit.Locked == false table.insert(touchedParts,hit) hit.CanCollide = false end end)
Ad

Answer this question