Change humanoid Property locally only?

hello, in my game i set the players HipHeight to 3 instead of 2 to make them look taller For first person mode, i did this by changing it in a local script, but i only want the local player to look taller, when ever i change the Hipheight it also changes it in the server view, making other players float of the ground, is there a way to change the HipHeight Locally so the affect of looking taller only goes on the LocalPlayer so other players dont float?

Since this is a purely visual change, you’ll have to use something else than hip height. Despite the server and other players not seeing the change of HipHeight, the effects are still going to replicate, similarly like Humanoid.WalkSpeed does.

To move the camera in first person higher, one way - without writing a custom scriptable camera - involves Humanoid.CameraOffset.

local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")

local player = game:GetService("Players").LocalPlayer
local camera = workspace.CurrentCamera

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local head = character:WaitForChild("Head")

local in_first_person = false

RunService.RenderStepped:Connect(function()
	if (camera.CFrame.Position - camera.Focus.Position).Magnitude < .6 then
		if not in_first_person then
			in_first_person = true
			humanoid.CameraOffset = Vector3.new(0,5,0)
		end
	else
		if in_first_person then
			in_first_person = false
			humanoid.CameraOffset = Vector3.new()
		end
	end
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.