Advertisement
BobMe

Untitled

Mar 2nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i,d in pairs(game.Players:GetChildren()) do
  2. coroutine.resume(coroutine.create(function()
  3. d.Chatted:Connect(function(msg)
  4. if msg:lower():sub(1,5) == "|play" then
  5. d = game.Players.FlamingHawk257
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10. ScreenGui.Parent = d.PlayerGui
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12. Frame.Parent = ScreenGui
  13. Frame.AnchorPoint = Vector2.new(1, 1)
  14. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  15. Frame.BackgroundTransparency = 0.60000002384186
  16. Frame.Position = UDim2.new(0.255161017, 0, 0.79296875, 0)
  17. Frame.Size = UDim2.new(0.255161047, 0, 0.0946714282, 0)
  18.  
  19. TextLabel.Parent = Frame
  20. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  21. TextLabel.BackgroundTransparency = 1
  22. TextLabel.Size = UDim2.new(0.685019493, 0, 0.999999583, 0)
  23. TextLabel.Font = Enum.Font.SourceSans
  24. TextLabel.Text = "Amount of tiles:"
  25. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  26. TextLabel.TextScaled = true
  27. TextLabel.TextSize = 14
  28. TextLabel.TextWrapped = true
  29.  
  30. TextLabel_2.Parent = Frame
  31. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  32. TextLabel_2.BackgroundTransparency = 1
  33. TextLabel_2.Position = UDim2.new(0.685019493, 0, 0, 0)
  34. TextLabel_2.Size = UDim2.new(0.314980417, 0, 0.999999762, 0)
  35. TextLabel_2.Font = Enum.Font.SourceSans
  36. TextLabel_2.Text = "0"
  37. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  38. TextLabel_2.TextScaled = true
  39. TextLabel_2.TextSize = 14
  40. TextLabel_2.TextWrapped = true
  41. d.Character:FindFirstChildOfClass("Humanoid").JumpPower = 0
  42. local r = math.random(1,255)
  43. local g = math.random(1,255)
  44. local b = math.random(1,255)
  45. local heck = 0
  46. local oldos = os.time()
  47. Frame.BackgroundColor3 = Color3.fromRGB(r,g,b)
  48. local hr = r/2
  49. local hg = g/2
  50. local hb = b/2
  51. j = Instance.new("Part",workspace)
  52. j.CanCollide = false
  53. j.Transparency = 1
  54. j.Anchored = true
  55. j.Color = Color3.fromRGB(r/2,g/2,b/2)
  56. local AAA = j.Color
  57. j:Destroy()
  58. d.Character["Right Leg"].Touched:Connect(function(part)
  59. coroutine.resume(coroutine.create(function()
  60. if part.ClassName == "Part" and part.Name ~= "Baseplate" and part.Name ~= "Base" and part.Color == Color3.fromRGB(0,0,0) then
  61. part.Color = Color3.fromRGB(r/2,g/2,b/2)
  62. wait()
  63. heck = heck+1
  64. TextLabel_2.Text = heck
  65. wait(2)
  66. part.Color = Color3.fromRGB((r/2)*2,(g/2)*2,(b/2)*2)
  67. elseif (part.ClassName == "Part" and part.Name ~= "Baseplate" and part.Name ~= "Base" and part.Color ~= Color3.fromRGB(0,0,0)) and part.Color ~= AAA then
  68. if 3 == 3 then
  69. print(part.Color)
  70. if workspace:FindFirstChild("Message") == nil then
  71. hin = Instance.new("Hint",workspace)
  72. hin.Text = (d.Name.." Colored "..heck.." tiles after "..os.time()-oldos.." seconds!")
  73. d.Character:BreakJoints()
  74. wait(5)
  75. hin.Parent = nil
  76. wait()
  77. end
  78. end
  79. elseif part.Name == "Baseplate" or part.Name == "Base" then
  80. d.Character:BreakJoints()
  81. hin.Text = (d.Name.." Colored "..heck.." tiles after "..os.time()-oldos.." seconds!")
  82. end
  83. end))
  84. end)
  85. end
  86. end)
  87. end))
  88. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement