Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MarketPlaceService = game:GetService("MarketplaceService")
- local Players = game:GetService("Players")
- local Tool = script.Tool
- local GamepassID = script.GamepassID
- Players.PlayerAdded:Connect(function(Player)
- Player.CharacterAdded:Connect(function(Character)
- if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId,GamepassID.Value) == true then
- local NewTool = Tool.Value:Clone()
- NewTool.Parent = Player.Backpack
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement