Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,d in pairs(game.Players:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- d.Chatted:Connect(function(msg)
- if msg:lower():sub(1,5) == "|play" then
- d = game.Players.FlamingHawk257
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- ScreenGui.Parent = d.PlayerGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.AnchorPoint = Vector2.new(1, 1)
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BackgroundTransparency = 0.60000002384186
- Frame.Position = UDim2.new(0.255161017, 0, 0.79296875, 0)
- Frame.Size = UDim2.new(0.255161047, 0, 0.0946714282, 0)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0.685019493, 0, 0.999999583, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Amount of tiles:"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0.685019493, 0, 0, 0)
- TextLabel_2.Size = UDim2.new(0.314980417, 0, 0.999999762, 0)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "0"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- d.Character:FindFirstChildOfClass("Humanoid").JumpPower = 0
- local r = math.random(1,255)
- local g = math.random(1,255)
- local b = math.random(1,255)
- local heck = 0
- local oldos = os.time()
- Frame.BackgroundColor3 = Color3.fromRGB(r,g,b)
- local hr = r/2
- local hg = g/2
- local hb = b/2
- j = Instance.new("Part",workspace)
- j.CanCollide = false
- j.Transparency = 1
- j.Anchored = true
- j.Color = Color3.fromRGB(r/2,g/2,b/2)
- local AAA = j.Color
- j:Destroy()
- d.Character["Right Leg"].Touched:Connect(function(part)
- coroutine.resume(coroutine.create(function()
- if part.ClassName == "Part" and part.Name ~= "Baseplate" and part.Name ~= "Base" and part.Color == Color3.fromRGB(0,0,0) then
- part.Color = Color3.fromRGB(r/2,g/2,b/2)
- wait()
- heck = heck+1
- TextLabel_2.Text = heck
- wait(2)
- part.Color = Color3.fromRGB((r/2)*2,(g/2)*2,(b/2)*2)
- 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
- if 3 == 3 then
- print(part.Color)
- if workspace:FindFirstChild("Message") == nil then
- hin = Instance.new("Hint",workspace)
- hin.Text = (d.Name.." Colored "..heck.." tiles after "..os.time()-oldos.." seconds!")
- d.Character:BreakJoints()
- wait(5)
- hin.Parent = nil
- wait()
- end
- end
- elseif part.Name == "Baseplate" or part.Name == "Base" then
- d.Character:BreakJoints()
- hin.Text = (d.Name.." Colored "..heck.." tiles after "..os.time()-oldos.." seconds!")
- end
- end))
- end)
- end
- end)
- end))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement