local z=script.Parent.Parent local T=z:WaitForChild("\072\117\109\097\110\111\105\100")local f=z:WaitForChild("\083\101\097\116")local X=f.Occupant script.Parent.Parent.Seat.Changed:connect(function(T)if f.Occupant~=X then X=f.Occupant if X then local T=game.Players:GetPlayerFromCharacter(X.Parent)if T then local f=script.LocalControlScript:Clone()f.Horse.Value=z f.Parent=T.PlayerGui f.Disabled=false end end end end)


local character = script.Parent.Parent
local humanoid = character:WaitForChild("Humanoid")
local seat = character:WaitForChild("Seat")
local occupant = seat.Occupant

script.Parent.Parent.Seat.Changed:connect(function(property)
	if seat.Occupant ~= occupant then
		occupant = seat.Occupant
		if occupant then
			local player = game.Players:GetPlayerFromCharacter(occupant.Parent)
			if player then
				local localControlScript = script.LocalControlScript:Clone()
				localControlScript.Horse.Value = character
				localControlScript.Parent = player.PlayerGui
				localControlScript.Disabled = false
			end
		end
	end
end)
