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

(Solved) My Notification Script isn't working for some reason... Solution?

function tip(tip)
	game.Players.LocalPlayer.PlayerGui.Tips.Frame.Tip.Text = tip
	game.Players.LocalPlayer.PlayerGui.Tips.Frame.Visible = true
	wait(5)
	game.Players.LocalPlayer.PlayerGui.Tips.Frame.Visible = false
end

game:GetService("Players").PlayerAdded:connect(function(person)
	print("ruunning")
	while true do
	tip("Press b to spawn a surprise")
	wait(10)
	tip("Press e to teleport")
	wait(10)
	tip("Some things don't work... Sorry?")
	wait(10)
	end
end)

1 comment

0

Doesn't look like you are calling the function.

1 answer

 tip("message")

Thats wrong, you might want to use a local script and do the text change manually, like so..

tip = game.Players.LocalPlayer.PlayerGui.Tips.Frame.Tip.Text
game.Players.LocalPlayer.PlayerGui.Tips.Frame.Visible = true
wait(5)
game.Players.LocalPlayer.PlayerGui.Tips.Frame.Visible = false

while true do
tip = "Press b to spawn a surprise"
wait(10)
tip = "Press e to teleport"
wait(10)
tip = "Some things don't work... Sorry?"
wait(10)
end



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