First script,

pcall(function()
	game.Players.PlayerAdded:connect(function(player)
		if game.GamePassService:PlayerHasPass(player,228220957) then
			player.CharacterAdded:connect(function(char)
					game.Lighting.Materializer:Clone().Parent=player.Backpack
					game.Lighting.ResizeTool:Clone().Parent=player.Backpack
					game.Lighting.PaintBucket:Clone().Parent=player.Backpack
					game.Lighting.Transparency:Clone().Parent=player.Backpack
			end)
			local msg = Instance.new("Hint",workspace)
			msg.Text = player.Name.." joined the game with VIP tools!"
			wait(2)
			msg:Destroy()
		end
	end)
end)

Second script,

pcall(function()
	game.Players.PlayerAdded:connect(function(player)
		if game.GamePassService:PlayerHasPass(player,228220158) then
			player.CharacterAdded:connect(function(char)
				if char:WaitForChild("Humanoid") then
					game.Lighting.GravityCoil:Clone().Parent = player.Backpack
					game.Lighting.GravityHammer:Clone().Parent = player.Backpack
				end
			end)
		end
	end)
end)

3 comments

0

What is wrong with the two codes? What isn't working about them? Was there any Output? If so, what did it say? We need to know this kind of information, otherwise, we don't know what the main problem with your code is!

0

And what are u trying to do?

0

Where are the scripts found? The workspace? I suggest removing pcall, since you can't accurately detect errors with it.