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

How to fix Touched event errors in my game to reduce lag?

Asked by 7 years ago

So here's the thing. My game has a ton of Touched statements for example a ball tool. Once it moves from lightning to workspace it outputs the error that Touched is not a valid member of Workpspace but however only for that time. When a player touches the ball it can access that touched event. How can i make it to remove those errors from Touched cause with all those errors i feel like itl lag my place over time.

0
you should consider using ServerStorage or ReplicatedStorage to hold objects you don't want interacting with the game instead of Lighting Nogalo 148 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Make sure the script setting up the event is disabled, and not enabled until its within game.Workspace (parented to it). This might help.

Ad

Answer this question