-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudioCheck.luau
More file actions
40 lines (30 loc) · 1.11 KB
/
Copy pathStudioCheck.luau
File metadata and controls
40 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--!strict
local Players = game:GetService("Players");
local RunService = game:GetService("RunService");
local dialogueMakerKit = script.Parent.Parent; -- Replace with your own path to the DialogueMakerKit folder.
local Client = require(dialogueMakerKit.Packages.Client);
local Conversation = require(dialogueMakerKit.Packages.Conversation);
local Message = require(dialogueMakerKit.Packages.Message);
local StandardTheme = require(dialogueMakerKit.Packages.StandardTheme);
-- Create a new conversation.
local player = Players.LocalPlayer;
local conversation = Conversation.new({}, {
-- This message will only be shown if the player is in Studio.
[1] = Message.new(`Hey, {player.Name}. Did you save today?`, {
verifyCondition = function()
return RunService:IsStudio();
end
});
-- This message will only be shown if the player is not in Studio.
[2] = Message.new(`Hey, {player.Name}. Remember to like and subscribe.`);
});
-- Start the conversation.
Client.new({
dialogue = conversation:getNextVerifiedDialogue();
settings = {
theme = {
component = StandardTheme
};
};
});
return {};