Hey, I made a jump prevention scripts and I put it in local script in workspace. Whenever I use this script
local Player = game:service'Players'.LocalPlayer local Character = Player.Character local Humanoid = Character:findFirstChild("Humanoid") Humanoid.Changed:connect(function() Humanoid.Jump = false end)
I always get an error saying I'm calling a "nil" object, which means does not exist. What's wrong with my scripts? Can you help me?
Put this script in a localscript in StarterPack [EDITED: 11:53 AM]
local Player = game:GetService('Players').LocalPlayer repeat wait() until Player.Character local Character = Player.Character local Humanoid = Character:WaitForChild("Humanoid") Humanoid.Changed:connect(function() Humanoid.Jump = false end)
Locked by Tortelloni, TurboFusion, and BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?