#collision after a specific variable is on

1 messages · Page 1 of 1 (latest)

gaunt vessel
#

I want to make it so that if a certain variable (a clientside one) determines a part's collision, how would I do that?

coral dagger
#

Wdym

#

Am I stupid or what

#

I don't understand

#

You wanna check for collisions only when a bool variable is true?

harsh igloo
#

you mean you want to turn a part's cancollide off when you press a certain keycode, and have the cancollide turn back on when you let go?

spiral juniper
#

when the attribute changes just change it

#

if you change the parts collision locally it should work i think?

#

attributes tend to run on the server so if you need every player to have a diff state on the attribute

#

then have the part you want spawn locally

#

and do it like that

#

thats the best solution i can offer unless you say what you actually wantr

gaunt vessel
gaunt vessel
#

sorry for how long it took me to reply, just wanted to make sure I'm doing it correctly

spiral juniper
#

Only the client will see it

#

Since youre not spawning it severaided

gaunt vessel
#

ohhh ok

spiral juniper
#

If you nake the part on the server then invoke every client with that

#

It should spawn identically

#

And u can choose when it spawns