Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ExtraHealthGamepassId = 1100804196
- local function ExtraHealth(player, number)
- local Character = player.Character
- local Humanoid = Character:FindFirstChild("Humanoid")
- Humanoid.MaxHealth = number
- Humanoid.Health = number
- end
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function()
- if not game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, ExtraHealthGamepassId) then
- ExtraHealth(player, 100)
- else
- ExtraHealth(player, 150)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement