Harvey
Harvey

Reputation: 21

Start a local script from server on Roblox studio

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

Answers (2)

micegan
micegan

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

Graalian
Graalian

Reputation: 35

Check inside the LocalScript for any code statements of script.Parent and put the LocalScript inside whatever the Parent is.

Upvotes: 0

Related Questions