local particles = workspace.Lighting.cannon.particleCore
-- Within Input:
for number,index in pairs(particles:GetChildren()) do
if index:IsA("ParticleEmitter") then
index.Enabled = false
end
end
local particles = workspace.Lighting.cannon.particleCore
function Example()
for number,index in pairs(particles:GetChildren()) do
if index:IsA("ParticleEmitter") then
index.Enabled = not index.Enabled
end
end
end
userInputService.InputBegan:Connect(function(input, gp)
if gp then return end
if input.KeyCode = Enum.KeyCode.C then
Example()
end
end)
userInputService.InputEnded:Connect(function(input, gp)
if gp then return end
if input.KeyCode = Enum.KeyCode.C then
Example()
end
end)