#Tools dont work when I got them from replicated storage

9 messages · Page 1 of 1 (latest)

compact dagger
#
 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) 
modest ferry
#

can you use lua format

#

ur code is a bit messy

mystic coyote
modest ferry
#

nvm its readable now

#

if ur script is not a local script then it wont work

compact dagger
#

its none of that

#

but thanks for trying

#

i got to fix it