local CanDrive = script.Parent.Events.CanDrive
local CantDrive = script.Parent.Events.CantDrive
local UIS = game:GetService(“UserInputService”)
local Seated = false
CanDrive.OnClientEvent:Connect(function()
Seated = true
end)
CantDrive.OnClientEvent:Connect(function()
Seated = false
end)
UIS.InputBegan:Connect(function(KC)
print(“InputBegan”)
if Seated == true then
print(“PassedInput”)
if KC.KeyCode == Enum.KeyCode.W then
script.Parent.Events.Front:FireServer()
print(“Front”)
end
if KC.KeyCode == Enum.KeyCode.A then
script.Parent.Events.Left:FireServer()
print("Left")
end
if KC.KeyCode == Enum.KeyCode.S then
script.Parent.Events.Back:FireServer()
print("Back")
end
if KC.KeyCode == Enum.KeyCode.D then
script.Parent.Events.Right:FireServer()
print("Right")
end
end
end)