So, I'm trying to make a Gui Game, but the "onkeydown" isn't working, 38 means ^. Thats the key number. But it's not working, any help?
function onkeyDown(key)
if key == 38 then
script.Parent.Position.Z = 200
end
end
or
function onkeyDown(key)
if key == 38 then
script.Parent.Position = {0.5, -50},{0, 200}
end
end
Thanks!

3 comments
I meant the up arrow.
Well, I don't know about the up arrow part. Maybe put "Up"?
I did J, but it's still not working, I saw this in a weapon and it worked.