#Change team when Zombie infects you

1 messages · Page 1 of 1 (latest)

sinful wing
#

Hi! I'm making my first game in roblox with my friend, and we found an zombie that infects you in the toolbox, but the thing is that I tried to make a Zombies team, and a People team but I don't really know how to do this that when a zombie infects you, you change the team. I can link some scripts of the zombie too + my workspace.

eager bluff
#

Just set the player.Character = model

#

Or model_clone

#

And set that clones parent to workspa

#

And do player:LoadCharater

#

@sinful wing

#

When they die they will go back to normal character so you could add a function that loads the zombie one when they die

sinful wing
#

thanks sm!!!

sinful wing
#

sry if its easy but yup i just begin to learning

eager bluff
#

Just add a folder with the models in serverstorage and a script in serverscriptservice that fires when you change teams

#

For example:

#

Game.Players.playeradded:connect(plr)

#

Local team = plr.team (or sum like that)

livid mirageBOT
#

studio** You are now Level 14! **studio

eager bluff
#

Plr.charater = (path to zombie model):Clone()

#

Plr.charater.parent = workspace

#

Plr:LoadCharacter()

sinful wing
#

oh okay thanks

sinful wing
livid mirageBOT
#

studio** You are now Level 1! **studio

magic moat