This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Unix must be the current timestamp in seconds since January 1st, 1970 | |
-- Get days, month and year | |
local days = floor(unix / 86400) + 719468 | |
local wday = (days + 3) % 7 | |
local year = floor((days >= 0 and days or days - 146096) / 146097) -- 400 Year bracket | |
days = (days - year * 146097) -- Days into 400 year bracket [0, 146096] | |
local years = floor((days - floor(days/1460) + floor(days/36524) - floor(days/146096))/365) -- Years into 400 Year bracket[0, 399] | |
days = days - (365*years + floor(years/4) - floor(years/100)) -- Days into year (March 1st is first day) [0, 365] | |
local month = floor((5*days + 2)/153) -- Month of year (March is month 0) [0, 11] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Set unix to be the number of seconds since January 1st, 1970 | |
-- function floor rounds down to the nearest whole integer (5.9 becomes 5, 2.2 becomes 2, etc) | |
-- Get days, month and year | |
local days = floor(unix / 86400) + 719468 | |
local wday = (days + 3) % 7 | |
local year = floor((days >= 0 and days or days - 146096) / 146097) -- 400 Year bracket | |
days = (days - year * 146097) -- Days into 400 year bracket [0, 146096] | |
local years = floor((days - floor(days/1460) + floor(days/36524) - floor(days/146096))/365) -- Years into 400 Year bracket[0, 399] | |
days = days - (365*years + floor(years/4) - floor(years/100)) -- Days into year (March 1st is first day) [0, 365] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Loader = Instance.new("ImageLabel") | |
Loader.Image = "rbxassetid://538506094" | |
Loader.Position = UDim2.new(0.5, -200, 0.3, 0) | |
Loader.ScaleType = Enum.ScaleType.Slice | |
Loader.Size = UDim2.new(0, 400, 0, 20) | |
Loader.SliceCenter = Rect.new(7, 7, 14, 14) | |
Loader.BackgroundTransparency = 1 | |
Loader.ZIndex = 3 | |
local StripeHolder = Instance.new("Frame", Loader) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @author Validark | |
--[[ | |
Place this in a `Script` in `ServerScriptService` | |
Place Arena spawns in a model called in the workspace | |
Make sure the name of the Arena spawns model matches variable `ARENASPAWNS` in the Configuration below | |
Place the Pistol in the ServerStorage | |
Make sure the name of the Pistol matches the variable `GEAR_NAME` in Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- I found this in my old files. | |
-- It MANUALLY converts the data I wanted into JSON format. | |
-- I knew about JSONDecode but not JSONEncode | |
local Profilez=game.Workspace.Profiles | |
local StringToChange=game.Workspace.StringVal | |
function ValueIsInTable(d,TableOfObjects) | |
for a,r in pairs(TableOfObjects) do | |
if d==r then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @author Validark | |
-- @author CraneFly | |
-- @filtering Client-Side | |
-- This should go in StarterCharacterScripts | |
-- Localizations | |
local pi = math.pi | |
local atan2 = math.atan2 | |
local newCFrame = CFrame.new | |
local newCFrameAngles = CFrame.Angles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @author Validark | |
--[[ | |
Classifications: | |
devSparkle's version is referred to as "NevermoreEngine" | |
Validark's version is referred to as "Resources" | |
Foreword: | |
These tests were conducted on live server-client models | |
The code used for each was identical aside from Module syntax changes | |
Module arrays list the times it took to load the ModuleScript itself |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @author Validark | |
-- @original Quenty | |
-- @readme https://github.com/NevermoreFramework/Nevermore | |
local RunService = game:GetService("RunService") | |
local ServerStorage = game:GetService("ServerStorage") | |
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local ServerScriptService = game:GetService("ServerScriptService") | |
-- Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
https://github.com/gre/bezier-easing | |
BezierEasing - use bezier curve for transition easing function | |
by Gaëtan Renaudeau 2014 - 2015 – MIT License | |
--]] | |
-- These values are established by empiricism with tests (tradeoff: performance VS precision) | |
local NEWTON_ITERATIONS = 4; | |
local NEWTON_MIN_SLOPE = 0.001; | |
local SUBDIVISION_PRECISION = 0.0000001; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @author Validark | |
-- @readme https://github.com/RoStrap/Resources | |
-- Services | |
local ServerStorage = game:GetService("ServerStorage") | |
local CollectionService = game:GetService("CollectionService") | |
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local ServerScriptService = game:GetService("ServerScriptService") | |
-- Configuration |
OlderNewer