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

how do i put a cloned tool in the players backpack?

Asked by
3wdo 198
5 years ago
Edited 5 years ago

i am trying to make a button that puts a tool into a players backpack but it dont work

i tried replicated storage didnt work and tried server storage

for replicated storage it says " Cannot change Parent of type ReplicatedStorage"

for server storage it says " tools is not a valid member of ServerStorage"

my script is

tool = game.ServerStorage

script.Parent.MouseButton1Click:Connect(function()
    tool.tools:Clone()
    tool.Parent = game.Players.LocalPlayer.Backpack
end)

Answer this question