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

idk how to fix this error local 'weld' (a nil value) its keeps showing up how do i fix?

Asked by 6 years ago

19:17:54.504 - Workspace.Script:10: attempt to index local 'weld' (a nil value)

01game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
02 
03 
04    for _,put in pairs(game.Workspace.Dummy:GetChildren()) do
05        if put:IsA("BasePart") then
06 
07            local ip = put:Clone()
08            wait(1)
09                local weld Instance.new("Weld")
10                weld.Part0 = ip
11            ip.Parent = workspace
12 
13 
14 
15 
View all 37 lines...

1 answer

Log in to vote
1
Answered by 6 years ago

Your local weld is missing a = sign. It's ment to be local weld = Instance.new("Weld")

0
thx Xd helleric -3 — 6y
Ad

Answer this question