--------------------------------------Dont change anything under here!----------------------------------------------


function Setup()
	for i,p in pairs(game.Players:GetChildren()) do
		if (p.Character == wand.Parent) then

			if (connect ~= nil) then connect:Disconnect() end
			connect = p.Chatted:Connect(PlayerTalked)
			owner = p
		end
	end
end

function PlayerTalked(words)
	 
	if (string.find(string.lower(words) , string.lower(inc)) ~= nil) and (wand.Parent == owner.Character) then
		print("Casting the spell ''" ..inc.. "''")
		CastSpell()
	end
end

function CastSpell()
	wand.Parent.Humanoid.Jump = true
	wait(.33)
	wand.Parent.UpperTorso.Velocity = Vector3.new(0,10000,0)
end

wand.Equipped:Connect(Setup)
