I made this animation that is supposed to play when it is triggered but it says "attempt to call a nil value" and the character just freezes in place. Can somebody please help me? (this is a server script)

while true do
	wait(0.000001)
	local hp = script.Parent.flower.Health
	if hp <1 then
		script:Destroy()
	end
	if hp <= 102499 then
		local ring = game.ServerStorage.darkring
		local burst = ring:Clone()
		local flower = script.Parent:WaitForChild("flower")
		wait(8)
		script.Parent.flower.WalkSpeed = 0
			local burstanim = Instance.new("Animation")
		burstanim.AnimationId = "rbxassetid://5187135535"
		local batrack = flower:LoadAnimation(burstanim)
		batrack:Play()
		burst.Parent = script.Parent
		burst.Position = script.Parent.UpperTorso.TorsoCenterAttachment.Position
		burst.expand.Disabled = false
		wait(2)
		burst:Destroy()
script.Parent.flower.WalkSpeed = 13		
	end
end