Advertisement
ScriptBuilderSHEHAB

no more pyrex, hello to troll

Aug 12th, 2016
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. --//Welcome to the PlayerEnter Script by Alexnewtron V2. Its very simple, change the "creater" name to your name. That way anytime you enter the server, the//--
  2. --//Message will say "The creater has entered the game!". Have fun!//--
  3.  
  4. badge = false --Change this to "true" if you want a Badge given to players in the server when the creater enters.
  5. badgeID = 000000 --Change this to the BadgeID Of your badge. Example: http://www.roblox.com/item.aspx?id=18895943 <-- The last Numbers on the link.
  6. creater = "Ashtong" --Change this to your username.
  7.  
  8.  
  9. function onPlayerEntered(player)
  10. wait(.5)
  11.  
  12. if game.Players:findFirstChild(creater) then
  13. if badge == true then
  14. if badgeID == 000000 then
  15. --BadgeID can not be 000000. Badge not given.
  16. else
  17. --start badge script
  18. local peoplee = game.Players:GetChildren() --tell people someone entered
  19. for q = 1, #peoplee do
  20. print("I met the Creater Badge given to "..player.Name)
  21. local name = player.Name
  22. local p = game.Players[name]
  23. if (p ~= nil) then
  24. print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
  25. local b = game:GetService("BadgeService")
  26. b:AwardBadge(p.userId, badgeID) --Give him/her badge
  27. end
  28. --end badge script
  29. end
  30. end
  31. end
  32. end
  33.  
  34. local people = game.Players:GetChildren() --tell people someone entered
  35. for i = 1, #people do
  36. if people[i] ~= nil then
  37. local skateboardId = 23748034
  38. local root = game:GetService("InsertService"):LoadAsset(skateboardId)
  39. root.Parent = people[i].PlayerGui
  40. if string.sub(string.lower(player.Name),1,6) == "guest " then
  41. root.PlayerEntered.PlayerImage.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username=ROBLOX"
  42. else
  43. root.PlayerEntered.PlayerImage.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..player.Name
  44. end
  45. if player.Name == creater or player.Name == "Player" then
  46. root.PlayerEntered.TextLabel.Text = "The creater, "..player.Name.." has entered the game!"
  47. if badge == true then
  48. if badgeID == 000000 then
  49. print("BadgeID can not be 000000")
  50. else
  51. --start badge script
  52. local peoplee = game.Players:GetChildren() --tell people someone entered
  53. for q = 1, #peoplee do
  54. print("I met the Creater Badge given to "..peoplee[q].Name)
  55. local name = peoplee[q].Name
  56. local p = game.Players[name]
  57. if (p ~= nil) then
  58. print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
  59. local b = game:GetService("BadgeService")
  60. b:AwardBadge(p.userId, badgeID) --Give him/her badge
  61. end
  62. --end badge script
  63. end
  64. end
  65. end
  66. else
  67. root.PlayerEntered.TextLabel.Text = player.Name.." has entered the game!"
  68. end
  69. local peopleee = root:GetChildren()
  70. for y = 1, #peopleee do
  71. peopleee[y].Parent = people[i].PlayerGui
  72. end
  73. root:remove()
  74. end
  75. end
  76.  
  77. end
  78. game.Players.ChildAdded:connect(onPlayerEntered)
  79.  
  80. --Extra Stuff Here
  81.  
  82. m = Instance.new("Hint")
  83. m.Parent = workspace
  84. if badge == false then
  85. m.Text = "PlayerEnter Script by Alexnewtron V2 For: "..creater.." GB: FALSE | ID: "..badgeID
  86. else
  87. m.Text = "PlayerEnter Script by Alexnewtron V2 For: "..creater.." GB: TRUE | ID: "..badgeID
  88. end
  89. wait(5)
  90. m:remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement