Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketPlaceService = game:GetService("MarketplaceService")
- local GamepassTools = game.ReplicatedStorage:FindFirstChild("Gamepasses")
- local function GiveTool(Player, ID, Tool)
- if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, ID) then
- Tool:Clone().Parent = Player.Backpack
- Tool:Clone().Parent = Player.StarterGear
- end
- end
- game.Players.PlayerAdded:Connect(function(Player)
- GiveTool(Player, 0, GamepassTools:FindFirstChild("Flashlight"))
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement