Revolution
It’s finally here! The Module suited for many tasks or just shortening your syntax! Welding, ray casting, leaderstats, camera functions;
You name it! We got it!
A mini-example of using Revolution:
local m = require(script.Revolution)
local l = m.L
local f = m.SF
local r = m.RBXS
local players = game:GetService("Players")
r:init()
m.BF.init()
local function onAdd(player)
r:new("Thanks")
r:new("Increment")
local coins = m.D2("Coins", player)
local Banned, reason = m.BF.CheckBan(player)
l.CreateLeaderstats(player)
l.MakeStat(player, "NumberValue", coins:Get(10), "Coins")
r:connect("Connection1", "Increment", function(plr)
f.printf("%s has gained 10!", plr.Name)
end)
l.TimedIncrement(player, "Coins", 5, 10, function()
coins:Set(l.GetStatValue(player, "Coins"))
r:fire("Increment", player)
end)
r:connect("Connection1", "Thanks", function(plr)
f.printf("%s has redeemed their VIP server bonus!")
r:destroy("Thanks")
end)
local Stype, owner = f.GetServerType()
if Stype == "VIP" and owner == player.UserId then
f.printf("The owner of the server, %s, has joined!", player.Name)
if not m.D2("RedeemThanks", player):Get(false) then
l.IncrementStat(player, "Coins", 500)
m.D2("RedeemThanks", player):Set(true)
r:fire("Thanks", player)
else
r:destroy("Thanks")
end
else
r:destroy("Thanks")
end
end
players.PlayerAdded:Connect(onAdd)
Special thanks to my testers:
- @3rdhoan123
- @C3RB
- @kacperovsky00
- @staplecruncher
Something wrong with the module and it needs to be instantly fixed?
DM on here or on discord: return_end1#8774