My model bomb moves around uncontrollably

My model bomb moves around uncontrollably, why does that happen?

Could someone help me with that please :frowning:

Pic:

Video:
(85) robloxapp 20210117 1334237 - YouTube

local event = game.ReplicatedStorage.ChangeChar

event.OnServerEvent:Connect(function(player, model)

local Char = model:Clone()

local Pos = player.Character:GetPrimaryPartCFrame()

player.Character:Destroy()

player.Character = Char

Char.Parent = workspace

Char:SetPrimaryPartCFrame(Pos)

end)

Wait I have an Idea. In the server script, on the line that says the following. I was wondering if the problem is that the Bomb Spawns in the middle of the baseplate. Also, enable the Motor6

local pos = player.Character:GetPrimaryPartCFrame()

maybe try this instead?

local pos = player.Character:GetPrimaryPartCFrame * CFrame.new(0,5,0)
--will position them 5 studs higher

555555
I get an error :frowning:

Hmm, I suck with Frames, give me a minute to look up how to add Frames. I’m going to throw out multiple ideas, can you see if any of them don’t error. Yes first try what @FracturedSoftware said, he is correct.

1. local pos = player.Character:GetPrimaryPartCFrame + Vector3.new(0,5,0)

2.  local pos = CFrame.new(player.Character:GetPrimaryPartCFrame + Vector3.new(0,5,0))
1 Like

GetPrimaryPartCFrame is a function so needs () on the end like this:

local Pos = player.Character:GetPrimaryPartCFrame() * CFrame.new(0, 5, 0)
1 Like

Still the same with none of those code worked :frowning:

I’m sure that are the legs of the bomb model, when I disable them I walk normal

You need to set the HipHeight value inside the Humanoid properly. It’s not the legs.

1 Like

Forget this! it works perfectly! many thanks :smiley: