this is a script that if you press c, you will sit and get some particles, but they dont stop, how do i fix it?
mouse.KeyDown:connect(function(key)~~~~~~~~~~~~~~~~~
if key == "e" then
player.Character.Humanoid.Sit=true
local Player = game.Players.LocalPlayer
local Particle = Instance.new("ParticleEmitter")
Particle.Parent = Player.Character.HumanoidRootPart --- Particle.Color = Color3.new(255, 255, 255) ---
Particle.LightEmission = 1 ---
Particle.LightInfluence = 1 ---
Particle.Size = 1 ---
Particle.Texture = "http://www.roblox.com/asset/?id=540295385"---
Particle.Transparency = 0 ---
Particle.ZOffset = 0
Particle.EmissionDirection = "Top"
Particle.Enabled = true
Particle.Lifetime = 0, 10 ---
Particle.Rate = 5 ---
Particle.Speed = 5 ---
wait (1)
Particle.Enabled = false
end end)
ALSO is there a way to make a sound play if this is used just to know?
