Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to check if a player is seating?

Asked by 7 years ago

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
1
@Pyrondon Come on, dude. Humanoid.Sit. Link150 1355 — 7y
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. Pyrondon 2089 — 7y

1 answer

Log in to vote
0
Answered by
4jne 18
7 years ago
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)
Ad

Answer this question