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

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

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.

1 comment

0

you should consider using ServerStorage or ReplicatedStorage to hold objects you don't want interacting with the game instead of Lighting

1 answer

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

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