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

Why is the function not connecting?

Can someone please tell me why this function is not connecting? I get no errors in output and no message in output either. I have to have the game.Players.PlayerAdded for something i'm going to do with it later but i've narrowed it down to function thats not working. Thanks!

game.Players.PlayerAdded:connect(function(player)
	function Intermission()
		print("Your in the Intermission Function")
	end
	
game.Players.PlayerAdded:connect(Intermission)	
	
end)

1 answer

You've mixed it up. Use these tactics.

Make the function standalone.

function Intermission()
	print("Your in the Intermission Function")
end
game.Players.PlayerAdded:connect(Intermission)  

Use a function without needing a name.

game.Players.PlayerAdded:connect(function()
	print("Your in the Intermission Function")
end)  

2 comments

1

Why are you using quotes.........?

0

The quotes look as okay ways to do these titles, but subheadings would probably be better (## instead of >)

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