Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Making a Dialog that is only accessible to the person who clicked it?

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

0

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

1 answer

✓ Accepted answer

It is possible. But it's much harder then it looks. I got your back. I'd suggest you take a look into local parts of roblox. If you don't know what local parts mean. I'd would suggest doing some research.

Roblox Wiki - Local parts

The plan is. You will put the brick/person with the dialog in the "local bin". When it is put in there everyone will see it. But dialogs only changes for you. Since it's in the "local bin". This are my guesses.

First do some research into Local parts before doing a local dialog. The link above will help. 100%.

Hope I helped you! And good luck!

1 comment

0

This doesnt help me at all to be honest.. I read it and the FE wiki page, but im more of a visual learner then reading a bunch of lines, which i deeply unfortunate considering Roblox doesnt provide a lot of Videos regarding FE

This discussion is preserved as it was. New answers, comments, and votes are closed.