Player = script.Parent.Parent.Parent Tool = script.Parent c = Player.Character mouse = Player:GetMouse() function onMouseButton1Down(mouse) x = Instance.new("Part") x.TopSurface = "Smooth" x.BottomSurface = "Smooth" x.Size = Vector3.new(1, 1.95, 1) x.BrickColor = BrickColor.new("Bright blue") x.Transparency = 0.5 x.Reflectance = 0.2 x.Parent = c game.Debris:AddItem(x, 30) 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) y = Instance.new("Part") y.TopSurface = "Smooth" y.BottomSurface = "Smooth" y.Size = Vector3.new(1, 1.95, 1) y.BrickColor = BrickColor.new("Bright blue") y.Transparency = 0.5 y.Reflectance = 0.2 y.Parent = c game.Debris:AddItem(y, 30) w2 = Instance.new("Weld", c) w2.Part0 = w2.Parent["Left Arm"] w2.Part1 = y w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) z = Instance.new("Part") z.TopSurface = "Smooth" z.BottomSurface = "Smooth" z.Size = Vector3.new(2, 1.95, 1) z.BrickColor = BrickColor.new("Bright blue") z.Transparency = 0.5 z.Reflectance = 0.2 z.Parent = c game.Debris:AddItem(z, 30) w3 = Instance.new("Weld", c) w3.Part0 = w3.Parent["Torso"] w3.Part1 = z w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) a = Instance.new("Part") a.TopSurface = "Smooth" a.BottomSurface = "Smooth" a.Size = Vector3.new(1, 2, 1) a.BrickColor = BrickColor.new("Bright blue") a.Transparency = 0.5 a.Reflectance = 0.2 a.Parent = c game.Debris:AddItem(a, 30) w4 = Instance.new("Weld", c) w4.Part0 = w4.Parent["Left Leg"] w4.Part1 = a w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) b = Instance.new("Part") b.TopSurface = "Smooth" b.BottomSurface = "Smooth" b.Size = Vector3.new(1, 2, 1) b.BrickColor = BrickColor.new("Bright blue") b.Transparency = 0.5 b.Reflectance = 0.2 b.Parent = c game.Debris:AddItem(b, 30) w5 = Instance.new("Weld", c) w5.Part0 = w5.Parent["Right Leg"] w5.Part1 = b w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) d = Instance.new("Part") d.TopSurface = "Smooth" d.BottomSurface = "Smooth" d.Size = Vector3.new(-1, -1, 0.2) d.BrickColor = BrickColor.new("Bright blue") d.Transparency = 0.5 d.Reflectance = 0.2 d.Parent = c w6 = Instance.new("Weld", c) w6.Part0 = w6.Parent["Torso"] w6.Part1 = d w6.C1 = CFrame.fromEulerAnglesXYZ(-1.6, 0, 0) *CFrame.new(0, 1, -1) game.Debris:AddItem(d, 30) e = Instance.new("Part") e.TopSurface = "Smooth" e.BottomSurface = "Smooth" e.Size = Vector3.new(2, 1, 1) e.BrickColor = BrickColor.new("Bright blue") e.Transparency = 0.7 e.Reflectance = 0.2 e.Parent = c e.Shape = "Ball" f = Instance.new("SpecialMesh") f.Parent = e f.MeshType = "Head" f.Scale = Vector3.new(0, 0, 0) w7 = Instance.new("Weld", c) w7.Part0 = w7.Parent["Head"] w7.Part1 = e w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) *CFrame.new(0, 0, 0) game.Debris:AddItem(e, 30) end function onSelected(mouse) mouse.Button1Down:connect(function() onMouseButton1Down(mouse) end) end Tool.Selected:connect(onSelected)
So, this is a Script, not a Local Script, which is in a HopperBin. The script works in solo mode but, when I'm joining the game it isn't working.I already tried making this script in a local script, didn't work.Any suggestions?