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