idk what is the problem on my if condition or anything that will make the script not to work. this is the if and else
if EmitPartiClone.Parent == char.RightHand or char.LeftHand then ready = false else ready = true
and this is the whole Local Script.
math.randomseed(tick()) local input = game:GetService("UserInputService") local player = game.Players.LocalPlayer local animations = {1774809857} local ready = true local function emit(inputObject) if inputObject.KeyCode == Enum.KeyCode.LeftAlt and ready then local char = player.Character local hum = char.Humanoid local animation = Instance.new("Animation") local picked = 1 animation.AnimationId = "http://roblox.com/asset/?id="..animations[picked] local AnimaTrack = hum:LoadAnimation(animation) AnimaTrack:Play() ready = true wait(.8) local Emitparticle = script.ParticleEmitter local EmitPartiClone = Emitparticle:Clone() EmitPartiClone.Parent = char.RightHand wait() local EmitPartiClone = Emitparticle:Clone() EmitPartiClone.Parent = char.RightHand EmitPartiClone.Parent = char.LeftHand if EmitPartiClone.Parent == char.RightHand or char.LeftHand then ready = false else ready = true end end input.InputBegan:connect(emit)
You’ll have to do something like this for the conditional statement :
if EmitPartiClone.Parent == char.RightHand or EmitPartiClone.Parent == char.LeftHand then ready = false else ready = true
Doing char.LeftHand only I think just checks if it exists or not, not where it’s parented.