Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fireball = script.Parent
- fireball.Touched:connect(function(object)
- if object.Parent:FindFirstChild('Humanoid') then
- local explosion = Instance.new('Explosion', object)
- explosion.BlastRadius = 100
- object.Parent.Humanoid.Health = 0
- end
- end)
- while true do
- local a = fireball:Clone()
- a.Parent = game.Workspace
- a.Position = fireball.Position
- a.Velocity = Vector3.new(0, math.random(50, 300), 0)
- wait(0.1)
- end
- --- TEST IT NOW!!!!!! Oh yeah, if you want the plates to be invisible, change its transparency to 1.
- --[[
- Since we want this to go on forever, we're going to use a while loop. If you don't want it to go on forever,
- use a for loop like this: The 10000000000 means that's how many explosive ba---that sounds wrong. explosive
- spheres will appear. XD lmfao k But for now, we'll be using a while loop.
- We use while true do so it'll go on forever :D
- We clone the fireball. And we make its parent Workspace so that it exists with everything else.
- We position it where the fireball is to be a bit more specific, but here comes a bit of a tricky part.
- So, to simplify, a Vector3 is a grouping of 3 numbers. It's a bit more complex than that, but that should do it
- for now.
- Now, the first number is the X-axis. The second is the Y-axis, and the third is the Z-axis. We made the Y-axis
- velocity a number inbetween 50 and 300 with math.random. The PC will pick a number between 50 and 300. That's
- how much upwards it will go. Remember, this is a loop! So we're going to need to add in a wait command!
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement