whenever i run this script it works in studio but then when i go to test it in the roblox player it dosnt work

local sitAnim = id
local seat = workspace.setup.chair.Seat
local playingAnim 

local newAnim = Instance.new('Animation')
newAnim.AnimationId = 'rbxassetid://'..sitAnim

seat.Changed:Connect(function(property)
	if property == 'Occupant' then
		local occupant = seat.Occupant
		if not occupant then if playingAnim then playingAnim:Stop() return end end
		playingAnim = occupant:LoadAnimation(newAnim)
		playingAnim:Play()
	end
end)