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

Can Someone Help Me Fix This Weird Table Glitch?

Asked by 10 years ago
local Clones = Instance.new("Model")
Clones.Parent = Workspace
game.Debris:AddItem(Model,1)
local Copy = me.Character:Clone()
Copy.Parent = Clones
Copy.Torso.CFrame = me.Character.Torso.CFrame*CFrame.new(10,0,0)
game.Debris:AddItem(Copy,1)
Copy.Name = "1"
table.insert(WaterClones,Copy)

local Copy1 = me.Character:Clone()
Copy1.Parent = Clones
Copy1.Torso.CFrame = me.Character.Torso.CFrame*CFrame.new(20,0,0)
game.Debris:AddItem(Copy1,1)
Copy1.Name = "2"
table.insert(WaterClones,Copy1)

c = WaterClones[math.random(1,#WaterClones)]
CP = me.Character.Torso.CFrame
me.Character.Torso.CFrame = c:FindFirstChild("Torso").CFrame
c.Torso.CFrame = CP

It keeps Saying It Cannot Find The Torso Please Help? This is the error

09:16:25.060 - Players.pikamew9998.Backpack.Water Clone.Script:132: attempt to index a nil value
09:16:25.061 - Stack Begin
09:16:25.061 - Script 'Players.pikamew9998.Backpack.Water Clone.Script', Line 132 - global onButton1Down
09:16:25.062 - Script 'Players.pikamew9998.Backpack.Water Clone.Script', Line 141
09:16:25.062 - Stack End
09:16:25.063 - Disconnected event because of exception
0
I cannot help you with this, as you've only pasted a portion of the code. there is no line 132, 141 there. Dummiez 360 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago

The Full Error Is

09:16:25.060 - Players.pikamew9998.Backpack.Water Clone.Script:132: attempt to index a nil value
2
09:16:25.061 - Stack Begin
3
09:16:25.061 - Script 'Players.pikamew9998.Backpack.Water Clone.Script', Line 132 - global onButton1Down
4
09:16:25.062 - Script 'Players.pikamew9998.Backpack.Water Clone.Script', Line 141
5
09:16:25.062 - Stack End
6
09:16:25.063 - Disconnected event because of exception
Ad
Log in to vote
-2
Answered by 10 years ago

Can you copy and paste the full error please.

0
Ok One Second pikamew9998 0 — 10y
0
I posted the full eror pikamew9998 0 — 10y

Answer this question