game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character.Humanoid.UseJumpPower = true
character.Humanoid.JumpPower = 0
end)
end)
while task.wait(1) do
for _, player in pairs(game.Players:GetPlayers() do <------
if player.Character then
--Any code if character exists
player.Character.Humanoid.JumpPower += 1
end
end
end
Hi! So, I know the “do” is wrong, but what do I put instead? I’m sorry if this is “dumb” but I’m new to scripting and I just followed a tutorial!
You’re missing brackets (parenthesis) at the end of your for loop.
Edited code:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character.Humanoid.UseJumpPower = true
character.Humanoid.JumpPower = 0
end)
end)
while task.wait(1) do
for _, player in pairs(game.Players:GetPlayers()) do <------
if player.Character then
--Any code if character exists
player.Character.Humanoid.JumpPower += 1
end
end
end