in the case of a number or intvalue you can add it onto a string
My bad on that one, I’m pretty sure the last time I tested that it didn’t work.
Why are you manipulating startergui? Why are you checking to see if a remote event exists if it has been fired? So many issues, I’m so confused on where to begin.
Its working but i want the script to be able to jump higher like in the Jump Power script where it adds +10 jump power instead of 1 because 1 is too slow and im pretty sure most of the +1 jump per sec has that.
ok replace that with
script.Parent.Text = "Jump Power: "..math.abs(player.leaderstats.JumpPower.Value / 10)
Still the same. but now the numbers in the text label are decimals again
oops thats my fault i did math.abs instead of math.round. try this instead
script.Parent.Text = "Jump Power: "..math.round(player.leaderstats.JumpPower.Value / 10)
now its not counting up at all… It does after a amount of time but I dont want that and it doesent add up every second.
try this
script.Parent.Text = "Jump Power: "..math.round(math.abs(game.Players.LocalPlayer.leaderstats.JumpPower.Value / 10))
should work as i already tried it
Nope. the leader stats are counting up normally but the actual jump power is not what i want it to be and the text label is not counting up like the leader stats are
JumpPower and Leaderstats should sort of be mixed together, disable the JumpPower script and try putting this in your leaderstats script
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local Jump = Instance.new("NumberValue")
Jump.Name = "JumpPower"
Jump.Parent = leaderstats
local Wins = Instance.new("NumberValue")
Wins.Name = "Wins"
Wins.Parent = leaderstats
plr.CharacterAdded:Connect(function(char)
while wait(1) do
Jump.Value += 10
plr.Character.Humanoid.JumpPower = Jump.Value
end
end)
end)
Nope. It worked on the label but the leaderstats are counting up by 10s. also it isnt even changing the jump power now. (Or if thats why you had me disable it)
try this
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local Jump = Instance.new("NumberValue")
Jump.Name = "JumpPower"
Jump.Parent = leaderstats
local Wins = Instance.new("NumberValue")
Wins.Name = "Wins"
Wins.Parent = leaderstats
plr.CharacterAdded:Connect(function(char)
while wait(1) do
Jump.Value += 1
plr.Character.Humanoid.JumpPower = math.abs(Jump.Value*10)
end
end)
end)
and make sure you have CharacterUsesJumpPower enabled in StarterPlayer
Its working its just that the text label is slowly counting up…
(not in seconds)
try changing the number in wait() at line 15 until you like it
thats not the problem the problem is the text label on screen!! While the actual leader stat and jump power are counting up thhe text label isnt counting up in seconds, its counting up every 10 seconds i think.
EDIT:
i fixed it. it was the division in the localscript under JumpPower
Now when the player touches the block it keeps adding wins and i want them to only get one and still be able to change the value of wins they get when they touch it.
would you like a cooldown on the block? or make it so that they can only get wins from the block once?