Hi,
i'm trying to make a system where passengers can book there seat. Now there is a Button on a SurfaceGui, but if i click it, nothing happens. (Also nothing in the Dev Console)
Here's my Script:
script.Parent.MouseButton1Click:connect(function()
local playername = game.Players.LocalPlayer.Name
local player = game.Players:FindFirstChild("playername")
local playerbp = player:FindFirstChild("Backpack")
if playerbp:FindFirstChild("HasEco") then
script.Parent.Text = "Select!"
playerbp.HasEco:Destroy()
else
if playerbp:FindFirstChild("HasBuz") then
else
if playerbp:FindFirstChild("HasFirst") then
else
end
end
end
end)
Yeah, that's it.
