of     1   

chao50
#44903916Friday, April 01, 2011 1:10 AM GMT

Hey, can someone help me? Theres no output. Nothing happens when something touches my right arm... Here it is.. function onTouched(hit) h = hit.Parent:findFirstChild("Torso") local b = Instance.new("BodyForce") d.Parent = h d.force = Vector3.new(1000, 1000, 0) game.Workspace.chao50["Right Arm"]:Remove() wait(3) d.force = Vector3.new(0, 0, 0) game.Workspace.chao50["Right Arm"].Touched:connect(onTouched) end
Superfacepalm
#44904069Friday, April 01, 2011 1:12 AM GMT

game.Workspace.chao50["Right Arm"].Touched:connect(onTouched) Don't you have to do the method, :findFirstChild ..?
chao50
#44904106Friday, April 01, 2011 1:13 AM GMT

No, I've done it before without it.
SarahAngel
#44904169Friday, April 01, 2011 1:14 AM GMT

Try switching: game.Workspace.chao50["Right Arm"].Touched:connect(onTouched) end --I've never seen an 'end' before the connection line.
Superfacepalm
#44904208Friday, April 01, 2011 1:15 AM GMT

Oh you need a connection.
tdog158
#44904260Friday, April 01, 2011 1:15 AM GMT

function onTouched(hit) h = hit.Parent:findFirstChild("Torso") local b = Instance.new("BodyForce") d.Parent = h d.force = Vector3.new(1000, 1000, 0) game.Workspace.chao50["Right Arm"]:Remove() wait(3) d.force = Vector3.new(0, 0, 0) game.Workspace.chao50["Right Arm"].Touched:connect(onTouched) end What is firing the function in the first place? :) function onTouched(hit) h = hit.Parent:findFirstChild("Torso") if h==nil then return end local b = Instance.new("BodyForce") d.Parent = h d.force = Vector3.new(1000, 1000, 0) game.Workspace.chao50["Right Arm"]:Remove() wait(3) d.force = Vector3.new(0, 0, 0) end game.Workspace.chao50["Right Arm"].Touched:connect(onTouched)
Aerideyn
#44904275Friday, April 01, 2011 1:15 AM GMT

the connection line is within the function itself. move it outside of the last end. and no you dont need find first child, model["object name"] is how you referance an object by string, allows you to have names with spaces in them.
SarahAngel
#44904320Friday, April 01, 2011 1:16 AM GMT

@Super, he already has a connection line... ._.
chao50
#44904596Friday, April 01, 2011 1:20 AM GMT

Thanks, it was a blonde mistake... lol
tdog158
#44904690Friday, April 01, 2011 1:22 AM GMT

If that's a blonde mistake then I've made...well what's worse than blonde? Bahahahahahaha JK
chao50
#44905933Friday, April 01, 2011 1:43 AM GMT

.... It still doesnt work for some reason?
tdog158
#44906617Friday, April 01, 2011 1:53 AM GMT

You made variable "b," a bodyforce, then randomly tried calling nil variable "d."
chao50
#44907681Friday, April 01, 2011 2:11 AM GMT

Ohh lol another blonde mistake... Im just tired today

    of     1