Skip to content

IllusionAC/Illusion-CountdownSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Illusion-CountdownSystem

Simple Countdown system to place in ReplicatedStorage.

Usage: Countdown.luau inside ReplicatedStorage

ServerScript (Model using a Script with RunContext to server, inside Countdown.luau):

local Countdown = require("../Countdown")

game.Players.PlayerAdded:Connect(function(player)
	task.wait(2)
	Countdown.Start(player, 5, "Time Left")
	
	-- Force stop after 2 seconds
	-- task.wait(2)
	-- Countdown.Stop(player)
end)

ClientScript (Model using a Script with RunContext to client, inside Countdown.luau):

local Countdown = require("../Countdown")

-- When server starts couldown, client is ready
Countdown.ClientInit()

PS: The RemoteEvent is instanciated inside Countdown.luau

About

Simple Countdown system to place in ReplicatedStorage. Usage in README

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages