I know it isn’t the greatest system, but I like the feel of the gui. I have tried a few ways of doing it such as a localscript and serverscript. But it doesn’t seem to work.
local dialogue = script.Parent
I already know the default system is crap but I would like to use it. So if you could give some suggestions that would help greatly.
Take a look at these:
Tried the given localscript an it still isn’t working
local dialog = script.Parent
local function onChoiceSelected(_player, _choice)
local currentPlayers = dialog:GetCurrentPlayers()
print("The current players in the dialog:")
for _, player in ipairs(currentPlayers) do
Where is the localscript placed?
it is placed within the dialogue that is in the head of a npc in the workspace
Just realised. You are placing the localscript in workspace. Localscripts NEVER run in the workspace.
Wow, thanks I was stuck on that for 2 days
You can access things from a localscript in workspace, but they won’t run in it.
Place it in StarterPlayerScripts and change the reference to dialogue.
Thanks, got it working smoothly
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.