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

How do I move a localscript from workspace to the PlayerScripts of anyone who joins?

Asked by 2 years ago
Edited 2 years ago

I tried some stuff, nothing worked. this is my code:

function module(change)
        if change == "" then
        script.LocalScript.change.Value = "time"
        else
        script.LocalScript.change.Value = change
        end
        local ls = script.LocalScript:Clone()
        local player = game.Players.LocalPlayer
        ls.Parent = game.Players.LocalPlayer.PlayerScripts
        wait(1)
        ls.Disabled = false
    end
return module

it doesn't need to be a modulescript it just needs to be a script or something that acts like StarterPlayerScripts.

Answer this question