You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want to be able to move my player when testing again.
-
What is the issue? When I am press the test button in roblox studio, I cannot move my player.
-
What solutions have you thought of so far? I have used Chat GPT for help and other devforum posts.
Nothing is being said in output. I have lock first person on but that is not what is affecting the movement.
please provide the script that you think might be causing this
I don’t think there is a script that is affecting this, but mabye it could be this free model camera bobbing script:
local runService = game:GetService(“RunService”)
local character = script.Parent
local humanoid = character:WaitForChild(“Humanoid”)
function updateBobbleEffect()
local currentTime = tick()
if humanoid.MoveDirection.Magnitude > 0 then
local bobbleX = math.cos(currentTime * 10) * .25
local bobbleY = math.abs(math.sin(currentTime * 10)) * .25
local bobble = Vector3.new(bobbleX, bobbleY, 0)
humanoid.CameraOffset = humanoid.CameraOffset:lerp(bobble, .25)
else
humanoid.CameraOffset = humanoid.CameraOffset * .75
end
end
runService.RenderStepped:Connect(updateBobbleEffect)
I tried removing the script, it did not work.
I reccomend making a copy of your game and in that copy delete scripts one by one to find the source of your problem
the camera bobbing affect is actulally the only script i have in the game currently
I have found out that the player is unfrozen when lockfirstperson is off.