What it does?
This Script allows you to change the dark / light effect of the level.
Commands: /time 1Changes the effect to dark /time 2Changes the effect to light
This script doesn’t works in online mode, it just changes the effect of the client not of the server, if someone is so nice and can post here how to fix it, would it be really helpful^^
I’m not a good code writer or anything, but I think you need something that gives each player something in their inventory that tells the client to read the server variable, so when someone updates it then it will change for everyone.
As far as I’m aware, GS1 only handles true serverside objects over a completely global scope via strings. Thus you’ll need a slightly new approach. I could easily write you a solution in a minute but you won’t learn so here’s what you’ll need.
setstring server.effect,0.5;//sets the server string, server.effect to 0.5
this.effectVal = strtofloat(#s(server.effect));//converts the server string to a number(float)
Also what the others are saying is true, you’ll need to make this script a weapon so the player carries it everywhere.