here is my code can u repair it?
extends KinematicBody2D
var speed = 100
var motion - Vector2(0, 0)
func ready():
setphysics_process(true)
func physicsprocess(delta):
if Input.isactionpressed("uileft"):
motion.x -= speed * delta
elif Input.isactionpressed("uirigth"):
motion.x += speed * delta
elif Input.isactionpressed("uidown"):
motion.y -= speed * delta
elif Input.isactionpressed("uiup"):
motion.y += speed * delta
else:
motion.y = 0
motion.x = 0
moveand_slide(motion)