--------------------------------------------------------------------------------


HealPart.Touched:Connect(function(HitPart)
	local Player = Players:GetPlayerFromCharacter(HitPart.Parent)
	local Humanoid = HitPart.Parent:FindFirstChild("Humanoid")
	
	if Player and Humanoid then
		local Magnitude = (HitPart.Parent:GetPivot().Position - HealPart.Position).Magnitude
		
		if Magnitude < 100 then -- The client can move this with them on the client-side, and touch events will still pass. Just makes it a tiny bit more tedious, cause then they'd have to TP :3
			if Cooldown[Player] then
				return
			end
			Cooldown[Player] = true
			
			Humanoid.Health = Humanoid.MaxHealth
			Fountain.Healed:FireClient(Player, workspace:GetServerTimeNow())
			
			task.wait(Timer)
			Cooldown[Player] = nil
		end
	end
end)
