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.
#Change team when Zombie infects you
1 messages · Page 1 of 1 (latest)
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
thanks sm!!!
oh and where do i exactly do that???
sry if its easy but yup i just begin to learning
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)
If team.Name == "zombies" then
** You are now Level 14! **
Plr.charater = (path to zombie model):Clone()
Plr.charater.parent = workspace
Plr:LoadCharacter()
oh okay thanks
Hey i think there are some errors with the plr thing and i dont really know how to do the path to the zombie model
** You are now Level 1! **
That is wrong on so many levels 😭