The script only welds the copied model to the right leg, but not the left, here is the script:
-- Begin Function
function onTouched(hit)
-- RightLeg
local RightLeg = hit.Parent["Right Leg"]
if hit.Parent:findFirstChild("Humanoid") ~= nil and RightLeg:findFirstChild("RocketBoot") == nil then
local g = game.Lighting.RocketBoot:Clone()
g.Parent = RightLeg
local C = g:GetChildren()
for i=1, #C do
if C[i].className == "Part" or C[i].ClassName == "UnionOperation" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:inverse()*CJ
local C1 = C[i].CFrame:inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = RightLeg
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0.05) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
if h[i]:IsA("Part") then
h[i].Anchored = false
h[i].CanCollide = false
h[i].TopSurface = "SmoothNoOutlines"
h[i].BottomSurface = "SmoothNoOutlines"
h[i].LeftSurface = "SmoothNoOutlines"
h[i].RightSurface = "SmoothNoOutlines"
h[i].FrontSurface = "SmoothNoOutlines"
h[i].BackSurface = "SmoothNoOutlines"
end
end
end
--LeftLeg
local LeftLeg = hit.Parent["Left Leg"]
if hit.Parent:findFirstChild("Humanoid") ~= nil and LeftLeg:findFirstChild("RocketBoot") == nil then
local g = game.Lighting.RocketBoot:Clone()
g.Parent = LeftLeg
local C = g:GetChildren()
for i=1, #C do
if C[i].className == "Part" or C[i].ClassName == "UnionOperation" then
local W = Instance.new("Weld")
W.Part0 = g.Middle
W.Part1 = C[i]
local CJ = CFrame.new(g.Middle.Position)
local C0 = g.Middle.CFrame:inverse()*CJ
local C1 = C[i].CFrame:inverse()*CJ
W.C0 = C0
W.C1 = C1
W.Parent = g.Middle
end
local Y = Instance.new("Weld")
Y.Part0 = RightLeg
Y.Part1 = g.Middle
Y.C0 = CFrame.new(0, 0, 0.05) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
Y.Parent = Y.Part0
end
local h = g:GetChildren()
for i = 1, # h do
if h[i]:IsA("Part") then
h[i].Anchored = false
h[i].CanCollide = false
h[i].TopSurface = "SmoothNoOutlines"
h[i].BottomSurface = "SmoothNoOutlines"
h[i].LeftSurface = "SmoothNoOutlines"
h[i].RightSurface = "SmoothNoOutlines"
h[i].FrontSurface = "SmoothNoOutlines"
h[i].BackSurface = "SmoothNoOutlines"
end
end
end
end
-- Ending first function
script.Parent.Touched:connect(onTouched)
They're at this place: http://www.roblox.com/Steampunk-place?id=296134153
And this is the output: `20:10:50.007 - Right Leg is not a valid member of Model
20:10:50.008 - Script 'Workspace.TheButton.Script', Line 5
20:10:50.009 - Stack End`

1 comment
The error was on line 63, in which the rocket boot for the left leg was being welded to the right leg