How to do clicked button after delete or add a object?

i need a script…

1 Like

Explain further more

i have a button and if i touched the button it do nothing i want to do is delete a part after clicked or add a part after clicked

1 Like

you mean pressing a button, it fades or appears a object, correct?

1 Like

yes i am

1 Like

It’s a objectvalue.
You have to add a objectvalue to a part you want to fade or appear. then rename it to “_Fade1” or “_Appear1”.

1 Like

then is this no scipt in into this part?

There’s no script i’m assure of, that’s how a part could appear or fade.

1 Like

It simply targets the part and then triggers it when played in map test or original game

how to do the button script not the part script…it didnt happened

Lib.btnFuncs[1] = function()
Lib.Script.[PartName].Fade = true
end
Not sure if it’ll work,
haven’t been to scripting

1 Like

the button doesn’t require a script

just add an “_Appear(number)” objectvalue to the part in question if you want it to appear as well as making it transparency 1 and can collide false

if you want it to disappear add a “_Fade(number)” object value to the part in question

1 Like

HOLD UP MY MISTAKE D:

Lib.btnFuncs[1] = function()
Lib.Script.[PartName].Transparency = 1
end

just use object values
_appear# and _fade#