Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to check if a player is seating?

I want to make a script that when the player(that is on a seat in the car) clicks a TextButton the car is cloned but I don't know how to check if a player is seating. Help? This is the script I have so far.

local ShowcaseCar = script.Parent.Parent
local Serverstorage = game:GetService("ServerStorage")
local Car = Serverstorage.FordGT
local buyingGUI = game.StarterGui.BuyGUI
local Seat = script.Parent

3 comments

1

@Pyrondon Come on, dude. Humanoid.Sit.

0

That's true if the player is sitting at all; he only wants it to work if they're on a seat inside of the car.

1 answer

game.Players.LocalPlayer.PlayerGui.ScreenGui.Customization.TextButton.MouseButton1Click:Connect(function()
	if game.Players.LocalPlayer.Character.Humanoid.Sit==true then
		print'Character is sitting'
	else
		print'Character is not sitting'
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.