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

Why does welding models to my character make me slow when turning?

Asked by 7 years ago

Just started trying out welds and i created this script :

repeat wait() until player.Character:FindFirstChild("Torso") ~= nil
local clonekagune = replicatedstorage.KaguneFolder:WaitForChild("BikakuModel"):Clone() --Model
clonekagune.Parent = player.Character

--Creating Weld
local weldkagune = Instance.new("Weld")
weldkagune.Part0 = player.Character:WaitForChild("Torso")
weldkagune.Part1 = clonekagune:WaitForChild("MainPart")
weldkagune.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
weldkagune.Parent = weldkagune.Part0

And it worked, but there was a small glitchy problem, whenever i press the movement keys {wasd} it tends to make my character turn and walk slowly, is there any way to fix this?

0
Also the BikakuModel has a autoweld script and all parts are unanchored and non cancollide xXOverLord34Xx 8 — 7y
0
Because it has weight/mass. I guess you could change the parts density. Just play around with the physical properties. Meltdown81 309 — 7y

2 answers

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago

The reason why this happens is because speed gets calculated from mass.

If you weld a model to your character, it's mass and size will grow, making it turn slower. As far as im aware theres no way to fix this, because tools have the same issue. (But i could be wrong).

You COULD try to change the CustomPhysicalProperties of the model to have 0 gravity, but i don't think that'll fix it.

0
That worked! :D Thanks alot, now how would i be able to animate this, use the Custom Character Creator? xXOverLord34Xx 8 — 7y
0
Animation editor? RubenKan 3615 — 7y
0
xXOverLord34Xx i could help you with animating custom parts and how to use them in your game its quite easy PM me if you want to. Coolboyok11 64 — 7y
Ad
Log in to vote
0
Answered by 3 years ago

There is a property called Massless for all BaseParts that does this for you. Without having to change physical properties.

Answer this question