gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 11 May 2013 01:49 AM |
if Msg:sub(1, 7) == "#bright" then local Bright = Msg:sub(Msg:find(" ", 8) + 1) a = Instance.new("IntValue", game.Workspace) a.Value = tonumber(Bright) game.Lighting.Brightness = a.Value wait(1) a=nil end ----------- if Msg:sub(1, 9) == "#FogStart" then local Danumber = Msg:sub(Msg:find(" ", 9) + 1) a=Instance.new("IntValue", game.Workspace) a.Value = tonumber(Danumber) game.Lighting.FogStart = a.Value wait(1) a = nil end ----- end) end) -------------------------------- No output. |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 11 May 2013 02:10 AM |
I tried changing it to this:
if Msg:sub(1, 9) == "#FogStart" then local Danumber = Msg:sub(Msg:find(" ", 9) + 1) v=Instance.new("IntValue", Workspace) v.Value = tonumber(Danumber) game.Lighting.FogStart.Value = v end
Output: attempt to index field 'FogStart' (a number value) |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
| |
|