Can you show me a video? That’s weird.
Oh, nothing is ending the character added function. Put another end)
at the end of your script.
Put another end)
at the end, the player added function also isn’t closed. Forgot about that
Input from the spacebar changes the state of humanoid to jumping, which will cause unreliability in the script. Try using Humanoid.FloorMaterial, as stated earlier.
1 Like
like this?
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local jumpCount = Instance.new("IntValue")
jumpCount.Name = "Jumps"
jumpCount.Parent = leaderstats
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
local debounce = true
humanoid:GetPropertyChangedSignal("Jump"):Connect(function()
if debounce == true then
debounce = false
if humanoid.Jump == true then
jumpCount.Value = jumpCount.Value + 1
end
wait(0.2)
debounce = true
end
end)
end)
end)
1 Like
Yeah, if it still isn’t reliable try something that someone else suggested.
1 Like