#How do i snap the play to cardinal directions then they move
1 messages · Page 1 of 1 (latest)
i remember reading something about this in the docs
took me a bit to find it https://create.roblox.com/docs/reference/engine/enums/DevComputerMovementMode
there's another one for touch controls (phone etc)
i'm fairly sure these will disconnect the player's inputs from their character's humanoid
from there i was able to get some interesting results with this command to override the humanoid's MoveDirection since that property is read-only local chr=game.Players:GetPlayers()[1] local hum=chr.Humanoid local hrp=chr.HumanoidRootPart local cam=workspace.CurrentCamera for i=1,100,1 do task.wait() hum:MoveTo(hrp.Position+cam.CFrame.LookVector+cam.CFrame.RightVector) end
wait what
then you just connect userinputservice/contextactionservice to that and there u go
no, you are overriding default roblox controls. this is already the simple way. the actual hard way is making your own humanoid controller using controllermanager, but that is not for beginners.
i dont expect a beginner to be able to achieve this on their own
i dont understand
idk what blocktales is but if you want to snap the typical roblox character to only be able to move in the cardinal directions, this is how you would do that.
you can also use it to snap to a grid
or rather, the character will move like normal but you can make its movements always land on a grid tile
im confused about this
is there something im supposed to do?
set player.devcomputermovementmode to scriptable to turn off normal inputs like wasd so you can replace it with your own
where do you find that?
it's where i remember reading about it, took me a while to find it. it's used here https://create.roblox.com/docs/reference/engine/classes/Player#DevTouchMovementMode
played module?
there might be some stuff in the playermodule too, but that is also not exactly for beginners
it's not very well documented (or rather, at all)
you picked a thing that happens to be rather difficult to do
oh
maybe go with +1jump/sec instead for a first project, that's much more beginner friendly 👍
roblox also has a bunch of templates you can sift through, Plant in particular is a pretty good one https://create.roblox.com/docs/resources/templates
yes you can script the player's movement, its just not beginner friendly
check out the plant reference project, this page goes over all the cool stuff that's in there https://create.roblox.com/docs/resources/plant-reference-project you'll learn a lot from it
im sorry i just cant understand this
although i do know a little more about how roblox works
ye u just need to snap the values of humanoid.movedirection
problem is, it is read-only.
so you have to do jank workaround to make it do what you want
u still need it?
yeah
dms
Did you fix it?
cause did you mean snapping to the world like this?
uhh yes i did fix it