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

DataModel Error Problem?

Asked by 11 years ago

I wrote this code below. It does seem like theres an error?

01Sounds = game.GameSounding
02 
03game.Workspace.GameLighting.Light.PointLight.Enabled = false
04game.Lighting.TimeOfDay = 0
05game.Lighting.FogEnd = 50
06game.Lighting.FogColor = Color3.new(0, 0, 0)
07Sounds.Blackout:Play()
08wait(10)
09game.Workspace.GameLighting.Light.PointLight.Enabled = true
10game.Lighting.TimeOfDay = 9
11game.Lighting.FogEnd = 100000
12game.Lighting.FogColor = Color3.new(214, 156, 21)
13wait(5)
14script.Disabled = true

I got this in my output box..

23:48:37.563 - GameSounding is not a valid member of DataModel 23:48:37.564 - Script 'Workspace.Hacks.Blackout', Line 1 23:48:37.564 - stack end

If someone could tell me whats wrong I would appreciate it. Btw game.GameSounding is a Model. Maybe a reply would help?

Answer this question