your90
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 1380 |
|
|
| 25 Aug 2013 07:36 PM |
How would you make a gui that so when you click on it, it kills the player?
I did
ScreenGui>Frame>TextButton and TextLabel
TextButton>Script
script:function onClicked(click) script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 end
script.Parent.MouseButton1Down:connect(click) |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2013 07:37 PM |
script.Parent.MouseButton1Down:connect(function() Game.Players.LocalPlayer.Character:BreakJoints() end) |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2013 07:38 PM |
Just fucntion OnClicked() not script:function OnClicked() |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 25 Aug 2013 07:38 PM |
And:
"script.Parent.MouseButton1Down:connect(click)" is wrong Not matching function names |
|
|
| Report Abuse |
|
|
your90
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 1380 |
|
| |
|
|
| 25 Aug 2013 07:40 PM |
dog456pop248
He is telling you that is his script... its not a part of the script. |
|
|
| Report Abuse |
|
|
your90
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 1380 |
|
| |
|
|
| 25 Aug 2013 07:53 PM |
| GUI that kills you? http://www.roblox.com/Innocent-place?id=56780928 |
|
|
| Report Abuse |
|
|
your90
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 1380 |
|
| |
|
your90
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 1380 |
|
| |
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 26 Aug 2013 11:47 PM |
my functioning one is buil like this: startergui>screengui>text button>script
and in the script is this:
function slenderman() script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 script.Parent.Text = "Game over!" end
script.Parent.MouseButton1Down:connect(slenderman)
note that the starting text is reset. it works for me as of like 3 seconds ago |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2013 11:59 PM |
Iretations would not work probably
Because it would kill all the players
|
|
|
| Report Abuse |
|
|
|
| 27 Aug 2013 12:00 AM |
script.Parent.MouseButton1Down:connect(function(kill) kill.Character.Humanoid.MaxHealth = 0 end) |
|
|
| Report Abuse |
|
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 27 Aug 2013 12:13 AM |
| it wouldnt kill everyone. i have that exact thing in one of my places and when me and my friends hang out there i frequently test it for glitches and it only ever kills who clicked it |
|
|
| Report Abuse |
|
|
ToTo129
|
  |
| Joined: 26 Feb 2010 |
| Total Posts: 360 |
|
|
| 22 Nov 2013 06:13 PM |
hmmmm maybe this?
function onClick() game.player.Character:BreakJoints() script.parent.MouseButton1Click:connect onClick() |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 22 Nov 2013 06:16 PM |
Post before you: 08-26-2013
i.e. August 26th, 2013
y u do this 2 me? |
|
|
| Report Abuse |
|
|