Raphael7Join Date: 2008-12-03 Post Count: 2479 |
bin = script.Parent
targ = nil
OT = nil
function onButton1Down(mouse)
local targ=mouse.Target
if targ then
if targ.Parent:findFirstChild("Torso") and game.Players:playerFromCharacter(targ.Parent) then
local Torso = targ.Parent.Torso
local OT=script.Parent
if OT then
if OT.Parent:findFirstChild("Torso") and game.Players:playerFromCharacter(OT.Parent) then
OT:MoveTo(targ.Parent.Position = targ.Parent.Position + Vector3.new(0, 10, 0)
local s = script.Damager
s:clone().Parent = OT.Parent:findFirstChild("Torso")
wait(1)
s:remove()
end end
end
end
end
end
bin:connect(onButton1Down)
|
|
kbkJoin Date: 2008-05-21 Post Count: 151 |
Saying what's the problem and saying what's the OutPut would highly increase the chances of being helped |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
You forgot a ), but after that, i doubt it would work anyway, please check that line, it does not make sense at all. |
|
Raphael7Join Date: 2008-12-03 Post Count: 2479 |
Players.Player.Backpack.Tool.Script:15: ')' expected near '='
|
|
kbkJoin Date: 2008-05-21 Post Count: 151 |
Raphael, I can't believe you didn't understand that OutPut. You missed a ')' |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@Kbk
Yeah, he missed logic too. |
|
Raphael7Join Date: 2008-12-03 Post Count: 2479 |
I forgot that one so yah. |
|
Raphael7Join Date: 2008-12-03 Post Count: 2479 |
Still doesnt work.
bin = script.Parent
targ = nil
OT = nil
function onButton1Down(mouse)
local targ=mouse.Target
if targ then
if targ.Parent:findFirstChild("Torso") and game.Players:playerFromCharacter(targ.Parent) then
local Torso = targ.Parent.Torso
local OT=script.Parent
if OT then
if OT.Parent:findFirstChild("Torso") and game.Players:playerFromCharacter(OT.Parent) then
OT:MoveTo(targ.Parent.Position = targ.Parent.Position + Vector3.new(0, 10, 0))
local s = script.Damager
s:clone().Parent = OT.Parent:findFirstChild("Torso")
wait(1)
s:remove()
end end
end
end
end
end
bin:connect(onButton1Down)
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
'targ.Parent.Position = targ.Parent.Position + Vector3.new(0, 10, 0)'
That does not make sense at all -.- |
|
CardCaddyJoin Date: 2010-01-02 Post Count: 1025 |
Something tells me this is what you mean.
OT:MoveTo(targ.Position + Vector3.new(0, 10, 0)) |
|
pauljklJoin Date: 2008-10-23 Post Count: 9364 |
OT:MoveTo(targ.Parent.Position + Vector3.new(0, 10, 0))
|
|
Raphael7Join Date: 2008-12-03 Post Count: 2479 |
Now connect is broken.. It says connect is not a valid member of Hopperbin |
|
CardCaddyJoin Date: 2010-01-02 Post Count: 1025 |
Thats probably because what I am assuming "bin" is (script.Parent) cannot be "Connected". Try:
bin.Equipped:connect |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
cARD, EQUIPPED IS ONLY FOR TOOLS |
|
Raphael7Join Date: 2008-12-03 Post Count: 2479 |
Blood what's the proper use? |
|
bloob827Join Date: 2010-08-01 Post Count: 6867 |
bin = script.Parent
targ = nil
OT = nil
function onButton1Down(mouse)
local targ=mouse.Target
if targ then
if targ.Parent:findFirstChild("Torso") and game.Players:playerFromCharacter(targ.Parent) then
local Torso = targ.Parent.Torso
local OT=script.Parent
if OT then
if OT.Parent:findFirstChild("Torso") and game.Players:playerFromCharacter(OT.Parent) then
OT:MoveTo(Vector3.new(0, 10, 0))
local s = script.Damager
s:clone().Parent = OT.Parent:findFirstChild("Torso")
wait(1)
s:remove()
end end
end
end
end
bin.Selected:connect(onButton1Down)
|
|
CardCaddyJoin Date: 2010-01-02 Post Count: 1025 |
Is there some clue that I am missing saying that it isn't a tool? |
|
xTecHxJoin Date: 2008-08-16 Post Count: 1858 |
@kbk Its not "OutPut". That looks dumb and idiotic. Its "output". |
|
Raphael7Join Date: 2008-12-03 Post Count: 2479 |
It's a hopperbin. |
|