Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Did I do this correctly?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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

Log in to vote
0
Answered by 10 years ago

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)
Ad
Log in to vote
-1
Answered by 10 years ago

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()

Answer this question