generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Make a team spawn as a model?

Previous Thread :: Next Thread 
Dullbuilderman26 is not online. Dullbuilderman26
Joined: 03 Aug 2011
Total Posts: 985
02 Oct 2014 04:53 AM
So I was wondering if there would be a script allowing someone to spawn as a certain model within the game, basically the model would be in server storage and then when the player joins the team the model within server storage clones and puts all its scripts and functions within the user on the team and then allowing that user to do what the model done in the first place.

Any help will be appreciated..
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 04:58 AM
You mean like
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(char)
game.ServerStorage.Model:Clone().Parent = char
end)
end)
Report Abuse
Dullbuilderman26 is not online. Dullbuilderman26
Joined: 03 Aug 2011
Total Posts: 985
02 Oct 2014 05:06 AM
Yeah,
thanks,

Report Abuse
Dullbuilderman26 is not online. Dullbuilderman26
Joined: 03 Aug 2011
Total Posts: 985
02 Oct 2014 05:07 AM
But to a team named zombie,
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Oct 2014 05:09 AM
Not familiar with teams, but after the Character added line just add an if p.TeamName == "Zombie" then
And add an extra end to close it (before the ones with the brackets)
Report Abuse
Dullbuilderman26 is not online. Dullbuilderman26
Joined: 03 Aug 2011
Total Posts: 985
02 Oct 2014 05:13 AM
Thanks,
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image