|
| 27 Jun 2014 08:22 PM |
| How do I make this a function? Ill I see is free models with the playerenter function. |
|
|
| Report Abuse |
|
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 27 Jun 2014 08:25 PM |
| player.CharacterAdded:connect(function(character) |
|
|
| Report Abuse |
|
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
|
| 27 Jun 2014 08:26 PM |
PlayerAdded is when they join.
CharacterAdded is everytime their character gets added back into the game i.e respawning. |
|
|
| Report Abuse |
|
|
| |
|
Krosskode
|
  |
| Joined: 26 Aug 2010 |
| Total Posts: 11001 |
|
| |
|
|
| 27 Jun 2014 08:30 PM |
| Wait, I forgot to edit the rest of the script, hold on. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 08:32 PM |
Still didnt work. Heres my current script:
newPlayer.CharacterAdded:connect(function(character) while newPlayer.Character ~= nil do end character:FindFirstChild("Humanoid").NameOcclusion = Enum.OccludeAll wait() c = script.BillboardGui:Clone() c.Parent = character c.AdorneeScript.Disabled = false c.TextLabel1.Visible = true c.TextLabel.Visible = true end) |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 08:33 PM |
| you never defined newPlayer |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2014 08:33 PM |
| and get rid of the ugly while loop |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 08:36 PM |
current script:
newPlayer.CharacterAdded:connect(function(character) character:FindFirstChild("Humanoid").NameOcclusion = Enum.OccludeAll wait() c = script.BillboardGui:Clone() c.Parent = character c.AdorneeScript.Disabled = false c.TextLabel1.Visible = true c.TextLabel.Visible = true end) |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 08:38 PM |
game.Players.PlayerAdded:connect(function(newPlayer) newPlayer.CharacterAdded:connect(function(character) character:FindFirstChild("Humanoid").NameOcclusion = Enum.OccludeAll wait() local c = script.BillboardGui:Clone() c.Parent = character c.AdorneeScript.Disabled = false c.TextLabel1.Visible = true c.TextLabel.Visible = true end) end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 27 Jun 2014 08:40 PM |
| I just helped you stop bumping. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 08:41 PM |
oh and you did nameocclusion wrong
game.Players.PlayerAdded:connect(function(newPlayer) newPlayer.CharacterAdded:connect(function(character) character:FindFirstChild("Humanoid").NameOcclusion = Enum.NameOcclusion.OccludeAll wait() local c = script.BillboardGui:Clone() c.Parent = character c.AdorneeScript.Disabled = false c.TextLabel1.Visible = true c.TextLabel.Visible = true end) end)
|
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 08:43 PM |
| i didnt see where you first helped |
|
|
| Report Abuse |
|
|
| |
|