So I've been working on a script that needs a lot of help, I'm making it open source for anybody who wants something but I currently only have the main basics with an exploding fireball. Debounce is one of my biggest issues so I made the whole script deactivate which is horrible, there's no "summoning circle" which is annoying, and the part that gets spawned in gets removed instantly. This is just the single "Q" blast, all I really need is for the "explosion" part to work and maybe I'll add a "humanoid damage" script onto it so it isn't an instant kill.
local Tool = script.parent
local ws = game:GetService("Workspace")
local me = game.Players.LocalPlayer
handle = me.Character.Torso
Tool.Equipped:connect(function(mouse)
print("Ready!")
end)
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
Anim = script.Animation
Mouse.KeyDown:connect(function(key)--PRESSED Q
if key == "q" then
print ("PRESSED Q!")
s = player.Character.Humanoid:LoadAnimation(Anim)
s:Play()
local p = Instance.new("Part")--BLAST
p.CFrame = CFrame.new(handle.Position)
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
p.Shape = Enum.PartType.Ball
p.Size = Vector3.new(2, 2, 2)
p.Transparency = (0.5)
p.CanCollide = false
p.Material = "Neon"
p.BrickColor = BrickColor.new("Neon green")
p.Parent = ws
------------------------------------------------------------Explode?--
p.Touched:connect(function(hitpart) -- We now have the hit part, so let's use it!
if hitpart.Parent.Name ~= player.Name then
print("KABOOM!")
local Explosion = Instance.new("Explosion")
Explosion.BlastPressure = 100
Explosion.BlastRadius = 3
Explosion.Position = p -- Position of the explosion is p
Explosion.Parent = game.Workspace
p:Destroy() -- Destroy the fireball
end
end)
-----------------PARTICLES-----------------
local ParticleEffect = Instance.new("ParticleEmitter")
ParticleEffect.Size = NumberSequence.new(2)
ParticleEffect.Transparency = NumberSequence.new(0.5)
ParticleEffect.LightEmission = 0.3
ParticleEffect.Rate = 2860
ParticleEffect.Parent = p
ParticleEffect.Acceleration = Vector3.new(0,0,0)
ParticleEffect.Lifetime = NumberRange.new(0.2)
ParticleEffect.Speed = NumberRange.new(1)
ParticleEffect.Rotation = NumberRange.new(-360,360)
ParticleEffect.RotSpeed = NumberRange.new(-360,360)
ParticleEffect.Texture = "http://www.roblox.com/asset/?id=296874871"
---woosh---
local woosh = Instance.new("Sound")
woosh.SoundId = "rbxassetid://463598785"
woosh.Volume = 10
woosh.MaxDistance = 250000
woosh.EmitterSize = 1
woosh.Parent = p
woosh.Playing = true
--MOVE--
local bv = Instance.new("BodyVelocity")
bv.Parent = p
bv.velocity = (Mouse.Hit.p - handle.Position).unit*100
game:GetService("Debris"):AddItem(p, 7)
end
--STAP!!!-- (Don't know how to use debounce)
script.Disabled = true
wait (2)
script.Disabled = false
end)
Tool.Unequipped:connect(function()
print("Unequipped!")
end)
I'd really appreciate it if anybody could help.

3 comments
you can put this inside a local script in a tool and test it out for yourself, just add the animation inside the script and name it "Anim"
Whos Eryn
Help me plss To Create this Script and how you create