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

How do I check who is using a dialog within a local script?

Asked by 4 years ago

All I have is

workspace.Part.Dialog.InUse:Connect(function(Player)
    print(Player)
end)

1 answer

Log in to vote
1
Answered by
Prestory 1395 Moderation Voter
4 years ago
Edited 4 years ago

Insert a LocalScript into StarterGui and place the code below inside it

local Player = game.Players.LocalPlayer

workspace.Part.Dialog.Changed:Connect(function()
if workspace.Part.Dialog.InUse == true then
    print(Player.Name)
end
end)

(Not tested in studio might not be 100% accurate)

Ad

Answer this question