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

Can you tell me whats wrong with this script? [closed]

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

This is a Gui that checks and gives the tool in a certain players name Do you know whats wrong with it?

local vip = {"Revenant101"}

function onButtonClicked()

local tools = { 

    game.Lighting.Crystal:clone(),

    game.Lighting.Memory:clone()
}
      for i, v in pairs(vip) do 

            if v:lower() == player.Name:lower() then 

                for t, o in pairs(tools) do 

                    o:clone().Parent = player.Backpack 

                end

            end

        end

end


script.Parent.MouseButton1Click:connect(onButtonClicked)

Closed as Not Constructive by Articulating

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?