#Whats wrong with my code

5 messages · Page 1 of 1 (latest)

south imp
#

try this maybe

local HTTP = game:GetService("HttpService")
local pasteBin = HTTP:GetAsync("https://pastebin.com/raw/EUmxZ1Vs")
local plrs = {}

for line in pasteBin:gmatch("[^\r\n]+") do
    table.insert(plrs, line)
end

game.Players.PlayerAdded:Connect(function(plr)
    if table.find(plrs, plr.Name) then
        local clone = script["DWProx Access Card"]:Clone()
        clone.Parent = plr.Backpack
    end
end)

in this updated code the gmatch function will iterate over every line of the pastebin content and insert them into the plrs table

rare violetBOT
#

studio** You are now Level 2! **studio

potent kestrel
#
локальный HTTP = game:GetService
("HttpService")
local pasteBin = HTTP:GetAsync("https://pastebin.com/raw/EUmxZ1Vs")
local plrs = {}

for line in pasteBin:gmatch("[^\r\n]+") do
    table.insert(plrs, строка)
конец

игра. Players.PlayerAdded:Connect(функция(plr)
    if table.find(plrs, plr. Name), затем
        local clone = script["DWProx Access Card"]:Clone()
        клон. Родитель = plr. Рюкзак
    конец
конец)
shy silo
#

bruh dude, just create ingame list

manic slate
#

change

table.insert(plrs, i)

to

table.insert(plrs, v)