For some reason, I can't get the player's humanoid sit in a chair:
--module:
actions["seat"].Sit.func = function(player, popup)
if not popup.Occupant then
popup.Sit(player.Character.Humanoid)
end
end
--localscript:
local player = game.Players.LocalPlayer
button.MouseButton1Click:Connect(function() v.func(player, closest) end) -- closest is a seat instance
Note: func() works, if i put a print statement inside of it and call it, it prints accordingly. Just for some reason, in the modulescript, when .Sit is called it thinks im calling it from a humanoid, when popup is a seat instance

4 comments
You can find Seat in insert object
yes i know did you even read my question?
Functions for objects are normally called with colon, not with a period
thank you so much that seems to do it!