(function(event) {var player = event-player;if (event-key === 'F' && dashCooldown === 0) {dash(player):}}):
function dash(player) {dashCooldown = <100>:
var rotation = player-rotation:
var direction = rotation-toVector():
var dashDistance = <5>:
var newPosition = player.location.add(direction.multiply(dashDistance))
player-location = newPosition:}
events-repeat(1, function() {if (dashCooldown > 0) {dashCooldown--:}}):```
the only error is the first line and it says that it "doesnt understand this event" can someone help me
#I need help with one line of script
1 messages · Page 1 of 1 (latest)