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

Player Model's Velocity is going crazy when Moving with Welded Mesh?

Asked by 6 years ago
Edited 6 years ago

Whenever I rotate or move with a specific mesh welded to my character it causes my velocity to go crazy and allows me to move very fast.

GIF BELOW https://gyazo.com/b5d4826064aa936a870bea519084bdf3

DENSITY is 0 Isn't ANCHORED CANCOLLIDE is false

local play = game.Players.LocalPlayer
char = play.Character
hum = char:WaitForChild("Humanoid")
utorso = char:WaitForChild("UpperTorso")
hroot = char:WaitForChild("HumanoidRootPart")
tool = script.Parent
rib = tool.SasukeRibCage
equipped = false

rib.CFrame = hroot.CFrame * CFrame.new(16,1,0)
rib.CFrame = rib.CFrame * CFrame.Angles(0,0,0)
local weld = Instance.new("Weld")
weld.Parent = tool
weld.Part0 = rib
weld.C0 = rib.CFrame:inverse()
weld.Part1 = hroot
weld.C1 = hroot.CFrame:inverse()


tool.Equipped:connect(function()
    equipped = true
end)

tool.Unequipped:connect(function()
    equipped = false
end)

EDIT: I'm aware that making the Part smaller will fix it, but I'm looking for a different solution.

1 answer

Log in to vote
0
Answered by 6 years ago

For some reason the part had reset its PhysicalProperties. Changing the Density back to 0.01 fixed it in-case anyone runs into the same issue.

Ad

Answer this question