local RS = game:GetService("ReplicatedStorage")
local p = game:GetService('Players').LocalPlayer
local sound = script.Parent.Parent.Parent.Click
script.Parent.MouseButton1Click:Connect(function()
sound:Play()
for i,v in pairs(p:GetDescendants()) do
if v:IsA("Tool") then
v:Destroy()
end
end
for i,v in pairs(p.Backpack:GetDescendants()) do
v:Destroy()
end
local A = RS:WaitForChild()["Char1"]:Clone()----Change name
script.Parent.Parent.Parent.Enabled = false
for _, tools in A:GetChildren() do
tools.Parent = p.Backpack
end
end)
#Tools dont work when I got them from replicated storage
9 messages · Page 1 of 1 (latest)
is it a server side script or a local script