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

Anyone know why this weld script doesn't work?

Asked by 9 years ago

Trying to get it to work when a player joins the server...

Player = script.Parent.Parent c = Player.Character game.Players.PlayerAdded:connect(function(player) x = Instance.new("Part") x.size = Vector3.new(1,3,1) x.TopSurface = "Smooth" x.BottomSurface = "Smooth" x.BrickColor = BrickColor.new("Mid gray") x.Reflectance = 0.3 x.Parent = c game.Debris:AddItem(x, 5) w1 = Instance.new("Weld", c) w1.Part0 = w1.Parent["Right Arm"] w1.Part1 = x w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) end)

Can't find out why it doesn't execute.

Answer this question