of     1   

EMAN381
#44594910Saturday, March 26, 2011 2:48 AM GMT

function onClicked(click) local decal = Instance.new("Decal") if script.Parent ~= nil then decal.Texture = "http://www.roblox.com/asset/?id=48622144" decal.Parent = script.Parent --------------------------------------------- --[[ That's all I have have so far.That I need is, if it's clicked AGAIN, The Part is removed. The problem is, is that I don't know how to make a "OnClick" again in the same script..]] --[[ Example I want: if onClicked[statement to make it say "again"] == then script.Parent:remove() end]] end end script.Parent.ClickDetector.MouseClick:connect(onClicked)
flappydavid
#44595042Saturday, March 26, 2011 2:51 AM GMT

I want to learn that, too...
Miksterman
#44596512Saturday, March 26, 2011 3:15 AM GMT

Clicked = false function onClicked(click) if Clicked then script.Parent:Remove() else local decal = Instance.new("Decal") if script.Parent ~= nil then decal.Texture = "http://www.roblox.com/asset/?id=48622144" decal.Parent = script.Parent Clicked = true end end script.Parent.ClickDetector.MouseClick:connect(onClicked) Or something like that. I can explain it in more detail if you don't understand that.

    of     1