What the Scripts on the bottom are supposed to do, when you sit down on the seat (Scripts and gui are in it) a Text pops up on your screen about the car capacity which the max is 8. BUT using the scripts below keeps making errors. I need help? i have screen shots. What it keeps doing is the Text pops up, But the Message Doesnt. (mainly about the 2nd script) i have a numbervalue in workspace named PlayersInCar.
Error Screenshot Seat Stuff Screenshot
Script in seat:
local gui = script.Parent:FindFirstChild("ScreenGui")
script.Parent.Touched:Connect(function(hit)
if hit.Parent ~= nil then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
hit.Parent.Humanoid.Seated:Connect(function(active, seat)
if player ~= nil then
if active == true and seat == script.Parent then
if player.PlayerGui:FindFirstChild("ScreenGui") == nil then
gui:Clone().Parent = player.PlayerGui
game.Workspace.Value.Value = game.Workspace.Value.Value + 1
end
elseif active ~= true and seat ~= script.Parent then
if player.PlayerGui:FindFirstChild("ScreenGui") ~= nil then
player.PlayerGui:FindFirstChild("ScreenGui"):Destroy()
end
end
end
end)
end
end
end)
Script in Text Label:
local number = game.Workspace.PlayersInCar
script.Parent.Text = "Car Capacity: "..number.."/8"
wait(1)
if number == 8 then
game.Workspace.TeleportPad.Script.Disabled = true
game.Workspace.TeleportPad.CanCollide = true
else
game.Workspace.TeleportPad.Disabled = false
game.Workspace.TeleportPad.CanCollide = false
end

4 comments
why did i get a down vote? i just needed help..
also sorry if i couldn't explain it well because im bad at explaining
Oh, made a slight typo, try it now
oh allright.