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

Destroying a script via itself?

Asked by 6 years ago

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?

0
why do you want to destroy it? TheScriptKing 102 — 6y
0
yup User#20388 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question