WHAT DID I DO WRONG, WHEN I PRESS IT IT'S SUPPOSED TO GIVE ME A GRAVITY COIL?! PLEASE TWEAKKKKK.
script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(click) if player.leaderstats.High Score.Value >= 1 then player.leaderstats.High Score.Value = player.leaderstats.High score - 1
game.ReplicatedStorage.Tools.GravityCoil:clone().Parent = player:WaitForChild("Backpack")
end
end)

7 comments
can you please edit this and put the full script in the code block.
It wont let me
What do you mean? It won't let you edit?
it does let me edit but the code block only does a portion of my script for some reason, and the script that is in the code block is just there by default for some reason
You need to fire a remote event. because of the 2017 update for FFE (Force Filtering Enabled), you cannot give commands to the game from a local script. See https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events. Correct me if I am wrong anyone.
Ok, so you need to remove the block you already have, then highlight all of your code, then press the code block button.
@ yourfuturepilot2 from what I see there, he is cloning it from replicated storage which is accessible from the client because that is where you store remote events.