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

DataModel Error Problem?

Asked by 10 years ago

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

Sounds = game.GameSounding

game.Workspace.GameLighting.Light.PointLight.Enabled = false
game.Lighting.TimeOfDay = 0
game.Lighting.FogEnd = 50
game.Lighting.FogColor = Color3.new(0, 0, 0)
Sounds.Blackout:Play()
wait(10)
game.Workspace.GameLighting.Light.PointLight.Enabled = true
game.Lighting.TimeOfDay = 9
game.Lighting.FogEnd = 100000
game.Lighting.FogColor = Color3.new(214, 156, 21)
wait(5)
script.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