startScript re-entrancy has exceeded 3?
hello. i get a error. I know what it means (Too much events at the same time) but it wont go away
i tried adding a intvalue so the cloning only works when its 0 and then changing it to 1.
01 | local Pet = script.Parent |
02 | if Pet.PetOwner ~ = "" then |
03 | if script.Value.Value = = 0 then |
04 | Pet:Clone().Parent = game.Players:FindFirstChild(script.Parent.PetOwner.Value).Character.Head |
05 | script.Value.Value = 1 |
10 | game.Players:FindFirstChild(script.Parent.PetOwner.Value).Character.Head.Puppy.Position = game.Players:FindFirstChild(script.Parent.PetOwner.Value).Character.Head.Puppy.Position+ Vector 3. new( 1 , 1 , 1 ) |
11 | game.Players:FindFirstChild(script.Parent.PetOwner.Value).Character.Head.Puppy.Orientation = game.Players:FindFirstChild(script.Parent.PetOwner.Value).Character.Head.Orientation |
it might be very easy to fix but i dont know how