script.Parent.MouseButton1Down:connect(function() local Player = script.Parent.Parent.Parent.Parent.Parent if Player.Character:FindFirstChild("Humanoid") ~= nil and Player.Character:FindFirstChild("BTorso") ~= nil then local suit = game.ServerStorage.Morphs.Police.Standard["BTorso"]:Clone() suit.Parent = Player.Character local G = suit:GetChildren() for i=1, #G do if G[i].ClassName == "Part" or "UnionOperation" then local suitW = Instance.new("Weld") suitW.Part0 = suit.MainPart suitW.Part1 = G[i] local autoW = CFrame.new(suit.MainPart.Position) suitW.C0 = suit.MainPart.CFrame:inverse()*autoW suitW.C1 = G[i].CFrame:inverse()*autoW suitW.Parent = suit.MainPart end local bpW = Instance.new("Weld") bpW.Part0 = Player.Character["Torso"] bpW.Part1 = suit.MainPart bpW.C0 = CFrame.new(0,0,0) bpW.Parent = suit.MainPart end local f = suit:GetChildren() for i=1, #f do f[i].Anchored = false f[i].CanCollide = false end end end)
I ended up making this script so that I could use a GUI to clone and weld parts onto the players' torso. I'm not sure why it's not working? There's nothing in output, and nothing happens when I click the button. Any help?