asianpunk
|
  |
| Joined: 15 Dec 2010 |
| Total Posts: 150 |
|
|
| 12 Jan 2012 01:49 PM |
Output : maximum event re-entrancy depth exceeded
So i'm scripting a pencil and the output wont stop to say that ...
the script :
local Holding = script.Parent.Holding
script.Parent.Equipped:connect(function(mouse)
Pen = Instance.new("Model",game.Players.LocalPlayer.Character) Pen.Name = "Pen"
mouse.Button1Down:connect(function() Holding.Value = true end)
mouse.Button1Up:connect(function() Holding.Value = false end)
while Holding == true do if not mouse.Target.Pen then p = Instance.new("Part",game.Players.LocalPlayer.Character.Pen) p.FormFactor = "Custom" p.Size = Vector3.new(0.2,0.2,0.2) m = Instance.new("SpecialMesh",p) m.Shape = "Sphere" Int = Instance.new("IntValue",p) Int.Name = "Pen" wait(0.1) end end
end)
script.Parent.Unequipped:connect(function() Pen:Destroy() end) |
|
|
| Report Abuse |
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 12 Jan 2012 02:03 PM |
| You never set the position of the brick to the mouse target. |
|
|
| Report Abuse |
|