Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local active = true
  2. local self = script.Parent
  3. local debris = game:GetService("Debris")
  4.  
  5. function onTouched(hit)
  6. if hit.Parent:findFirstChild("Humanoid") and active then
  7. print("Got here 1")
  8. game.Players[hit.Parent.Name].EggsFolder:WaitForChild("PlayerHas"..script.Parent.Name).Value = true
  9. print("Got here 2")
  10. wait(0.5)
  11. active = false
  12. self.Anchored = true
  13. self.CanCollide = false
  14. self.Transparency = 1
  15. self.Parent:Remove()
  16. end
  17. end
  18.  
  19. self.Touched:connect(onTouched)
  20.  
  21. while active do
  22. self.Velocity = self.Velocity + Vector3.new(math.random()*10,math.random()*20,math.random()*10)
  23. wait(5)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement