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
Line 5:
popup.Sit(player.Character.Humanoid)
Fixed
player.Character.Humanoid.Sit = true