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

How to fix Welcome to roblox building? (Stamper Tools not loading)

Asked by 1 year ago

so i got an version of welcome to roblox building but when i play, it gets stuck in this:

https://prnt.sc/xG7E_NEBkEFw

https://prnt.sc/r-Wiz3PYC5xv

I literally have no idea how to fix this, it looks like the script uses the user IDs to download the models (aka furniture),I posted this on reddit but there are no answers, please help me if you can, I want to fix this game.

  • an error: Script 'WorkSpace.RegisterStampableModels', Line 27 Stack End

the script:

while not game.Workspace.TrafficHandler:FindFirstChild("InitDidFinish") do game.Workspace.TrafficHandler.ChildAdded:wait() end
local initDidFinish = game.Workspace.TrafficHandler:FindFirstChild("InitDidFinish")

-- registers stampable models with the insert service on the server side of things
local userIdsForStamperParts = {11744447,2409156}
local scriptWhitelistAssetId = 87396396 -- gametest is default


table.insert(userIdsForStamperParts,28215009)
table.insert(userIdsForStamperParts,28215010)
table.insert(userIdsForStamperParts,28220612)
table.insert(userIdsForStamperParts,28220614)
scriptWhitelistAssetId = 62633901


local additionalAssetsToApprove = {39226062}

local userData = {}
local newTable = {}

local newHint = Instance.new("Message")
newHint.Text = "Loading stamper models..."
newHint.Parent = game.Workspace


for i = 1, #userIdsForStamperParts do
    local newUserData = game:GetService("InsertService"):GetUserCategories(userIdsForStamperParts[i])
    if newUserData and #newUserData > 0 then
        for j = 1, #newUserData do
            table.insert(userData, newUserData[j])
        end
    end
end

-- register all models for insertion
print("Approving asset ids.")
for index, object in pairs(userData) do
    local tempSet = game:GetService("InsertService"):GetCollection(object.CategoryId)
    for sIndex, sObject in pairs(tempSet) do
        local assetId = sObject.AssetId
        game:GetService("InsertService"):ApproveAssetId(assetId)
    end
end

for i = 1, #additionalAssetsToApprove do
    game:GetService("InsertService"):ApproveAssetId(additionalAssetsToApprove[i])
end

print("Registering script hashes.")


-- register all the good hashes :)
game:GetService("InsertService"):ApproveAssetId(scriptWhitelistAssetId)
local whitelist = game:GetService("InsertService"):LoadAsset(scriptWhitelistAssetId)
whitelist = whitelist:GetChildren()[1] -- because stringval is in a model wrapper
whitelist = whitelist.Value
for hash in string.gmatch(whitelist, "[^;]+") do
    newTable[hash] = true
end


_G["goodHashes"] = newTable

newHint:Remove()

local initDidFinish = game.Workspace.TrafficHandler:FindFirstChild("InitDidFinish")
if initDidFinish then initDidFinish.Value = true end

-- no peeking
script:Remove()

What is expected to happen:

load the game correctly with tools and bases

(im using play mode in roblox studio)

Steps to Reproduce:

Play test WTRB

Thanks

Answer this question