Skip to content

Instantly share code, notes, and snippets.

View Aerodos12's full-sized avatar

Aerodos12

View GitHub Profile
@Aerodos12
Aerodos12 / Intro.lua
Created February 21, 2018 23:01
Intro/Tutorial scheme
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local Settings = UserSettings()
local GameSettings = Settings.GameSettings
local LocalPlayer = Players.LocalPlayer
local IMAGE_INTRO_MOVE = "rbxasset://textures/ui/Input/IntroMove.png"
local RPGCalculator = {}
RPGCalculator.MT = {}
RPGCalculator.MT.__index = function (self, k)
if self.Args[k] then
return self.Args[k]
end
end
RPGCalculator.new = function(...)
local rpgc = {}
rpgc.Args = {}
@Aerodos12
Aerodos12 / Mob.lua
Created January 29, 2018 23:33
Mob System
local Mob = {}
Mob.__index = Mob
local MobService = require(game.ServerScriptService.MobFunctions)
local ASMClass = require(script.Parent.AnimationStateMachine)
local MEMClass = require(script.Parent.MobEquipmentManager)
local RagdollGenerator = require(script.Parent.RagdollGenerator)
local XPManager = require(script.Parent.XPManager)
local ProgressionService = require(game.ReplicatedStorage.ProgressionService)
local CollectionService = game:GetService("CollectionService")
local HttpService = game:GetService("HttpService")
local M3D = require(game.ReplicatedStorage.Module3D)
local UIS = game:GetService("UserInputService")
local InputDown, LastPos
local currentCamera = workspace.CurrentCamera
local V3,CF = Vector3.new, CFrame.new
local CFANG = CFrame.Angles
local SIN, COS = math.sin, math.cos
local RANDOM = math.random
local InventoryService = require(game.ReplicatedStorage.InventoryService)
local player = game.Players.LocalPlayer
@Aerodos12
Aerodos12 / Achievement.lua
Created January 27, 2018 22:03
Achievement System
local Achievement = {}
local RemoteService = require(game.ReplicatedStorage.RemoteService)
local ProgressionService = require(game.ReplicatedStorage.ProgressionService)
Achievement.__index = Achievement
function Achievement.new(...)
local ach = {}
local args = {...}
ach.Name = args[1]
ach.Desc = args[2]
ach.DescBeforeCompleted = args[3]
@Aerodos12
Aerodos12 / BOT.lua
Created January 25, 2018 17:45
MobManager
local LootService = require(game.ReplicatedStorage.LootService)
local Bot = {
Mana = 100,
Lvl = 1,
CooldownMagnitude = 50,
MinDmg = 5,
MaxDmg = 10,
Gold = 20,
XP = 10,
CritMagnitude = 200,
@Aerodos12
Aerodos12 / Attachment.lua
Created January 23, 2018 18:10
Attachments
local Attachment = {}
Attachment.__index = Attachment
local AttachmentStorage = game.ReplicatedStorage.AttachmentStorage
Attachment.AttachOffsets = {};
function Attachment.new(...)
local att = {}
local args = {...}
att.Name = args[1]
att.Title = args[2]
att.Type = args[3] or "Optics"
@Aerodos12
Aerodos12 / ChannelsBar.lua
Created January 22, 2018 20:39
New Chat System
-- // FileName: ChannelsBar.lua
-- // Written by: Xsitsu
-- // Description: Manages creating, destroying, and displaying ChannelTabs.
local module = {}
local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
--////////////////////////////// Include
--//////////////////////////////////////
@Aerodos12
Aerodos12 / Spring.lua
Created January 21, 2018 21:38
USFBP II
local Spring = {}
local COS,SIN = math.cos,math.sin
local smt = setmetatable
function Spring.new(Initial)
local t0 = tick()
local p0 = Initial or 0
local v0 = Initial and 0*Initial or 0
local t = Initial or 0
local d = 1
local s = 1
@Aerodos12
Aerodos12 / HUD.lua
Created January 18, 2018 22:37
Squad Intro
local plr = game.Players.LocalPlayer
local HUD = script.Parent
local chr = plr.Character
if not chr or not chr.Parent then
chr = plr.CharacterAdded:wait()
end
local FLOOR = math.floor
local Players = game.Players
local WFC = game.WaitForChild
local ffc = game.FindFirstChild