Why is this weird camera thing happening?

(I don’t know if this is the correct catagoery please tell me if I to change it)

Hi, so like I don’t really know how to explain it but like,

I hope you get the problem so like its going up and down like really weirdly the scale of the model is 0.15 here is my script.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		print(character:GetScale())
		character:ScaleTo(0.15)
		character.Humanoid.WalkSpeed = 2.5
		character.Humanoid.JumpPower = 8.5
		character.Humanoid.CameraOffset = Vector3.new(0, -1.35, -0.42)

	end)
end)
1 Like

Roblox just gets really weird when you scale humanoids. You can start experiencing noclipping, weird friction issues and weird gravity issues as well.

Okay but is there anyway to fix it?

This might work?
Edit: I tested it out now this should work just fine
I’ve added a small offset, as no offset just makes the camera see thru the torso & limbs

local RunService = game:GetService("RunService")
local camera = workspace.Camera
local offset = Vector3.yAxis*0.05
game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
	char.Humanoid.AutoRotate = false
end)
RunService.PreRender:Connect(function()
	local char = game.Players.LocalPlayer.Character
	if not char then return end
	camera.CFrame = CFrame.new(char.Head.Position+offset)*camera.CFrame.Rotation
	char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.Position,char.HumanoidRootPart.Position+Vector3.new(1,0,1)*camera.CFrame.LookVector)
end)
1 Like