Make a player walk on walls?
Hello! I am attempting to make a script so that when a player touches a brick, they can walk on the wall. I'm not sure if this is the best way, but im trying turn the players z axis without them flipping back up.
This is the code that I have:
1 | script.Parent.Touched:connect( function (hit) |
2 | local player = hit.Parent |
3 | player.Torso.Orientation = Vector 3. new( 0 , 0 , 90 ) |
The player dies when it is touched. Anyone know how to fix this or have a better way for players to walk on walls?