Advertisement
Sr_Guizinho

Primeiro script do video 3

Mar 7th, 2021
875
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local required_prestige = 10
  2.  
  3. local db = true
  4. script.Parent.Touched:connect(function(hit)
  5. if hit.Parent:FindFirstChild("Humanoid") then
  6. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  7. if player.leaderstats.Prestige.Value >= required_prestige then
  8. if db then
  9. db = false
  10. script.Parent.Transparency = 0.5
  11. script.Parent.CanCollide = false
  12. wait(1)
  13. script.Parent.CanCollide = true
  14. script.Parent.Transparency = 0
  15. db = true
  16. end
  17. else
  18. end
  19. end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement