|
| 07 Aug 2012 02:55 PM |
function player() local p = Script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid") if p.TeamColor == BrickColor.new("White") then p.MaxHealth = math.huge p.Health = p.MaxHealth script.Parent.Parent.Parent.OuterGui.Visible = false script.Parent.Parent.Visible = false end end |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 02:56 PM |
function player() local p = Script.Parent.Parent.Parent.Character:findFirstChild("Humanoid") -- LC if p.TeamColor == BrickColor.new("White") then p.MaxHealth = math.huge p.Health = p.MaxHealth script.Parent.Parent.Parent.OuterGui.Visible = false script.Parent.Parent.Visible = false end end |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 02:57 PM |
| Brain fart forget what I said |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 02:58 PM |
| Wheres the connection line? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 07 Aug 2012 03:03 PM |
| it's not working because you have no connection line!!!!!!!!!!! |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:04 PM |
game.Players.PlayerAdded:connect(function(player()) local p = Script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid") if p.TeamColor == BrickColor.new("White") then p.MaxHealth = math.huge p.Health = p.MaxHealth script.Parent.Parent.Parent.OuterGui.Visible = false script.Parent.Parent.Visible = false end end
Maybe this will work? |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:04 PM |
| It's a gui you get when you enter the game, and when you press play you're suppose to get infinite health, change teams, and get teleported to somewhere. right now i'm working on just getting rid of the gui when you press play... |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:05 PM |
| well in that case you still need a connection line.... |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:08 PM |
| what's a connection line... |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:08 PM |
script.Parent.MouseButton1Click:connect(player)
Put that at the bottom of the script and it should work. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:09 PM |
| ooh, never knew the name of a connection line, lol. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:10 PM |
A connection line is what connects an event to a function. In this case the event would be the button being clicked once. (MouseButton1Click) So script.Parent -- Referring to the button its inside script.Parent.MouseButton1Click -- When its clicked once, fires the function script.Parent.MouseButton1Click:connect(player) -- Connects the event to the function you want to happen when it is clicked once. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2012 03:23 PM |
| Maybe since p goes to humanoid it checks for children of humanoid or something? help qq this is irritating |
|
|
| Report Abuse |
|
|