My magicsphere is supposed to fire out a lot of spheres and then if a player touches the sphere they die.This is the script
Player = game.Players.LocalPlayer LazerSphear = script.Parent Mana = 10 mouse = Player:GetMouse() function Magic() Mana = Mana -0.6 for MagicAffects = 1,20 do script.Parent.Handle:Clone() if script.Parent.Handle:FindFirstChild("Humanoid") ~= nil and Humanoid.Health not == 0 then Humanoid.Health = 0 end end end
You never assigned the variable "Humanoid" to anything. You could do
local Humanoid = script.Parent.Handle:FindFirstChild("Humanoid") if Humanoid and Humanoid.Health ~= 0 then Humanoid.Health = 0 end