generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Gui that kills you

Previous Thread :: Next Thread 
your90 is not online. 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
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
25 Aug 2013 07:37 PM
script.Parent.MouseButton1Down:connect(function()
Game.Players.LocalPlayer.Character:BreakJoints()
end)
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
25 Aug 2013 07:38 PM
Just
fucntion OnClicked()
not
script:function OnClicked()
Report Abuse
cntkillme is not online. 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 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
25 Aug 2013 07:40 PM
Thanks! :p
Report Abuse
bigdaddy92 is not online. bigdaddy92
Joined: 17 Jan 2010
Total Posts: 1684
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 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
25 Aug 2013 07:41 PM
@ Iterations thx
Report Abuse
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
25 Aug 2013 07:53 PM
GUI that kills you? http://www.roblox.com/Innocent-place?id=56780928
Report Abuse
your90 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
25 Aug 2013 07:54 PM
I HATE U
Report Abuse
your90 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
25 Aug 2013 07:55 PM
n00b its a popup
Report Abuse
domorox17 is not online. 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
TradeYoloSwag is not online. TradeYoloSwag
Joined: 31 May 2013
Total Posts: 1689
26 Aug 2013 11:59 PM
Iretations would not work probably

Because it would kill all the players


Report Abuse
TradeYoloSwag is not online. TradeYoloSwag
Joined: 31 May 2013
Total Posts: 1689
27 Aug 2013 12:00 AM
script.Parent.MouseButton1Down:connect(function(kill)
kill.Character.Humanoid.MaxHealth = 0
end)
Report Abuse
domorox17 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image