Advertisement
Guest User

scrpt de area

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