I tried this,
local player = game.Players.LocalPlayer local character = player.Character local torso = character:WaitForChild("Torso") local c = Instance.new("Part") local w = Instance.new("Weld") w.Part0 = c w.Part1 = torso w.Parent = c c.Position = torso.Position c.Parent = torso
I'm brand new to welding, so I'm not sure what to do as of right now. If anyone could help out that would be lovely! Thank you!
Here is a small script i made to make it so that when a player clicks a Gui Button it creates a part and welds it to the players Torso
script.Parent.MouseButton1Click:connect(function() local part = Instance.new("Part", workspace) local Weld = Instance.new("Weld",part) local Torso = game.Players.LocalPlayer.Character:FindFirstChild("Torso") part.Size = Vector3.new(1.001,1.001,1.001) part.BrickColor = BrickColor.new("Lily white") part.Material = "SmoothPlastic" part.CFrame = Torso.CFrame part.CanCollide = false Weld.Part0 = part Weld.Part1 = Torso end)