i want the NPC to give you a sword on his first diolauge but it is a GUI dialouge how do i do that?
here is what i have:
local clickDetector = workspace.NPCS.Hardquest8.givesword
function onMouseClick()
local function giveTool(player, tool) local backpack = player:FindFirstChildOfClass("Backpack") if backpack then game.SeverStorage.Katana.Parent = backpack end end wait(5)
end
clickDetector.MouseClick:connect(onMouseClick)
and the dialouge(the dialouge works):script.Parent.Visible = false
local clickDetector = workspace.NPCS.Hardquest8.ClickDetector
function onMouseClick() script.Parent.Visible = true script.Parent.Text = ("sighs hey you going into the wild? Take this and thank me later") wait(5) script.Parent.Text = ("hey also take this book it's important. ") wait(4) script.Parent.Text = ("see you on the other side!") wait(1) script.Parent.Visible = false end
clickDetector.MouseClick:connect(onMouseClick)

1 comment
Please Fix your Writing so i can understand