Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gamepass script not responding, and doesn't seem to do anything either, Help?

Asked by 6 years ago
wait(100)

local d = false

local Player1 = {
    "Colorester",
    "Deadman0890"   
}

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character) --I don't even use the character lol
        if game:GetService("MarketplaceService"):PlayerOwnsAsset(player,1499745006) or player.Name == Player1 then
            if player.Character.Name == game.Players:FindFirstChild(player) and d == false then
                    d = true
                    while d == true do
                    local riotCopy = game.ServerStorage["[SCP] Card-L5"]:Clone()
                    riotCopy.Parent = player.Backpack
                    wait(10)
                    d = false
                end
            end
        end
    end)
end)

I have the tool "[SCP] Card-L5 in game.ServerStorage, I double checked the AssetID of the pass, and the or Exception for my and one other's username. Could someone help me with this? Can't seem to figure it out. The script in in ServerScriptStorage, which replicates to all clients in FE, which my game is.

0
I recommend using dictionaries for this. :) http://wiki.roblox.com/index.php?title=Table#Dictionaries TheeDeathCaster 2368 — 6y
0
But how would I go about using this? I've never used dictionaries before for such a thing Deadman0890 0 — 6y

Answer this question