So this may just be a bonehead mistake but I cannot figure out for the life of me why this tool isn’t cloning. I marked the possible lines that are causing issues below.
local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI:GetBoardID("Records")
local ListID = TrelloAPI:GetListID("GunLicense",BoardID)
game.Players.PlayerAdded:Connect(function(player)
print("player joined")
local Cards = TrelloAPI:GetCardsInList(ListID)
for v,i in pairs(Cards) do
if i.name == player.name then
local tool = script.GunLicense:Clone() -- line in question
tool.Parent = player.Backpack -- line in question
print("localplayer has license")
else
warn('localplayer doesnt have license')
end
end
end)
they do but sometimes doesnt due to studio loading in the player before the server scripts. In this case its fine though since its clearly printing localplayer has license hence why im asking if your sure its not there.
If you go to the Test tab, there is a button called Start that looks like a server in the middle called Clients and Servers. Then there is a drop down bar that says 1 Player. Switch it to 2 players and then start the server. If there is still nothing printing on the server, its probably because your Cards list is empty.