Hello! I am trying to make a game where you progress through generated rooms, and I used to be able to hit the crawl key and go through vents. For some odd reason, that’s just not happening anymore. I don’t see why you’d need the script, but here:
cal userinputservice = game:GetService("UserInputService") local character = script.Parent local humanoid = character:WaitForChild("Humanoid") local isrunning = false local anim = humanoid.Animator:LoadAnimation(script:WaitForChild("Crawl")) userinputservice.InputBegan:Connect(function(key) if key.KeyCode == Enum.KeyCode.C or key.KeyCode == Enum.KeyCode.LeftControl then if not isrunning then isrunning = true humanoid.WalkSpeed = 8 anim:Play() elseif isrunning then anim:Stop() humanoid.WalkSpeed = 16 isrunning = false end end end)
The really strange thing is that it seemed to be working perfectly fine before, but now it doesn’t. The error only occured on mobile before, but now on all platforms??? I’m really confused and I have no idea what could have possibly caused this to suddenly break. Thanks for any help!
I have determined that the problem has something to do with the camera