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

Destroying a script via itself?

Say I have a script in 'ServerScriptService' right.

if I end the script by:

game:GetService("ServerScriptService").MyScript:Destroy()

Will that actually destroy it?

or maybe:

script:Destroy()

Help anyone?

2 comments

0

why do you want to destroy it?

0

yup

1 answer

It's script:Destroy()

script is itself (you know, like when you use script.Parent the script is the script xD

So yeah you're right

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