of     1   

jessemccullough9292
#36764495Tuesday, November 09, 2010 9:13 PM GMT

This is a Pet Script that went wrong Owner = game.Workspace.jessemccullough9292 wait(2) pet = Instance.new("Part") pet.Transparency = 0.3 pet.Reflectance = 0.1 pet.TopSurface = "Smooth" pet.BottomSurface = "Smooth" pet.Shape = "Ball" pet.CanCollide = false pet.Anchored = true pet.Size = Vector3.new(2, 2, 2) pet.BrickColor = BrickColor.new(127) pet.Name = "Head" pet.Parent = mod pet.RightSurface = "Smooth" pet.LeftSurface = "Smooth" mod = Instance.new("Model") mod.Parent = game.Workspace mod.Name = "Charlie" hum = Instance.new("Humanoid") hum.Parent = mod hum.WalkSpeed = 0 hum.MaxHealth = 0 hum.Health = 0 while true do wait() pet.CFrame = Owner.Torso.CFrame + Owner.Torso.CFrame.lookVector * (-8) wait(0.000001) end pet:Remove()
Emess
#36764783Tuesday, November 09, 2010 9:19 PM GMT

There are no while breaks. When it reaches the while loop, it will loop forever.
jessemccullough9292
#36764903Tuesday, November 09, 2010 9:22 PM GMT

And what do I do about it?
Emess
#36764990Tuesday, November 09, 2010 9:23 PM GMT

while condition do Don't do while _true_ do, that would do an infinite loop.
jessemccullough9292
#36765075Tuesday, November 09, 2010 9:25 PM GMT

So? Owner = game.Workspace.jessemccullough9292 wait(2) pet = Instance.new("Part") pet.Transparency = 0.3 pet.Reflectance = 0.1 pet.TopSurface = "Smooth" pet.BottomSurface = "Smooth" pet.Shape = "Ball" pet.CanCollide = false pet.Anchored = true pet.Size = Vector3.new(2, 2, 2) pet.BrickColor = BrickColor.new(127) pet.Name = "Head" pet.Parent = mod pet.RightSurface = "Smooth" pet.LeftSurface = "Smooth" mod = Instance.new("Model") mod.Parent = game.Workspace mod.Name = "Charlie" hum = Instance.new("Humanoid") hum.Parent = mod hum.WalkSpeed = 0 hum.MaxHealth = 0 hum.Health = 0 while condition do wait() pet.CFrame = Owner.Torso.CFrame + Owner.Torso.CFrame.lookVector * (-8) wait(0.000001) end pet:Remove()
Emess
#36765110Tuesday, November 09, 2010 9:26 PM GMT

No.... Don't completely replace that line with "condition" and that only... that's just a placeholder that I added for you to add a condition.
turbodaze
#36767199Tuesday, November 09, 2010 10:02 PM GMT

You can use a coroutine (XD) or use a while loop with a switching variable eg: loop = false function t(h) loop = true while loop do wait() end end part.Touched:connect(t)
jessemccullough9292
#36769295Tuesday, November 09, 2010 10:39 PM GMT

Just use my whole script and then put that in there

    of     1