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: Out of order??? Need MAJOR Help!!!

Previous Thread :: Next Thread 
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
20 Jun 2013 01:45 PM
function onTouch(part)
wait(0.01)
local gui = script.Parent.DeathGui:clone()
gui:clone().Parent = game.StarterGui
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.Health = 0
wait(2)
gui:remove()
end
end

script.Parent.Touched:connect(onTouch)


This script was supposed to show a gui when touched and die, but the player dies first and shows the gui when respawned and won't remove after 2 seconds...
Help!!! Major Change it if needed, thnx guys...
Report Abuse
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
20 Jun 2013 01:48 PM
Bump...
Report Abuse
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
20 Jun 2013 01:50 PM
Double Bump...
Report Abuse
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
20 Jun 2013 01:51 PM
Triple Bump...
Report Abuse
MMOfficial is not online. MMOfficial
Joined: 20 May 2013
Total Posts: 276
20 Jun 2013 01:59 PM
Quadra Bump...
Report Abuse
Preston99 is not online. Preston99
Joined: 21 Sep 2008
Total Posts: 247
20 Jun 2013 02:49 PM
You're putting it in the startergui, not the PlayerGui. Put it in the PlayerGui of the player. That's why it's not working.
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