Well.. i found a Forum in the Website with the Same Title.
I want to Create a Sprint Stamina when someone sprints like 5-10 Seconds he can not run anymore and when hes moving normal he gains his stamina back slowly. Here is a Script i found:
{stamina::%player%} = 100
on player sprint toggle:
if {stamina::%player%} > 0:
loop {stamina::%player%} times:
wait a second
if player is sprinting:
if {stamina::%player%} > 0:
reduce {stamina::%player%} by 1
else:
cancel event
stop trigger
send "&cYour stamina is too low to run!" to player
else:
cancel event
stop trigger
send "&cYour stamina is too low to run!" to player
every 3 seconds:
loop all players:
if loop-player is not sprinting:
if {stamina::%player%} < 100
increase {stamina::%player%} by 1```
I Copy pasted it into my Server and i get these errors always