Skip to content

Instantly share code, notes, and snippets.

View Aerodos12's full-sized avatar

Aerodos12

View GitHub Profile
@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 / 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 / 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]
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 / 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 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 / 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"
-------------------------------------------------------------------------------------
--------------------[ CHARACTER LOADING ]---------------------------------------------
--------------------------------------------------------------------------------------
local FFC = game.FindFirstChild
local WFC = game.WaitForChild
local Services = {}
Services.DS = game:GetService("Debris")
Services.CP = game:GetService("ContentProvider")
Services.RS = game:GetService("RunService")
Services.UIS = game:GetService("UserInputService")
@Aerodos12
Aerodos12 / CrossWarAnimations2.lua
Created May 16, 2018 17:48
CrossWar GS Leg Update
local Animations = {
Reload = function(S)
local W1 = nil
local W2 = nil
local animSpeed = S.isMagEmpty() and S.reloadTimeEmpty / 1.3 or S.reloadTimeLoaded / 0.9
return {
function()
if (not S.isNewMag()) then
if S.isMagVisible() then
@Aerodos12
Aerodos12 / client.lua
Created July 20, 2018 15:34
Current GunCode
local RemoteService = require(game.ReplicatedStorage.RemoteService)
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local CAS = game:GetService("ContextActionService")
local player = game.Players.LocalPlayer
local Signal = require(game.ReplicatedStorage.SignalAPI)
local Bindables = game.ReplicatedStorage.Bindables:Clone()
Bindables.Parent = player
local BindableService = require(game.ReplicatedStorage.BindingService)(player)
local CameraService = require(game.ReplicatedStorage.CameraService)