pakcool

stage

Oct 18th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function ot(hit)
  2. if hit.Parent ~= nil then
  3. local player = game.Players:playerFromCharacter(hit.Parent)
  4. if player ~= nil then
  5. if player.leaderstats.Stage.Value == script.Parent.Name - 1 then
  6. local h = hit.Parent:FindFirstChild("Humanoid")
  7. if h ~= nil then
  8. if h.Health ~= 0 then
  9. player.leaderstats.Stage.Value = script.Parent.Name
  10. end end end end end end
  11. script.Parent.Touched:connect(ot)
Add Comment
Please, Sign In to add comment