Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local button = script.Parent
- --part named button child clickdetector then this script
- function fire()
- print("hello")
- button.BrickColor = BrickColor.new("Really black")
- local uberFlake = Instance.new("Part")
- uberFlake.Shape = "Ball"
- uberFlake.BrickColor = BrickColor.new("White")
- uberFlake.Size = Vector3.new(5,5,5)
- uberFlake.CanCollide = true
- uberFlake.Name = "UberSnowflake"
- uberFlake.Parent = workspace
- uberFlake.CFrame = CFrame.new(button.Parent.loc.Position+Vector3.new(1, 1, 0))
- local slower = Instance.new("BodyVelocity")
- local x = -20
- local y = 5
- slower.velocity = Vector3.new(-5,2,0)
- slower.maxForce = Vector3.new(1000000,1000000,1000000)
- slower.Parent = uberFlake
- local erryday = Instance.new("Smoke")
- erryday.Parent = uberFlake
- local count = 0
- for i=1,100 do
- count = count + 1
- y = y - 1
- slower.velocity = Vector3.new(x,y,0)
- if (count == 15) then
- local fire = Instance.new("Fire")
- fire.Size = 10
- fire.Parent = uberFlake
- end
- wait(0.1)
- end
- end
- button.ClickDetector.MouseClick:connect(fire)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement