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

is the .Touched function still glitchy?

Asked by
roquick 41
5 years ago

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.

1
.Touched is not a function, it is an event. User#19524 175 — 5y
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. thebayou 441 — 5y
2
What bug? INOOBE_YT 387 — 5y
1
It is not glitchy if you use debounce.... greatneil80 2647 — 5y

1 answer

Log in to vote
1
Answered by
zblox164 531 Moderation Voter
5 years ago
Edited 5 years ago

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!

Ad

Answer this question