Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is it even possible to make a ProximityPrompt trigger a Dialog?

Asked by 3 years ago

i was adding dialog to my game and then i wondered, can i make a ProximityPrompt, start the dialog instead of the normal "chat bubble" above him starting it, but with my limited scripting knowledge i dont even know if thats possible. i certainly dont know how tho ;-;

1 answer

Log in to vote
1
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

It is impossible to trigger a built-in dialogue from ROBLOX for now. I think it should or might be available, but I don't know how too :sweat_smile: (COME ON SCRIPTINGHELPERS NO EMOJI)

But you can make a part "talks" when triggering a Dialog, to do this, you are going to get the Prompt Triggered Signal, and make it talk using game:GetService("Chat"):Chat(Part, Message, Color)

Script below (Put normal script inside ProximityPrompt):

local Prompt = script.Parent
local Head = game.Workspace.NPC.Head

Prompt.Triggered:Connect(function()
    game:GetService("Chat"):Chat(Head, "insert comedy", "White")
end)
Ad

Answer this question