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

what do i do when print doesnt print and is the first line of the script?

Asked by
ki4ran 0
2 years ago

My print isn't printing and the print command is the first line of the script. The localscript isn't in workspace and is somewhere where the localscript would work. Here is the script I wrote.

print("the amount of scripts")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
    character = player.CharacterAdded:wait()
end
local textboard = game.Workspace.board.SurfaceGui.TextLabel
        local USERNAME = player.Name
print("PLEASE")
        local function iterPageItems(pages)
            return coroutine.wrap(function()
                local pagenum = 1
                while true do
                    for _, item in ipairs(pages:GetCurrentPage()) do
                        coroutine.yield(item, pagenum)
                    end
                    if pages.IsFinished then
                        print("finished loading friends")
                        break
                    end
                    pages:AdvanceToNextPageAsync()
                    pagenum = pagenum + 1


        local userId = Players:GetUserIdFromNameAsync(USERNAME)
        local friendPages = Players:GetFriendsAsync(userId)
        local usernames = {}
        for item, pageNo in iterPageItems(friendPages) do
            table.insert(usernames, item.Username)
        end
        textboard.Text = "happy birthday from " .. table.concat(usernames, ", ")        
    end
            end)
        end

0
I tried copying your print line, it shouldnt be anything wrong with it johnoscarbhv1 137 — 2y
0
What?? Is the script disabled, by any chance? Amanda314159 291 — 2y
0
Please specify the following information: Script.Parent, Script.Disabled, And other scripts that might be cancelling this one. wwwaylon09 113 — 2y
0
it isnt disabled ki4ran 0 — 2y

Answer this question