I wanted to make a gui where people can add dialogs to their own characters however it never shows up :( here is my code:
local ply = game.Players.LocalPlayer.Humanoid.Head
local txt = script.Parent.Parent.TextBox.Text
function onClick()
local dia = Instance.new("Dialog")
dia.Parent = ply
dia.InitialPrompt = txt
end

1 comment
Yes i forgot to add the Mouseclickbutton1:connect thing sorry