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

I need help with a script that I Made where the tool is meant to touch the object. Can you help?

Asked by 4 years ago

I have a script made, I just can't figure out how to use it. Like should it be put in the tool, or the object? Should it be a Local Script or just a Script? Below is the script, so if anyone can help me it would be much appreciated!

workspace.Part.Touched:Connect(function(plr)
local Shovel = game.Players.LocalPlayer.Backpack.Shovel
    if Shovel then
        print("Touched By Shovel")
    end;
end); 

Answer this question