Im not sure what im doing wrong with this but i have Dialog that i want only view able when by one person clicks on it and no one else. I do have remote functions and filtering enabled on, i just dont know where im going wrong in this. I have provided everything i possibly could so you all would know what is going on with this NPC. Basically I want the player to click on the NPC which would fire the event to the localscript which then would trigger the dialog in the BillboardGui, but i dont know if i have the event wrong in the place, or if one of my scripts arent working right. Im not that experience with advance scripting yet.
Current workspace with one NPC
Workspace
>Folder1
>NPCs
>Kryptio (Model)
>ClickDetector
>KryptioDialog (Script)
>KrpytioClickDetectorEvent (Remote Function)
>Model stuff
>DialogBox (Part)
>BillboardGui
>TextLabel
StarterGui
>KryptioDialog (localscript)
Localscript (StarterGui>KryptioDialog)
local clickdetector = game.Workspace.PalletTown1.NPCs.Kryptio.ClickDetector
clickdetector.MouseClick:Connect (function()
clickdetector.KryptioClickDetectorEvent:FireServer()
end)
Workspace (NPC>Kryptio>ClickDetector>KryptioDialog(script))
game.Workspace.PalletTown1.NPCs.Raychill.ClickDetector.RaychillClickDetectorEvent.OnServerEvent:Connect (function()
local Switch = script.Parent.Parent
local Humanoid = Switch.DialogBox.BillboardGui
if not Humanoid.Enabled then
Humanoid.Enabled = true
wait(5)
Humanoid.Enabled = false
end
end)

1 comment
I have the Gui as my dialog i dont like the Roblox dialog where it has ? or ! above the heads