Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || GAMEPASS HANDLER v1 || ONLY MESS WITH LOCAL ID AND LOCAL TOOL NAME!
- ]]
- local GS = game:GetService("GamePassService")
- local ServerStorage = game:GetService("ServerStorage")
- local RS = game:GetService("ReplicatedStorage")
- local id = 0
- local tools = {}
- game.Players.PlayerAdded:Connect(function(plr)
- repeat wait(0.1) until plr.Backpack
- repeat wait(0.1) until plr.StarterGear
- if GS:PlayerHasPass(plr, id) then
- for i = 1, #tools do
- ServerStorage:FindFirstChild(tools[i]):Clone().Parent = plr.Backpack
- ServerStorage:FindFirstChild(tools[i]):Clone().Parent = plr.StarterGear
- end
- end
- end)
- RS.Give.OnServerEvent:Connect(function(plr)
- repeat wait(0.1) until plr.Backpack
- repeat wait(0.1) until plr.StarterGear
- if GS:PlayerHasPass(plr, id) then
- for i = 1, #tools do
- ServerStorage:FindFirstChild(tools[i]):Clone().Parent = plr.Backpack
- ServerStorage:FindFirstChild(tools[i]):Clone().Parent = plr.StarterGear
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment