#Model jumps up and down when it becomes the player character.

1 messages · Page 1 of 1 (latest)

solemn lintel
#

I switched the player character to this model and it started jumping up and down. Any idea what's causing it? If I delete the script it sits normally without jumping.

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local tankTemplate = ReplicatedStorage:WaitForChild("Tank")

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        wait()
        local tank = tankTemplate:Clone()
        tank.Parent = workspace
        player.Character = tank
    end)
end)
#

This is the model's hierarchy

#

I assume it has something to do with the script since it doesn't move at all when I delete the script

snow pendant
#

Try waiting a sec

#

Also is the tank's hip height correct?

heady moon
#

player.CharacterAdded:Connect(function() player.AddNewCharacter() end)

#

the wait is the only thing stopping this crashing studio

#

it may be better to disable character autoload and just set the player manually on playeradded if you plan to replace the character

solemn lintel
#

I didn't think that through 😭