I’m trying to create a Escape the Flood game that’s actually hard and I’m currently trying to script a part that gives a player a banana peal if they have over 50 points, can someone help me with how I can get this to work?
LocalScript Isn’t working in workspace, you can put it in StarterPlayerScripts
Edit: And change Shop variable from script.Parent to workspace.BG
change the last line to
Shop.Touched:Connect(Touched)
Thank you guys! The script is now working.
Guys I have a new problem, the gear does come out but all of it’s effects are gone.
Thats the gears problem, not the shop’s problem.
Edit: Try changing things in the gear or something.
Just to let you know, you shouldn’t change the player’s points from a LocalScript since it only changes the player’s points on the client-side that can easily be manipulated by exploiters. Instead you should fire a client to server remote that checks if the player has enough points, and if so then finally remove the points. If not do nothing of course. Never trust the client!
Can you show the gear’s script for the effects?
It is the shop because when I put the gear in Workspace and equipped it the gear did it’s function.
Also the scripts of the object are also in the new gear copied.
You should clone the gear by doing this:
local gravitycoil = game.ReplicatedStorage.Gears.GravityCoil:Clone()
gravitycoil.Parent = Player.Backpack
I tried that but the effects still don’t work.
That has something to do with the gear itself.
Try firing a remote that clones the tool on the server, then others can see the tool as well.

