Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetRainbowRGB(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
- elseif section < 2 then
- return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
- else
- return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
- end
- end
- i = 1
- function grainbors()
- while true do
- wait()
- local red, green, blue = GetRainbowRGB(tick())
- tex.TextStrokeColor3 = Color3.new(0.6 * red, 0.6 * green, 0.65 * blue)
- end
- end
- function adpls()
- i = i + 1
- tex.Text = i.." Clicks"
- end
- podium = Instance.new("Part",script)
- podium.Position = Vector3.new(-3,3,34)
- podium.Anchored = true
- podium.Size = Vector3.new(2, 6, 2)
- click = Instance.new("Part",script)
- click.Anchored = true
- click.Position = Vector3.new(-3, 6.5, 34)
- click.Size = Vector3.new(2, 1, 2)
- click.BrickColor = BrickColor.new("Really red")
- wallthing = Instance.new("Part",script)
- wallthing.FormFactor = ("Custom")
- wallthing.Anchored = true
- wallthing.Size = Vector3.new(69, 26.6, 0.2)
- wallthing.Position = Vector3.new(-5, 20.8, 76.9)
- wallthing.Transparency = 1
- wallthing.CanCollide=false
- s = Instance.new("SurfaceGui",wallthing)
- s.Adornee = wallthing
- tex = Instance.new("TextLabel",s)
- tex.BackgroundTransparency = 1
- tex.BorderColor3 = Color3.new(27,42,53)
- tex.BorderSizePixel = 1
- tex.TextColor3 = Color3.new(255,255,255)
- tex.Text = "Click the red button"
- tex.TextStrokeTransparency = 0
- tex.Size = UDim2.new(1,0,1,0)
- tex.TextScaled = true
- tex.Font = "Legacy"
- Instance.new("ClickDetector",click)
- click.ClickDetector.MouseClick:connect(adpls)
- grainbors()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement