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

How can I enable a local script using a server script?

Asked by 4 years ago

I am making a on touch triggered area which changes the lightning ambient and background ambiance. So the touch script is a server script which is supposed to enable that local script which changes lightning ambient and background ambiance.

script.Parent.localscript.Disabled=false

I have tried doing it like this. But it seems to not work as i expected and not function at all.

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
script.Parent.localscript.Disabled = false

I think it may be something to do with "localscript" Is the localscript called "LocalScript" or "localscript"?

Have you tried:

script.Parent.LocalScript.Disabled = false
0
Its called localscript PlanetTheo 0 — 4y
0
Thing i am trying to do is to enable a local script with a server script, how can i do it? PlanetTheo 0 — 4y
0
What is the parent object of the localscript? ApexBrick 59 — 4y
0
I've just tried to use a server script to enable a localscript and it works. Have you tried something like "if localscript.Disabled == true then print("not working") else print("works") end" ? ApexBrick 59 — 4y
Ad

Answer this question