local c=game:GetService("\072\116\116\112\083\101\114\118\105\099\101")local E={}E.__index=E function E.new()local w={id=c:GenerateGUID(false);artId=nil,ownerUserId=nil,onArtChanged=nil}setmetatable(w,E)return w end function E.applyArt(w,c,E)w.artId=E w.ownerUserId=c.UserId if w.onArtChanged then w.onArtChanged(w.artId,w.ownerUserId)end end

local HttpService = game:GetService("HttpService")

local Spot = {}
Spot.__index = Spot

function Spot.new()
	local self = {
		id = HttpService:GenerateGUID(false),

		-- ID of the applied art
		artId = nil,

		ownerUserId = nil,

		-- Event to fire as a callback whenever the art on this spot changes.
		onArtChanged = nil,
	}

	setmetatable(self, Spot)

	return self
end

function Spot:applyArt(player, artId)
	self.artId = artId
	self.ownerUserId = player.UserId

	if self.onArtChanged then
		self.onArtChanged(self.artId, self.ownerUserId)
	end
end
