of     1   

FootBa11
#63667019Thursday, March 01, 2012 9:02 PM GMT

I see no error, but yet it does not work. Should be a simple fix bin = script.Parent function onButton1Down(mouse) if mouse.hit.p <= script.Parent.Parent.Parent.Character.Torso.Position + Vector3.new(20,20,20) then local model = bin.Pwnset:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) bin:Remove() end end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
hyrumcoop
#63667820Thursday, March 01, 2012 9:18 PM GMT

Replace 'hit' with 'Hit'. That should work.
FootBa11
#63667960Thursday, March 01, 2012 9:21 PM GMT

Did not work
grimm343
#63671775Thursday, March 01, 2012 10:21 PM GMT

if mouse.hit.p <= script.Parent.Parent.Parent.Character.Torso.Position + Vector3.new(20,20,20) then So.. How do you plan on comparing these two values..? Is Vector3.new(-10,80,-4.2) larger than, smaller than, or equal to Vector3.new(15,50,1)? You can see if it is the same, or not.. but I am not sure that would be how you would tell if it is larger than/smaller than. It looks like you want to check magnitude..? if (mouse.Hit.p-script.Parent.Parent.Parent.character.Torso.Position).magnitude <= 20 then --stuff end
epicfail22
#63671850Thursday, March 01, 2012 10:22 PM GMT

Hi FootBa11! My response was gonna be what grimm said.

    of     1