|
| 01 May 2012 04:54 PM |
| Ok ill help people with there scripting, ill edit and help with anything.. |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 01 May 2012 04:56 PM |
script7 = game.StarterGui.TeamButton.ImageButton.script7 local player = game.Players.LocalPlayer local human = script7.Parent.Parent.Parent.Parent
script7.Parent.MouseButton1Click:connect(function(onclick) human.Character.Humanoid.Health = 0 script7.player.TeamColor = BrickColor.new("1") end)
output is saying everything is alright, but im not dieing OR changing teams :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 May 2012 01:34 AM |
local script7 = player.PlayerGui.TeamButton.ImageButton.script7 local player = game.Players.LocalPlayer local human = script7.Parent.Parent.Parent.Parent script7.Parent.MouseButton1Click:connect(function(onclick) human.Character.Humanoid.Health = 0 player.TeamColor = BrickColor.new(1) end)
-[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:35 AM |
| What kind of Team change is this for "Group Team Change" or just a normal red to bue Team Change???? |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 02 May 2012 01:36 AM |
| game.Parent:Destroy() --Why doesn't it work? ;) |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:37 AM |
Put this in a localscript inside the button
p = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() human.Character.Humanoid.Health = 0 p.TeamColor = BrickColor.new(1) end)
-[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:37 AM |
| You need to have an object to Destroy |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:37 AM |
Also explain NewProxy please.
-[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:38 AM |
| @Cheater you need to have an object to Destroy and @Ranger are you posting for help or posting to help |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:39 AM |
For help. How does NewProxy work?
-[ ɥsɐɯsɹǝƃuɐɹ ]- |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 02 May 2012 01:39 AM |
| The paren't of the game is an unknown object... |
|
|
| Report Abuse |
|
|
|
| 02 May 2012 01:41 AM |
| I dont know how NewProxy works |
|
|
| Report Abuse |
|
|
liavt
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 1241 |
|
|
| 03 May 2012 03:35 PM |
@dylan its a 'team change gui' for team yellow, blue, red, and green. white team is the undecided team and the team change gui only appears on the white team. BTW the actual team change gui itself is working, this is just a button if you want to change teams in the middle of the game. |
|
|
| Report Abuse |
|
|
|
| 03 May 2012 03:38 PM |
| @dylan; A little advice- don't make threads like these. That's what scripting helpers is for, you don't need to make another thread about it. Just help people on their threads. |
|
|
| Report Abuse |
|
|
Jlobblet
|
  |
| Joined: 05 Sep 2010 |
| Total Posts: 587 |
|
| |
|