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

Proximity prompt triggered event not working?

When I used the .Triggered event on a proximity prompt it sometimes worked and sometimes didn't. I tried different events and those worked, but not the .Triggered event.

local Talk=game:GetService("ReplicatedStorage"):WaitForChild("Talk")
local prompt=script.Parent
prompt.Triggered:Connect(function(player)
print("Triggered")
	local TEXT=player.PlayerGui.ScreenGui.DialogueText.Textt
	local textlabel=player.PlayerGui.ScreenGui.DialogueText
	textlabel.Visible=true
	local Dialogue={"Hey there!",
		"This is my shop! Here I sell planes for gems and cash!",
		"I don't have every single plane here though.",
		"I am pretty big, but don't worry!",
		"That is how I made all of these planes!",
		"Click on the planes to buy them.",
		"Buy everything I have for something special!"}
	for i,text in pairs(Dialogue)  do
		TEXT.Value=text
		Talk:FireClient(player)
		wait(1.5)
	end
	textlabel.Visible=false
	end)

1 answer

Found it out myself just was some incorrectly positioned root part. I solved this a few months ago lol.

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