#phasing

21 messages · Page 1 of 1 (latest)

plain wigeon
#

How do i make it so that players can phase through walls when clicking q and stop phasing by clicking q again?

hasty gyro
#

User input service

plain wigeon
#

??

plain wigeon
hasty gyro
#

I dont know much about it but that's the main thing you're gonna be working with if you're going to make that system

wanton pilot
#

A quick way I think is by making a custom collision group and then, when a player press like @hasty gyro said Q, they change set their collisions to that collisions group, enabling them to phase through the wall you specified

plain wigeon
hasty gyro
#

Start your script off with this

plain wigeon
#

then what do i do after that

hasty gyro
#

and make so that when you press q the "canColide" property of the characters are turned off

hasty gyro
plain wigeon
hasty gyro
#

Hmmm

#

Just use normal lua logic

plain wigeon
#

idk how to do that lol

worthy venture
#

is this your first time scripting?

plain wigeon
#

not really i mostly rely on youtube toturials

plain wigeon