Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

4 comments

0

Please give me more details on the code.

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

0

Can you show us your code? @eyad27

0

I posted the script at answer

1 answer


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

This discussion is preserved as it was. New answers, comments, and votes are closed.