Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Made By SolarFloss and Stuff]]--
- --Put the ParticleType item in the StarterGui
- wait()
- local player = game.Players.LocalPlayer
- while player.PlayerGui:FindFirstChild('MainLoad') ~= nil do
- wait()
- end
- wait(.1)
- local mouse = player:GetMouse()
- local type = {"Raindrops","Trail","Confetti","Fire","Fountain","Side"}
- player.PlayerGui.ParticleType.Value = type[math.random(1,#type)]
- function confetti(x,y)
- local colors = {1,5,9,11,18,21,23,24,26,28,29,37,38,45,101,102,104,105,106,107,125,135,1013.1015,1018,1017,1016,1010,1012,1011,1004,232,226,1030,1027,1024}
- local main = Instance.new("ScreenGui",player.PlayerGui)
- local parts = Instance.new("Frame",main)
- parts.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- num = math.random(1,5)
- parts.BackgroundColor = BrickColor.new(colors[math.random(1,#colors)])
- parts.Size = UDim2.new(0,num,0,num)
- parts.BorderColor = parts.BackgroundColor
- for i = 0, 1, .1 do
- wait(math.random(.003,.1))
- parts.Rotation = i*200
- parts.Position = parts.Position + UDim2.new(0,x,0,y)
- parts.BackgroundTransparency = i
- end
- main:remove()
- end
- function fountain(x,y,yvel,gravity)
- local colors = {107,1010,1011,1013,1018,1019,1027,1024}
- local main = Instance.new("ScreenGui",player.PlayerGui)
- local parts = Instance.new("Frame",main)
- parts.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- num = math.random(1,5)
- parts.BackgroundColor = BrickColor.new(colors[math.random(1,#colors)])
- parts.Size = UDim2.new(0,num,0,num)
- parts.BorderColor = parts.BackgroundColor
- for i = 0, 1, .03 do
- yvel = yvel + .01
- gravity = gravity * yvel
- y = y + gravity
- wait()
- parts.Position = parts.Position + UDim2.new(0,x,0,y)
- parts.BackgroundTransparency = i
- end
- main:remove()
- end
- function fire(x,y)
- local colors = {21,1004,1014,1005,105,106}
- local main = Instance.new("ScreenGui",player.PlayerGui)
- local parts = Instance.new("Frame",main)
- parts.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- num = math.random(1,5)
- parts.BackgroundColor = BrickColor.new(colors[math.random(1,#colors)])
- parts.Size = UDim2.new(0,num,0,num)
- parts.BorderColor = parts.BackgroundColor
- for i = 0, 1, .1 do
- wait(math.random(.003,.1))
- parts.Position = parts.Position + UDim2.new(0,0,0,y)
- parts.BackgroundTransparency = i
- end
- main:remove()
- end
- function trail()
- local colors = {107,1010,1011,1013,1018,1019,1027,1024}
- local main = Instance.new("ScreenGui",player.PlayerGui)
- local parts = Instance.new("Frame",main)
- parts.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- num = math.random(1,5)
- parts.BackgroundColor = BrickColor.new(colors[math.random(1,#colors)])
- parts.Size = UDim2.new(0,num,0,num)
- parts.BorderColor = parts.BackgroundColor
- for i = 0, 1, .03 do
- wait()
- parts.Rotation = i*200
- parts.BackgroundTransparency = i
- end
- main:remove()
- end
- function raindrops(x,y)
- local colors = {107,1010,1011,1013,1018,1019,1027,1024}
- local main = Instance.new("ScreenGui",player.PlayerGui)
- local parts = Instance.new("Frame",main)
- parts.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- num = math.random(1,5)
- parts.BackgroundColor = BrickColor.new(colors[math.random(1,#colors)])
- parts.Size = UDim2.new(0,num,0,num)
- parts.BorderColor = parts.BackgroundColor
- for i = 0, 1, .1 do
- wait(math.random(.003,.1))
- parts.Position = parts.Position + UDim2.new(0,0,0,y)
- parts.BackgroundTransparency = i
- end
- main:remove()
- end
- function side(x,y,yvel,gravity)
- local colors = {107,1010,1011,1013,1018,1019,1027,1024}
- local main = Instance.new("ScreenGui",player.PlayerGui)
- local parts = Instance.new("Frame",main)
- parts.Position = UDim2.new(0,mouse.X,0,mouse.Y)
- num = math.random(1,5)
- parts.BackgroundColor = BrickColor.new(colors[math.random(1,#colors)])
- parts.Size = UDim2.new(0,num,0,num)
- parts.BorderColor = parts.BackgroundColor
- for i = 0, 1, .03 do
- yvel = yvel + .1
- gravity = gravity * yvel
- y = y * gravity
- wait()
- parts.Position = parts.Position + UDim2.new(0,x,0,y)
- parts.BackgroundTransparency = i
- end
- main:remove()
- end
- mouse.Move:connect(function()
- if player.PlayerGui.ParticleType.Value == "Confetti" then
- confetti(math.random(-5,5),math.random(-5,5))
- elseif player.PlayerGui.ParticleType.Value == "Fountain" then
- fountain(math.random(-1,1),math.random(-10,-5),.9,.9)
- elseif player.PlayerGui.ParticleType.Value == "Fire" then
- fire(math.random(-3,3),math.random(-9,-1))
- elseif player.PlayerGui.ParticleType.Value == "Trail" then
- trail(math.random(-3,3),math.random(-9,-4))
- elseif player.PlayerGui.ParticleType.Value == "Raindrops" then
- raindrops(math.random(1,9),math.random(1,9))
- elseif player.PlayerGui.ParticleType.Value == "Side" then
- side(math.random(-3,3),math.random(-9,-4),.1,.1)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement