[SOLVED]"The function Sit is not a member of "Humanoid"" error?
Asked by
6 years ago Edited 6 years ago
For some reason, I can't get the player's humanoid sit in a chair:
3 | actions [ "seat" ] .Sit.func = function (player, popup) |
4 | if not popup.Occupant then |
5 | popup.Sit(player.Character.Humanoid) |
3 | local player = game.Players.LocalPlayer |
5 | button.MouseButton 1 Click:Connect( function () v.func(player, closest) end ) |
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