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

How to make VIP Tools for Players (Not doors)?

Hi, Im having trouble on obtaining this script

A script that gives VIP tools DIRECTLY ON SPAWN but it has to be detected by name. not T-Shirts and not Gamepasses

1 answer

✓ Accepted answer
local vips = { --vip table
	"ForeverDev",
	"Revenant101"
}

local toolsToGive = { --all the tools you want the vip to receive when they spawn
	game.Lighting.Tool1:clone(),
	game.Lighting.Tool2:clone()
}

game.Players.PlayerAdded:connect(function(player) --fires when a new player joins the game
	player.CharacterAdded:connect(function(char) --fires when the player spawns
		for i, v in pairs(vips) do --iterate through the vip table
			if v:lower() == player.Name:lower() then --if the player is found in the vip table
				for t, o in pairs(toolsToGive) do --iterate through the tools table
					o:clone().Parent = player.Backpack --clone the tool and put it in the backpack
				end
			end
		end
	end)
end)

1 comment

0

I does not work. I changed tool1 and 2 to the name of the tools in my game but it dosent give it.

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