#Jumped Error
1 messages · Page 1 of 1 (latest)
your ends thing is incorrect i thin
i dont know if its correct or not
but functions
are not like that
try changing this part of your script to this
local Humanoid = character:WaitForChild("Humanoid")
Humanoid.JumpPower = 50
Humanoid.Jumped:Connect(function(Active)
if Active then
Humanoid.JumpPower = Humanoid.JumpPower + 1
end
end)
end)
end)
still
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Humanoid = character:WaitForChild("Humanoid")
Humanoid.JumpPower = 50
Humanoid.Jumped:Connect(function(Active)
if Active then
Humanoid.JumpPower = Humanoid.JumpPower + 1
end
end)
end)
end)
this is it after your editting
ok wait
i dont get the error
is it cause it doesnt exist in the server
wait
is it a localscript or script
okay
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Humanoid = character:WaitForChild("Humanoid")
Humanoid.JumpPower = 50
Humanoid.Jumped:Connect(function()
Humanoid.JumpPower = Humanoid.JumpPower + 1
end)
end)
end)
ok try this
tell me if it works
same error
im gonna try an alternative approach
maybe JumpHeight instead of JumpPower?
ill see if it fixes the problem
okay
** You are now Level 1! **
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Humanoid = character:WaitForChild("Humanoid")
Humanoid.JumpPower = 50
Humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Jumping then
Humanoid.JumpPower += 1
end
end)
end)
end)
try this
ive tried a diff approach
also put in serverscriptservice as a script btw
if it dosent work ill add debugging prints
i do smth like thats
local Players = game:GetService("Players")
local jumped = false
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Humanoid = character:WaitForChild("Humanoid")
Humanoid.JumpHeight = 50
a(Humanoid)
end)
end)
function a(Humanoid)
while true do
if Humanoid.Jump == true and jumped == false then
Humanoid.JumpHeight = Humanoid.JumpHeight + 1
jumped = true
end
if Humanoid.Jump == false and jumped == true then
jumped = false
end
task.wait(0.1)
end
end
i tried it work but maybe not like you need
ook yeah that works
** You are now Level 6! **