Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Number = 0
- local MaxNumber = 1
- script.Parent.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local Character = Hit.Parent
- local player = game.Players:GetPlayerFromCharacter(Character)
- if not player:WaitForChild("Lives").Value and player.Lives.Value > Number then
- print(player.Name.."'s Lives: "..player.Lives.Value)
- player.Lives.Value += 1
- elseif player:WaitForChild("Lives").Value and player.Lives.Value == MaxNumber then
- print("You Now Have An Extra Life!")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement