#I need help with one line of script

1 messages · Page 1 of 1 (latest)

daring basin
#
    (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
smoky fable
#

Could u indent it normally bc I actually can't read this

daring basin
#

It’s done right but all way too long for this

#

I can take ss rq

#

thats the code in minehut

daring basin
#

@smoky fable does that work

smoky fable
#

Idk, sorry idk much abt this kind of cde