Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Did I do this correctly?

does this make sense

on.Clicked wait(0.5) Broadcast.ImageLabel wait(1.5) remove() end

Basically, what I am trying to do here is when clicking "NPC's" torso it should show a image HUD, what did I do wrong/can fix.

2 answers

✓ Accepted answer

Perhaps you should learn more about functions, : http://wiki.roblox.com/index.php/Function

Also Gianni, if you had a script like that then it would create errors because, 1.There is no end to the function that you created 2.You also need something like MouseButton1Down for TextButtons/ImageButtons. 3.You do not need to make subroutine functions for it to work, you can also have

ImageButton.MouseButton1Down:connect(function()
	wait(1.5)
	Broadcast.ImageButton:remove()
end)

No because, first of all if you click something you use.

MouseButton1

Also you need a function so overall you would have something like this.

function onClicked()

-- your mouseclick function

--You click ImageButtons not ImageLabels

wait(1.5)

script.Parent:remove()

This discussion is preserved as it was. New answers, comments, and votes are closed.