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)

5 comments
21:44:44.030 - Players.OniSanYamate.Backpack.Emit:35: 'end' expected (to close 'function' at line 9) near ''
Oh. Ifixed it
You dont need to use an if statment just to assing a boolean use ready = (EmitPartiClone.Parent == char.RightHand or EmitPartiClone.Parent == char.LeftHand))
^ Oh, I never thought of it like that. Both ways still work though, right?
you didnt put end didnt you lol