I'm trying to weld a small part inside a player's torso, but when I do, it stops the character from moving. Does anyone know how to make it so the character can still move? This is a LocalScript.

local plr = game.Players.LocalPlayer
	repeat wait() until plr.Character
local chr = plr.Character

local part = Instance.new("Part",workspace)
part.Size = Vector3.new(1,1,1)
part.CanCollide = false
part.CFrame = chr.Torso.CFrame
local w = Instance.new("Weld",chr.Torso)
w.Part0 = chr.Torso
w.Part1 = part

5 comments

0

Check to see if the part is anchored.

0

It's not.

0

Judging by the script you provided, the part is anchored. The Anchored property is true by default.

0

I never knew Roblox changed that property. Although I haven't really payed attention to it.

0

No, the default for parts is to be unanchored, I tested it with 'Instance.new("Part",workspace)' 2 minutes before posting this. However, I still added a "part.Anchored = false" line to my code, and it made no difference.