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

VERY VERY VERY VERY VERY VERY SIMPLE QUESTION?

what i want this to do go invisible and get the script DESTROYED

script.Parent.Transparency = 1
script.Destroy()

when i run in Studio, it just makes it transparent but not destroying the script, whats the prob ?

i don't know why it doesnt work but it worked before what am i doing wrong am i stupid or what

5 comments

5

Love this clickbait title.

0

Ikr lmfao

0

da fu u mean "ClickBait"

0

Clickbait. You bait people to click on your post with an interesting/unique/hooking title.

0

oh lol

1 answer

✓ Accepted answer

Very simple. Here is an explanation:

When using methods, they activate something (of course) and they are not called unless you put a ":" infront. So your problem is that your . needs to be a :

Fixed:

script.Parent.Transparency = 1
script:Destroy()

2 comments

0

ok im really stupid lol i didn't see that!!!

0

thank you!

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