jte890
|
  |
| Joined: 26 Jul 2013 |
| Total Posts: 525 |
|
|
| 11 Jun 2017 07:29 PM |
Hello. I know that first thing in mind is if you will get paid. I am sorry to say this, but I have no robux on me and I am trying my best to create a game with the lowest amount possible.
Now for the request.
I am trying to figure how I can make a script that will do this: Once a specific NPC is killed a GUI will pop up covering the screen. I don't know how hard this is since Im not that good at scripting. But if anyone could please help me out with this. Even by linking me to a wiki would be useful.
Thanks
Jte890 -- Goodbye |
|
|
| Report Abuse |
|
|
00doggie
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 337 |
|
|
| 11 Jun 2017 08:17 PM |
| to easily make this you need to do these steps: 1. create event for when npc dies ## ###### ### #### to go through players 3. access a gui in each player and set visible to true to use all these steps together, I will create the pseudo code (NOT REAL) repeat wait until script.Parent.Humanoid.Health <= 0 then local children = game.Players:GetChildren() for i = 1, #children do children[i].StarterGui.ScreenGui.Frame.Visible = true --or whereever the gui is end end just edit that ^^ just fix incorrect capitalization, and other small errors and it might work 0_0 |
|
|
| Report Abuse |
|
|
00doggie
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 337 |
|
|
| 11 Jun 2017 08:18 PM |
| dang, sorry about the bad formatting, that happens to me all the time |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2017 08:20 PM |
wiki.roblox.com/index.php?title=API:Class/Humanoid/Died wiki.roblox.com/index.php?title=The_Fundamentals_of_Scripting_with_GUIs wiki.roblox.com/index.php?title=API:Class/Instance/Clone
|
|
|
| Report Abuse |
|
|