I am completely stumped. Logged. Planked. Bolted. Decked. Stepped on. This makes no sense.
I have a fairly basic script, a top down camera and a player-look-to-mouse script
wait (7)
-- VARIARABABLES
local plr = game.Players.LocalPlayer
local char = plr.Character or plr:CharacterAdded()
local mouse = plr:GetMouse()
-- TOP DOWN CAMERA SCRIPT
game["Run Service"].RenderStepped:connect(function()
workspace.CurrentCamera.CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position + Vector3.new(0, 50, 0), plr.Character.HumanoidRootPart.Position)
end)
-- LOOK AT MOUSE SCRIPT (NOT PROBLEMATIC!! DON'T WORRY)
local function lookAtMouse()
local mpos = mouse.Hit.p
local lookVector = Vector3.new(mpos.X, plr.Character.HumanoidRootPart.CFrame.Y, mpos.Z)
local target = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p, lookVector)
plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.p, lookVector)
end
game["Run Service"].RenderStepped:connect(lookAtMouse)
And it works! I can walk around, jump, ride a skateboard, anything!
But going up stairs is too far?
Stair bug video:
https://gyazo.com/9626eacabf4d6cf06d1cd20f9e46cbbb
I have the place file here so you can check it out for yourself.
stairs.rbxl (26.1 KB)
The script seen above is in StarterPlayerScripts
- I removed all other scripts already.
- I can go up the stairs if the script is disabled.
- It happens with R6 too
- It isn’t a malicious plugin
- It may be a Roblox bug
Any suggestions, ideas or general solutions to this?
[ SOLUTION - ADD 0.05 STUDS Z OFFSET TO THE CAMERA ]