rewr

Untitled

Sep 16th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. script.Parent = nil
  2.  
  3. function Troll(player)
  4. local function xd()
  5. coroutine.resume(coroutine.create(function()
  6. local gui = player:findFirstChild("PlayerGui")
  7. local sc = Instance.new("ScreenGui",gui)
  8. sc.Name = "Trollorz"
  9. local image = Instance.new("ImageButton", sc)
  10. image.Image = "http://www.roblox.com/asset/?id=29658197"
  11. offset = 200
  12. image.Size = UDim2.new(1, offset, 1, offset)
  13. image.BackgroundTransparency = 1
  14. local txt = Instance.new("TextLabel",image)
  15. txt.BackgroundTransparency = 1
  16. txt.FontSize = "Size48"
  17. txt.Text = "Problem?"
  18. txt.TextColor3 = Color3.new(0.5, 0.5, 0.5)
  19. txt.Position = UDim2.new(0.5, 0, 0.75, 0)
  20. local makeNew = nil
  21. makeNew = function()
  22. local siz = math.random(180, 340)
  23. local img = Instance.new("ImageButton", image)
  24. img.Size = UDim2.new(0, siz*1.4, 0, siz)
  25. img.Position = UDim2.new(0.5+(math.random(-47,47)/100), -siz/2, 0.5+(math.random(-47,47)/100), -siz/2)
  26. img.Image = "http://www.roblox.com/asset/?id=29658197"
  27. img.BackgroundTransparency = 1
  28. img.MouseButton1Click:connect(function()
  29. makeNew()
  30. end)
  31. local tx = Instance.new("TextLabel",img)
  32. tx.BackgroundTransparency = 1
  33. tx.FontSize = "Size14"
  34. tx.Text = "Problem?"
  35. tx.TextColor3 = Color3.new(0.5, 0.5, 0.5)
  36. tx.Position = UDim2.new(0.5, 0, 0.75, 0)
  37. local xx = Instance.new("TextButton",img)
  38. xx.Text = "X"
  39. xx.Font = "ArialBold"
  40. xx.FontSize = "Size24"
  41. xx.Size = UDim2.new(0, 40, 0, 40)
  42. xx.Position = UDim2.new(1, -offset/2, 0, offset/2)
  43. xx.BackgroundColor3 = Color3.new(1, 0, 0)
  44. xx.TextColor3 = Color3.new(1, 1, 1)
  45. xx.BorderColor3 = Color3.new(1, 1, 1)
  46. xx.MouseButton1Click:connect(function()
  47. makeNew()
  48. end)
  49. end
  50. image.MouseButton1Click:connect(function() makeNew() end)
  51. local x = Instance.new("TextButton",image)
  52. x.Text = "X"
  53. x.Font = "ArialBold"
  54. x.FontSize = "Size24"
  55. x.Size = UDim2.new(0, 40, 0, 40) --76.21.19.0
  56. x.Position = UDim2.new(1, -offset/2, 0, offset/2)
  57. x.BackgroundColor3 = Color3.new(1, 0, 0)
  58. x.TextColor3 = Color3.new(1, 1, 1)
  59. x.BorderColor3 = Color3.new(1, 1, 1)
  60. x.MouseButton1Click:connect(function()
  61. makeNew()
  62. end)
  63. sc.Changed:connect(function()
  64. if sc.Parent ~= gui then
  65. xd()
  66. end
  67. end)
  68. while true do
  69. local diff1, diff2 = math.random(160,450), math.random(140,450)
  70. for i = 0, 1, 0.2 do
  71. wait()
  72. image.Size = UDim2.new(1, -diff1*i+offset, 1, -diff2*i+offset)
  73. image.Position = UDim2.new(0, (diff1/2)*i-(offset/2), 0, (diff2/2)*i-(offset/2))
  74. end
  75. for i = 1, 0, -0.14 do
  76. wait()
  77. image.Size = UDim2.new(1, -diff1*i+offset, 1, -diff2*i+offset)
  78. image.Position = UDim2.new(0, (diff1/2)*i-(offset/2), 0, (diff2/2)*i-(offset/2))
  79. end
  80. end
  81. end))
  82. end
  83. xd(player)
  84. player.CharacterAdded:connect(function() xd(player) end)
  85. end
  86.  
  87. for _,v in pairs(game.Players:GetPlayers()) do
  88. Troll(v)
  89. end
Add Comment
Please, Sign In to add comment