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

How do I reference a script in StarterPlayerScripts?

I want to reference/call a local script in my StarterPlayerScripts with a script in StarterGUI, I can't seem to find a solution that fits with me, I want to reference this script to disable it and enable it for a short time. Any help will be appreciated!

(PS: The script highlighted is the script I want to call image

And this is the script that calls the script image

3 comments

0

You can use Player.PlayerScripts.ScriptName to find the script.

0

All instances in StarterPlayerScripts will be replicated to the client's PlayerScripts

1 answer

Alright Thank you for your help! I referenced it using "game.Players.LocalPlayer.PlayerScripts.PlayerAnimation" Thank you for your help again!

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