I've written 3 different scripts; 2 of which are working. I seperated them because of some issues I was having with the onTouched function and it repeating and whatnot. Anyways, that's not the point; My third script compiles, and prints the success message into the outbox, but isn't really doing it's job. Here it is.
local f = true
script.Parent.Touched:connect(function()
game.StarterGui:WaitForChild("TalkingGui")
if f == true
then
f = false
wait(10)
game.StarterGui.TalkingGui.TextLabel.Text = "Woah...W-What in the world was that?"
wait(3)
game.StarterGui.TalkingGui.TextLabel.Text = "Maybe I should get out of here..."
wait(3)
game.StarterGui.TalkingGui.TextLabel.Text = " "
print("Talking successful!")
wait(10)
f = true
end
end)

1 comment
Thanks! This did fix the issue. I forgot about the player gui thing.