function Start() if script.Parent.Attack.Value.Value == "Laser eye" then wait() local Laser = game.Lighting.Laser:Clone() Laser.Parent = script.Parent Laser.Position = script.Parent.Position Laser.Part.Position = script.Parent.Position print("okkkk") game.Debris:AddItem(Laser,.5) print("Ok") end if script.Parent.Attack.Value.Value == "Laser Burst" then wait(2) local Laser = game.Lighting.Laser:Clone() Laser.Parent = script.Parent Laser.Position = script.Parent.Position Laser.Part.Position = script.Parent.Position print("okkkk") game.Debris:AddItem(Laser,.5) end end skill = {"Laser Eye","Laser Brust"} script.Parent.Attack.Value.Value = skill[math.random(1,#skill)] Start() print("okoooo")
No errors in output. The lay out is Handle/Attack/Value
i just corected your spelling. if it still dont work add print("ok") after game.Debris:AddItem(Laser,.5)
function Start() if script.Parent.Attack.Value.Value == "Laser Eye" then wait() local Laser = game.Lighting.Laser:Clone() Laser.Parent = script.Parent Laser.Position = script.Parent.Position Laser.Part.Position = script.Parent.Position print("okkkk") game.Debris:AddItem(Laser,.5) print("Ok") end if script.Parent.Attack.Value.Value == "Laser Burst" then wait(2) local Laser = game.Lighting.Laser:Clone() Laser.Parent = script.Parent Laser.Position = script.Parent.Position Laser.Part.Position = script.Parent.Position print("okkkk") game.Debris:AddItem(Laser,.5) end end skill = {"Laser Eye","Laser Burst"} script.Parent.Attack.Value.Value = skill[math.random(1,#skill)] Start() print("okoooo")