Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local active = true
- local self = script.Parent
- local debris = game:GetService("Debris")
- function onTouched(hit)
- if hit.Parent:findFirstChild("Humanoid") and active then
- print("Got here 1")
- game.Players[hit.Parent.Name].EggsFolder:WaitForChild("PlayerHas"..script.Parent.Name).Value = true
- print("Got here 2")
- wait(0.5)
- active = false
- self.Anchored = true
- self.CanCollide = false
- self.Transparency = 1
- self.Parent:Remove()
- end
- end
- self.Touched:connect(onTouched)
- while active do
- self.Velocity = self.Velocity + Vector3.new(math.random()*10,math.random()*20,math.random()*10)
- wait(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement