Overpride
|
  |
| Joined: 30 Aug 2011 |
| Total Posts: 1037 |
|
|
| 09 Aug 2014 04:50 PM |
function player_addition(Plyr) Loading_01 = true Plyr:WaitForChild("PlayerGui") Plyr.PlayerGui:WaitForChild("Menu") game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui Plyer.CharacterAdded:connect(function(Character_01) Character_01:WaitForChild("Humanoid").Died:connect(function() if Loading_01 == true then game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui end end end) end) end end
game.Players.PlayerAdded:connect(player_addition)
The error says: ')" expected to close '(' at line 7) near 'end' |
|
|
| Report Abuse |
|
|
Overpride
|
  |
| Joined: 30 Aug 2011 |
| Total Posts: 1037 |
|
|
| 09 Aug 2014 04:52 PM |
| I don't understand, what am I supposed to close? |
|
|
| Report Abuse |
|
|
Overpride
|
  |
| Joined: 30 Aug 2011 |
| Total Posts: 1037 |
|
| |
|
|
| 09 Aug 2014 04:54 PM |
function player_addition(Plyr) Loading_01 = true Plyr:WaitForChild("PlayerGui") Plyr.PlayerGui:WaitForChild("Menu") game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui Plyer.CharacterAdded:connect(function(Character_01) Character_01:WaitForChild("Humanoid").Died:connect(function) if Loading_01 == true then game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui end end end) end) end end |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Aug 2014 04:54 PM |
function player_addition(Plyr) Loading_01 = true Plyr:WaitForChild("PlayerGui") Plyr.PlayerGui:WaitForChild("Menu") game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui Plyer.CharacterAdded:connect(function(Character_01) Character_01:WaitForChild("Humanoid").Died:connect(function() if Loading_01 == true then game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui end end) end) end
game.Players.PlayerAdded:connect(player_addition)
--You had extra 'end's |
|
|
| Report Abuse |
|
|
Overpride
|
  |
| Joined: 30 Aug 2011 |
| Total Posts: 1037 |
|
| |
|
Krypticon
|
  |
| Joined: 12 Feb 2014 |
| Total Posts: 680 |
|
|
| 09 Aug 2014 05:13 PM |
| I've also noticed you need to capitalize ':clone()'. So it should be ':Clone()'. :) |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 09 Aug 2014 05:15 PM |
@Krypticon I don't think that matters with events.
clone() works just as well as Clone() |
|
|
| Report Abuse |
|
|
Krypticon
|
  |
| Joined: 12 Feb 2014 |
| Total Posts: 680 |
|
|
| 09 Aug 2014 05:18 PM |
Does it? :P I'll keep that in mind :P |
|
|
| Report Abuse |
|
|