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

Gives nil value or says that player is not valid workspace, why?

Asked by 4 years ago
{{'storebuild','sb'},{'stores build of player in storage.','DiGamesChannel'},2,{'player'},function(pl,args)
    for _, player in pairs(args[1]) do
        local Tool = game.Workspace.player["Building Tools"]
        local Core = Tool.Core
        if game.Workspace:FindFirstChild("BlobbyblobBuild_"..tostring(player)) then
        Core.Selection:clear()
            repeat
        game.Workspace:FindFirstChild("BlobbyblobBuild_"..tostring(player)).Parent = game.ReplicatedStorage.Cleared 
until
        not game.Workspace:FindFirstChild("BlobbyblobBuild_"..tostring(player))
end
end
end}

it must clear building and selection, but it cant find player. what i did wrong?

0
Fix the formatting of the code first, the top part is entirely wrong User#834 0 — 4y
0
wdym by top part, {{'storebuild','sb'},{'stores build of player in storage.','DiGamesChannel'},2,{'player'},function(pl,args), this? digameschannel 44 — 4y

Answer this question