Where would this script go?

I want to make a banana peel tool, when you click, it clones the handle to the workspace and deletes the tool, then if someone steps on the banana peel, they trip.

MY QUESTION IS: Where would the trip script go? In the cloned handle? A part mananger script in ServerScriptService? something about CollectionService?

HELP :disguised_face:

1 Like

You need two scripts and a Remote event, one in the tool and one on ServerScriptService

On the local script you listen for the activation of the tool and when it’s activated you fire the event

On the server script you listen for the event and when it’s activated you clone the handle, parent it to workspace and destroy the tool, then make a conection with a .Touched event to trip the players

So then the most optimal thing is having a Banana Peel Manager script in ServerScriptService?

1 Like

Yes, you can probably use it for more tools than just a banana peel but it should be in ServerScriptService anyways

Oh so like a tool manager in general

1 Like

Yeah don’t make a script for every single thing (specially server) but don’t try to clump up everything on a singular script for no reason

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.