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

is the .Touched function still glitchy?

I apologize for this dumb question, but I haven't played Roblox in like 5-6 months, and I just came back and saw a thread on the developer forums that they fixed the glitchy .mouseenter function, I tested it and it is flawless. But I was wondering, did they also fix the actual .Touched function? like when a player touches a brick. Its a stupid question but .Touched is very important for my game & I can't really test it myself because .Touched always works for a single player, it just gets glitchy when a lot of players are in the game. I was wondering if by any chance someone here knew.

4 comments

1

.Touched is not a function, it is an event.

0

Well the touched event is only fired either 30 or 60 times per second, so it's inevitable that it might miss a couple of collisions.

2

What bug?

1

It is not glitchy if you use debounce....

1 answer

✓ Accepted answer

Touched is not a function it is an RBXScriptSignal aka Event. I never have had a problem with it so I don't know where you saw this info that it was broken.

You should write the code not like this:

workspace.Part:Touched()

But like this instead:

workspace.Part.Touched:Connect(function(hit) -- Hit is optional mainly depends on what your doing

end)

Hope this answers your question!

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