Im using R15 for a game im making but it requires particle emitters. I made a script that allows me to turn it on with a keyDown event but i dont know how to turn it off. Here is the script
player = game.Players.LocalPlayer
mouse = player:GetMouse()
function KeyDown(key)
key = key:lower()
local hotkey = script.hawtkey
local particle = player.Character.RightHand:findFirstChild("ParticleEmitter")
if key == hotkey.Value then
local sparkel = Instance.new("ParticleEmitter")
sparkel.Texture = "http://www.roblox.com/asset/?id=492009091"
sparkel.Size = NumberSequence.new(1)
sparkel.Rate = 200
sparkel.Speed = NumberRange.new(20)
sparkel.Lifetime = NumberRange.new(50)
sparkel.Parent = player.Character.RightHand
if particle == true then
player.Character.RightHand.Enabled = false
end
end
end
mouse.KeyDown:connect(KeyDown)

2 comments
thanks, this is a debounce right?
Correct.