Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mps = game:GetService("MarketplaceService")
- local gamepassid = 6944957
- game.Players.PlayerAdded:Connect(function(player)
- if not mps:UserOwnsGamePassAsync(player.UserId, gamepassid) then
- local clone = script.Script2:Clone()
- clone.Parent = game.ServerScriptService
- clone.Name = player.Name
- clone.Disabled = false
- end
- end)
- game.Players.PlayerRemoving:Connect(function(player)
- if game.ServerScriptService:FindFirstChild(player.Name) then
- game.ServerScriptService:FindFirstChild(player.Name):Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment