Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Admin only tools not working. Any explanations or answers why?

I tried making a admin only tools script while local, no errors and it doesnt work. Why?

local allowed = {'gugaplayer_2017ALT','ChronoFantastic'}
local ToolBin = game.Lighting.ToolBin
local hexa = ToolBin["Hexabyte Card"]
game.Players.LocalPlayer:WaitForChild("Backpack")
local backpack = game.Players.LocalPlayer.Backpack

game.Players.PlayerAdded:Connect(function()
	for i,v in pairs(game.Players:GetChildren()) do
		if v.Name == allowed[2] then
	table.insert(hexa:Clone(), backpack)
		end
		end
end)

1 answer

Table.insert is used to insert a variant into a table.

Here's a fix for line 10:

hexa:Clone().Parent = backpack

1 comment

0

It doesnt work :(

This discussion is preserved as it was. New answers, comments, and votes are closed.