Reputation: 21
I have a map which I would like to load in the workspace. The map also comes with its own local scripts. However, I don't know where to place them in the player. Maybe I can put them in StarterPlayerScripts and then start them from the server(if Roblox studio has such a functionality).
Upvotes: 1
Views: 1108
Reputation: 51
You can start the local script by simply changing his localscript.Disabled bool value, just change their disabled value to false inside properties when you create them. Example:
localscript.Disabled = true
--Disables localscript
--------------------------------------
localscript.Disabled = false
--Enables it
Upvotes: 1
Reputation: 35
Check inside the LocalScript
for any code statements of script.Parent
and put the LocalScript
inside whatever the Parent is.
Upvotes: 0