if Type == "Ignite" then
if On == false then
On = true
Handle.Ignite:Play()
Handle.Hum:Play()
On = true
for _,v in pairs (Emitter:GetChildren()) do
if v.ClassName == "ParticleEmitter" then
v.Enabled = true
end
end
else
On = false
Handle.Sheathe:Play()
Handle.Hum:Stop()
On = false
local Emits = {}
for _,v in pairs (Emitter:GetChildren()) do
if v.ClassName == "ParticleEmitter" then
table.insert(Emits, v)
v.Enabled = false
v.Parent = nil
end
end
for i = 1, #Emits do
Emits[i].Parent = Emitter
end
end
end
Throwing a script on Scripting Support and making a statement isn’t quite the point of this category. This is for receiving help and pointers with code, not for asking for code. In addition to that, your thread is rather vague. Please ensure you’ve met standards with the category guidelines before asking a question.
Have you searched the Developer Hub for any of this yet? There are a lot of articles related to animation that you can read up on, as well as documentation on related objects. Think of what you want and try entering search terms to find it. You can also use Google. Something as simple as “key down function Roblox” would probably even work out.