Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CreateDialogueEvent = game.ReplicatedStorage.CreateDialogueEvent
- -- Other Useful Functions
- local randomPlayerName
- local randomPlayerId
- 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
- ----------------------------------------
- -- put your challenge functions here
- local function challeng_example() -- THIS IS JUST AN EXAMPLE! IT WON'T RUN
- local teacher_Image = "rbxassetid://4841171880"
- CreateDialogueEvent:FireAllClients(teacher_Image,"Hello Students!")
- wait(5)
- getRandomPlayer()
- CreateDialogueEvent:FireAllClients(getPlayerImage(randomPlayerId),"I think this is the School!")
- end
- local function challenge_intro()
- end
- local function challenge_1()
- end
- local function challenge_2()
- end
- local function challenge_3()
- end
- local function challenge_4()
- end
- local function challenge_ending()
- end
- --------------------------------------------------
- local function startGame() -- This is your main function where we order the challenges
- challenge_intro()
- challenge_1()
- challenge_2()
- challenge_3()
- challenge_4()
- challenge_ending()
- end
- wait(10) -- waits 10 seconds
- startGame() -- runs the startGame function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement