This is in the starterpack
local player = game.Players.LocalPlayer
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.X then
player.Character.Torso.CFrame = CFrame.new(player.Character.Torso.Position.x,player.Character.Torso.Position.y+30,player.Character.Torso.Position.z)
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

5 comments
Still didn't work in game :/
Hmm. I'll see what else I can do, I'll try to update as soon as possible!
Actually! Is your script a Local Script or a normal script? If a it is a normal script change it to a LocalScript! LocalPlayer will not work with a normal script!!
That was the problem! Thanks!!
No problem!