Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

I'm making a game but I keep getting error W001 unknown global 'CreateDialogueEvent' Please fix?

Asked by 2 days ago
Edited 2 days ago

I'm making a camping game, but It always underlines CreateDialogueEvent for some weird reason and I don't know how to fix it.

local function challeng_example() local gerald_image = "rbxassetid://5961366987" CreateDialogueEvent:FireAllClients(gerald_image,"Dialogue Here") wait(5) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Dialogue Here") end

local function challenge_intro() wait(6) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Ugh, where are we?") wait(6) local gerald_image = "rbxassetid://5961366987" CreateDialogueEvent:FireAllClients(gerald_image,"Guys.. Over here..") wait(8) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"What? What's going on, Gerald?") wait(6) local gerald_image = "rbxassetid://5961366987" CreateDialogueEvent:FireAllClients(gerald_image,"I think we crashed into something...") wait(8) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Well, it was something BIG we crashed into.") wait(7) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Is everybody alright?") wait(7) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"I'm fine.") wait(6) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Me too, and you Gerald?") wait(8) local gerald_image = "rbxassetid://5961366987" CreateDialogueEvent:FireAllClients(gerald_image,"I'm ok, but I can't really move.") wait(7) local gerald_image = "rbxassetid://5961366987" CreateDialogueEvent:FireAllClients(gerald_image,"You guys look around this place, see if you can find anything.") wait(8) getRandomPlayer() CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"Ok, we'll be back soon Gerald.") wait(5) local gerald_image = "rbxassetid://5961366987" CreateDialogueEvent:FireAllClients(gerald_image,"Good Luck.") wait(5) game:GetService("StarterGui"):FindFirstChild("TalkingNPC").Frame.Visible =

1 answer

Log in to vote
0
Answered by 2 days ago

Nevermind, I made the variable a different name. It's fixed now!

Ad

Answer this question