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: Script Not working!!!

Previous Thread :: Next Thread 
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
06 Sep 2014 02:31 PM
game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(1172343) then
player.TeamColor=game.Teams.Assassins.TeamColor
player.CharacterAdded:connect(function(character)
local hat=game.Lighting.WhiteAssassinHood:clone()
hat.Parent=character
end)
else
local randomTeam=math.random(1,2)--1=Templars 2=Freedom Fighters

if randomTeam==1 then
player.TeamColor=game.Teams.Templars.TeamColor
player.CharacterAdded:connect(function(character)
local hat=game.Lighting.Templar:clone()
hat.Parent=character
end)
else
player.TeamColor=game.Teams:FindFirstChild("Freedom Fighters").TeamColor
player.CharacterAdded:connect(function(character)
local hat=game.Lighting.FreedomFighter:clone()
hat.Parent=character
end)
end
end
end)







The hats don't appear on the character. The other stuff is just controlling who spawns where.


-LordSulfix
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
07 Sep 2014 08:06 AM
bump



-LordSulfix
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
07 Sep 2014 11:13 AM
Bump2


-lordsulfix
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
08 Sep 2014 08:52 PM
Bump3
Report Abuse
Bobobob12 is not online. Bobobob12
Joined: 23 Jan 2008
Total Posts: 5350
08 Sep 2014 08:55 PM
add a slight wait before parenting the hat and see if it works
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
08 Sep 2014 08:57 PM
Ok
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
08 Sep 2014 08:59 PM
Did not work.
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
09 Sep 2014 01:33 PM
Bump.
Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
09 Sep 2014 01:48 PM
use hat:WaitForChild("nameOfHat")
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
10 Sep 2014 06:34 AM
Bump.
Report Abuse
LordSulfix is not online. LordSulfix
Joined: 11 Aug 2013
Total Posts: 79
05 Oct 2014 08:41 PM
Bumpity BUMP BUMP!


-LordSulfix
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