#Teams not working

1 messages · Page 1 of 1 (latest)

prisma peak
#

So basically i have two scripts and a laserdoor whem im a human team it works but when i change teams then die and go back to being a human the laserdoor still kills me

light mirage
#

probably because your team switching on death happens on the client, and i'm guessing your laser door is on the server. the server won't know the client changed teams. team switching should happen on the server not the client.

prisma peak
#

ok thank you

prisma peak
#

@light mirage

#

i fixed a few things but it still doesnt work

zenith cape
#

hm

#

let me check

#

this

hazy cloud
#

why even fire a remote when the player dies? just let the server handle it

#

your local script is probably in a hierarchy where it only detects the first character you're given and doesn't update it when you respawn

prisma peak
#

How can I identify the player on a server script when I do it it doesn't work

hazy cloud
#

how are you trying

#

you can use the playeradded event to do this

prisma peak
#

The thing is I've tried to identify the character before and I mostly get errors what is the best method to use

hazy cloud
#

put a characteradded event in the playeradded event

#

so the server grabs the player when they join and from there we can define a function to detect when the player spawns