Hi devs. I cant seem to find a way for this script to work
its like one of those story games dialog guis but mine doesnt show up
if you could give me a new script with the same dialog and the objective then I would really appreciate it or you could tell me whats wrong and ill fix it
the script:
local createDialogueEvent = game.ReplicatedStorage.Remotes.createDialogueEvent
local hideDialogueEvent = game.ReplicatedStorage.Remotes.hideDialogueEvent
local setDialogueImageEvent = game.ReplicatedStorage.Remotes.setDialogueImageEvent
local Player = game.ReplicatedStorage.PlayerImage
---- Timer -----
local setTimerEvent = game.ReplicatedStorage.TimerRemotes.setTimerEvent
local setObjectiveEvent = game.ReplicatedStorage.TimerRemotes.setObjectiveEvent
local hideObjectiveEvent = game.ReplicatedStorage.TimerRemotes.hideObjectiveEvent
local createObjectiveEvent = game.ReplicatedStorage.TimerRemotes.createObjectiveEvent
local function Teleport(tpStatus)
for index,player in ipairs(game.Players:GetPlayers()) do
if tpStatus == “House” then
local char = player.Character
char.HumanoidRootPart.CFrame = workspace.Teleports.HouseTP.CFrame
end
end
end
local randomPlayerName
local randomPlayerId
local ImageVisible = game.ReplicatedStorage.ImageVisible
local ViewportVisible = game.ReplicatedStorage.ViewportVisible
local function getPlayerImage(player_id)
local content, isReady = game:GetService(“Players”):GetUserThumbnailAsync(player_id, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
return content
end
local function getRandomPlayer()
local players = game.Players:getPlayers()
local number = math.random(1,#players)
local randomPlayer = players[number]
randomPlayerName = randomPlayer.Name
randomPlayerId = randomPlayer.UserId
end
wait(2)
setDialogueImageEvent:FireAllClients(“Jack”, Color3.new(0.427451, 1, 0.0431373))
wait(1)
createDialogueEvent:FireAllClients("")
wait(2)
createDialogueEvent:FireAllClients(“Ok you might be wondering what this is, well its a ghost town. ofcourse, i just need you to look for a waterbottle with a mini motherboard inside ill explain later.”)
wait(8)
createDialogueEvent:FireAllClients(“Also if you want you can look for a wallet in the gunshop i have a surprise for you…”)
wait(4)
createDialogueEvent:FireAllClients(“I cant say much else ill get ba- i mean the secret- the i mean,- the note- AGH just do what i said”)
wait(5)
ImageVisible:FireAllClients()
getRandomPlayer()
Player:FireAllClients(getPlayerImage(randomPlayerId))
setDialogueImageEvent:FireAllClients(randomPlayerName, Color3.new(1, 1, 1))
wait(2)
createDialogueEvent:FireAllClients("")
wait(1)
createDialogueEvent:FireAllClients(“I wonder why jack is acting so weird?”)
wait(5)
createDialogueEvent:FireAllClients(“Ugh what did he get himself into now…”)
wait(5)
wait(1)
createDialogueEvent:FireAllClients("")
wait(2)
createDialogueEvent:FireAllClients(“Jack is literally just-<AnimateYield=1> i dont even wanna do this.”)
wait(8)
createDialogueEvent:FireAllClients(“whatever”)
wait(5)
ImageVisible:FireAllClients()
wait(2)
createDialogueEvent:FireAllClients("")
wait(1)
createDialogueEvent:FireAllClients(“sigh”)
wait(5)
createDialogueEvent:FireAllClients("")
wait(2)
createDialogueEvent:FireAllClients(“Why cant i move?”)
wait(3)
createDialogueEvent:FireAllClients(“oh i was in a hole i cant believe i didnt notice…”)
wait(3)
ImageVisible:FireAllClients()
createDialogueEvent:FireAllClients(“Alrighty”)
wait(3)
createDialogueEvent:FireAllClients(“I put it at the tree jack”)
wait(3)
setDialogueImageEvent:FireAllClients(“Jack”, Color3.new(0.427451, 1, 0.0431373))
wait(3)
createDialogueEvent:FireAllClients(“Good”)
wait(3)
createDialogueEvent:FireAllClients(“Now i must explain myself”)
wait(4)
createDialogueEvent:FireAllClients(“The reason why i needed you to get the waterbottle was because…”)
wait(5)
createDialogueEvent:FireAllClients(“Well…”)
wait(8)
createDialogueEvent:FireAllClients(“Its because with the waterbottle i can track down the dna of who commit all of those murders”)
wait(12)
createDialogueEvent:FireAllClients(“And if it was a robot we will know because they will be no fingerprint detected once we scan the waterbottle”)
wait(16)
createDialogueEvent:FireAllClients(“So we will be able to track the location of the first person to touch this waterbottle which was most likely the murderer”)