Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to fix 2d player movement ?

so im making a 2d game, but everytime the player press A / D he flicks, if he is jumping he tp's to the ground

that's my code:

game.ReplicatedStorage.Movement.A.OnServerEvent:Connect(function(plr)
	plr.Character.HumanoidRootPart.Orientation = Vector3.new(plr.Character.HumanoidRootPart.Orientation.X,90,plr.Character.HumanoidRootPart.Orientation.Z)
end)

game.ReplicatedStorage.Movement.D.OnServerEvent:Connect(function(plr)
	plr.Character.HumanoidRootPart.Orientation = Vector3.new(plr.Character.HumanoidRootPart.Orientation.X,-90,plr.Character.HumanoidRootPart.Orientation.Z)
end)

if you need more info, comment

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.