Hello developers!
I’m trying to make something that is see dead npc’s messages.
But i can only do it once!
Basically i’m trying to make that you can read the others too.
Here it is the script:
local UI = script.Parent.Conversation
script.Parent.ProximityPrompt.Triggered:Connect(function(plr)
local UIClone = UI:Clone()
if not plr.PlayerGui:FindFirstChild("Conversation") then
UIClone.Frame.ScrollingFrame.Visible = false
UIClone.Frame.TextLabel.Visible = false
UIClone.Frame.TextButton.Visible = false
UIClone.Frame.ScrollingFrame.TextLabel.Text = script.Parent.message.Value
UIClone.Frame.TextLabel.Text = script.Parent.title.Value
UIClone.Parent = plr.PlayerGui
UIClone.Frame.Startup.Disabled = false
end
end)