Ad
Log in to vote
0

Why does dialogue stops working after lighting script?

Asked by 4 days ago

I'm creating a story game, and I'm scripting in the gameScript. I want it to go from day to night during the transition event, but after the it changes the dialogue stops showing up and I don't know why.

CreateDialogueEvent:FireAllClients(Ashlee_Image,"You guys can take turns using the sandwich maker.")
    wait(5)
    CreateDialogueEvent:FireAllClients(Ashlee_Image,"After you've finished, come sit by the couch and we'll put on netflix!")
    wait(5)
    TransitionEvent:FireAllClients()
    game.Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
    game.Lighting.Brightness = 0
    game.Lighting.TimeOfDay = "01:00:00"
    game.Lighting.FogColor = Color3.new(0, 0, 0)
    game.Lighting.FogEnd = 50
    game.Lighting.FodStart = 10 

end

local function challenge_1()
    CreateDialogueEvent:FireAllClients(Ashlee_Image,"Well, it's almost 9. I think we should get some sleep.")
    wait(5)
    getRandomPlayer()
    CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Yeah, probably.")

Answer this question