#Custom StarterCharacter uncontrollably bouncing

9 messages · Page 1 of 1 (latest)

copper glen
#

here is the code

local uis = game:GetService("UserInputService")
local rus = game:GetService("RunService")

local player = game:GetService("Players").LocalPlayer
local character = player.Character
local ppart = character:WaitForChild("HumanoidRootPart")

local mouse = player:GetMouse()
mouse.TargetFilter = character
local cam = workspace.CurrentCamera


rus.Heartbeat:Connect(function(deltaTime)
    local charPos = ppart.Position
    local mousePos =  mouse.Hit.Position
    character:PivotTo(
        CFrame.lookAt(
            charPos,
            Vector3.new(mousePos.X, charPos.Y, mousePos.Z)
        )
    )
end)
#

and this is the script working normally when i dont use a custom startercharacter

weary sun
#

Not a expert but you could try making a remove stuff script

#

A script that returns the characters meshes to the default ones

candid trout
#

also check the properties on ur custom startercharacter

copper glen
#

solved: i had forgot to set a primarypart on the custom character

#

thanks guys 😁