My game has a script called "DisableJump" that has a subscript called "NoJump", which when combined disable jumping in the game. So I am trying to get a tool that requires jumping to work. However, with this script the tool no longer works.
The first chunk below is the content in the "DsiableJump" script.
local noJump = script.NoJump:Clone()
script.NoJump:Destroy()
function CharacterSpawned(char)
local noJ = noJump:Clone()
noJ.Parent = char
Delay(0.2, function()
noJ.Disabled = false
end)
end
function PlayerEntered(player)
player.CharacterAdded:connect(CharacterSpawned)
end
for _,v in pairs(game.Players:GetPlayers()) do PlayerEntered(v) end
game.Players.PlayerAdded:connect(PlayerEntered)
This second chunk below is the content in the "NoJump" script.
local h = script.Parent:WaitForChild("Humanoid")
h.Changed:connect(function()
h.Jump = false
end)
