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

Why do you put local before every new script you write?

Asked by 5 years ago
Edited 5 years ago

https://cdn.discordapp.com/attachments/333717662448222218/465294152620572680/ unknown.png

Why do you put local before every new script like in the picture?

0
thanks for having a url to an image that we cant get hiimgoodpack 2009 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

You don't. Local is used to shorten a variable.

Example: local FrameOblivion = game.StarterGui.Gui.Frame.Frame.Frame.Frame.Frame.Frame

Now, when your refrencing that frame, you can just say "FrameOblivion" instead of saying game.StarterGui.Gui.Frame.Frame.Frame.Frame.Frame.Frame

0
Ohhhhh. Okay thanks! VinInfused 0 — 5y
Ad

Answer this question