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

Trigger event through leaderboard?

I was wondering if it was possible to trigger an event through the leaderboard? Example: if leaderboard = 4 points then door opens. something like that.

1 answer

✓ Accepted answer

IntValue.Changed event is triggered every time value of this value changes, every time it changes you can check if the value is 4:

leaderstats.Points.Changed:Connect(function(value)
	if value == 4 then
		print("value changed to 4")
	end
end)

1 comment

0

Thanks for the help! Worked great!

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