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

Why is this weld script preventing the character from moving?

Asked by 10 years ago

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
0
Check to see if the part is anchored. RedCombee 585 — 10y
0
It's not. ZeptixBlade 215 — 10y
0
Judging by the script you provided, the part is anchored. The Anchored property is true by default. Merely 2122 — 10y
0
I never knew Roblox changed that property. Although I haven't really payed attention to it. M39a9am3R 3210 — 10y
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. ZeptixBlade 215 — 10y

Answer this question