So… I am trying to make a Vehicle Spawner GUI, so it’s meant to clone on to the client when you click.
No errors, it’s just not showing on the screen, all values are right.
local a = require(game:GetService("ServerScriptService").UTAPI)
local bid = a:GetBoardID("RCPD:FR Master Trello")
script.Parent.ClickDetector.MouseClick:connect(function(plr)
local isAdmin = false
local isTrello = false
print(plr.Name)
if plr.Character:WaitForChild("Humanoid").Health > 0 then
isAdmin = _G.Adonis.CheckAdmin(game.Players:FindFirstChild(plr.Name))
local lid = a:GetListID('Nonadmin Personal Slot Owners',bid)
local ListInfo = a:GetCardsInList(lid)
for i,v in pairs(ListInfo) do
if (string.lower(v.name) == string.lower(plr.Name)) then
isTrello = true
end
end
if (script.AdminOnly.Value == true and (isAdmin or isTrello)) or script.AdminOnly.Value == false then
if plr.TeamColor == script.TeamColor.Value or plr.TeamColor == script.TeamColor2.Value or plr.TeamColor == script.TeamColor3.Value or plr.TeamColor == script.TeamColor4.Value then
if script.Parent.InUse.Value == false then
if plr.PlayerGui:FindFirstChild("CarSpawner") == nil and plr.PlayerGui:FindFirstChild("Car") == nil and plr.PlayerGui:FindFirstChild("CarGui") == nil then
-- script.Parent.BrickColor = BrickColor.new("Really red")
-- script.Parent.InUse.Value = true
local newGui = game.ServerStorage:WaitForChild("CarSpawner"):Clone()
local plateName = script.SpawnPlateName.Value
newGui:WaitForChild("Frame"):WaitForChild("ScrollingFrame").SpawnerModel.Value = script.Parent.Parent.Parent:FindFirstChild(plateName)
newGui.Parent = plr.PlayerGui
newGui.Frame.ScrollingFrame.Setup.List.Value = script.List.Value
newGui.Frame.ScrollingFrame.Setup.Disabled = false
end
end
end
end
end
end)
script.Parent.Parent.ChildRemoved:connect(function()
wait(5)
--script.Parent.InUse.Value = false
--script.Parent.BrickColor = BrickColor.new("Lime green")
end)
(everything is right with trello)