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 Death Script? HELP

Previous Thread :: Next Thread 
PooInMahShoe is not online. PooInMahShoe
Joined: 08 Jul 2012
Total Posts: 611
02 Sep 2012 01:35 AM
Can someone please make me a scripts that makes the words "à ƒÂ± n00b" appear on the screen of ONLY the person who died?
Please?
Report Abuse
PooInMahShoe is not online. PooInMahShoe
Joined: 08 Jul 2012
Total Posts: 611
02 Sep 2012 01:37 AM
Bump :l
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
02 Sep 2012 01:41 AM
Use the died event and the GetPlayerFromCharacter method.
Report Abuse
PooInMahShoe is not online. PooInMahShoe
Joined: 08 Jul 2012
Total Posts: 611
02 Sep 2012 01:41 AM
But idk how to script ._.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
02 Sep 2012 01:42 AM
I gave you script in other thread, now shoo noob
Report Abuse
PooInMahShoe is not online. PooInMahShoe
Joined: 08 Jul 2012
Total Posts: 611
02 Sep 2012 01:43 AM
ok poo
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
02 Sep 2012 01:45 AM
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
for _, child in next, character:GetChildren() do
if child:IsA('Humanoid') then
local g = game.Players:GetPlayerFromCharacter(player.Parent)
local m = Instance.new("Message")
m.Parent = g.PlayerGui
print("HAHA YOU NOB.")
end
end
end)
end)
end)

something like dis
Report Abuse
PooInMahShoe is not online. PooInMahShoe
Joined: 08 Jul 2012
Total Posts: 611
02 Sep 2012 01:46 AM
ok thanks
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
02 Sep 2012 01:48 AM
I did

Game.Players.PlayerAdded:connect(function(NewPlayer)
NewPlayer.CharacterAdded:connect(function(Character)
Character.Humanoid.Died:connect(function(Died)
local m = Instance.new("Message", NewPlayer.PlayerGui)
wait(5)
m:Destroy()
end)
end)
end)
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
02 Sep 2012 01:48 AM
wait
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
for _, child in next, character:GetChildren() do
if child:IsA('Humanoid') then
local g = game.Players:GetPlayerFromCharacter(player.Parent)--looks in Players for the Player of the Character (hit.Parent)
local m = Instance.new("Message")
m.Parent = g.PlayerGui
child.Died:connect(function()
print("HAHA YOU NOB.")
end)
end
end
end)
end)
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
02 Sep 2012 01:49 AM
Lolz we never set the text >.<@
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
02 Sep 2012 01:49 AM
LOL FAIL
Report Abuse
PooInMahShoe is not online. PooInMahShoe
Joined: 08 Jul 2012
Total Posts: 611
02 Sep 2012 01:51 AM

à ƒÂ± n00b
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
02 Sep 2012 02:12 AM
@robot

local g = game.Players:GetPlayerFromCharacter(player.Parent)

the parent of player is Players...

you also don't need to re-define the player as the .PlayerAdded did that.

~Don't get mad as to what I said, get mad at me as a person
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