✓ Accepted answer
I'm assuming you are using a local script? Local Scripts can only be run in certain places and the workspace is not one of them (unless it's in the player's character).
You can find out where they can run here.
Solution 1
Place the local script inside the tool and run Tool.Equipped using script.Parent to get the tool object.
script.Parent = Tool
script.Parent.Equipped:Connect(function()
end)
Solution 2
Make the script or local script stay in a place where it can only run once. That way it isn't re-running game.Workspace.Ram again (because once you pick the tool up it isn't parented to workspace anymore, rather it is parented to the character).
This can be in Player.PlayerScripts if it's a Local Script.
game.Workspace or game.ServerScriptService if it is a Server Script
3 comments
print("A tool was equipped")
is ram in the workspace?
do you mean like ram as in how much ram the users device has on hand? I do not know for sure but I'm almost positive that you cant know that with the studio