Skip to content

Instantly share code, notes, and snippets.

View Aerodos12's full-sized avatar

Aerodos12

View GitHub Profile
@Aerodos12
Aerodos12 / Notify.lua
Created September 7, 2017 10:55
Saberfront Studios PF Testing Code
local RemoteService = require(game.ReplicatedStorage.RemoteService)
RemoteService.listen("Client","Send","DisplayReward",function(amount,rewardType)
script.Parent.NotifyList:FindFirstChild(rewardType).Text = "+"..amount.." "..rewardType:upper()
script.Parent.NotifyList:FindFirstChild(rewardType).Visible = true
wait(5)
script.Parent.NotifyList:FindFirstChild(rewardType).Text = "+0 "..rewardType:upper()
script.Parent.NotifyList:FindFirstChild(rewardType).Visible = false
end)
@Aerodos12
Aerodos12 / client.lua
Last active September 27, 2017 13:24
PF Code
local vector={}
local cframe={}
local network={}
local trash={}
local utility={}
local event={}
local sequencer={}
local physics={}
local particle={}
local effects={}
@Aerodos12
Aerodos12 / Feedback.lua
Created September 27, 2017 20:30
DiscordService (Game Chat)
--[[
Remember to provide webhook link
--]]
local discord = require(script.Parent.Parent:WaitForChild("NitroDiscordAPI"))
local webhook = discord.Webhook.new("")
local feedbackEmbed = discord.RichEmbed.new()
:setAuthor("Game Feedback", "https://static-cdn.jtvnw.net/jtv_user_pictures/roblox-profile_image-b364d141205e2f1b-300x300.png")
:setTitle("Feedback Information")
@Aerodos12
Aerodos12 / RPGM.lua
Created January 13, 2018 18:42
RPG Math Provider
local RPGMathProvider = {}
local MFLOOR = math.floor
local s = {}
for key, value in pairs(require(game.Workspace.Settings.PerLevel)) do
s[key] = value
end
for key, value in pairs(require(game.Workspace.Settings.Starting)) do
s[key] = value
end
for key, value in pairs(require(game.Workspace.Settings.AttributeEffect)) do
@Aerodos12
Aerodos12 / AttachCamera.lua
Last active January 13, 2018 21:50
CameraScheme, CameraService and CameraScript
local PlayersService = game:GetService('Players')
local RootCameraCreator = require(script.Parent)
local ZERO_VECTOR2 = Vector2.new(0, 0)
local XZ_VECTOR = Vector3.new(1,0,1)
local Vector2_new = Vector2.new
local CFrame_new = CFrame.new
local math_atan2 = math.atan2
local math_min = math.min
@Aerodos12
Aerodos12 / Duty.lua
Created January 14, 2018 21:40 — forked from anonymous/Duty.lua
GunScripts, AI and GameServer
return function()
--[[
Basic Monster by ArceusInator
Information:
Configurations.MaximumDetectionDistance (default 200)
The monster will not detect players past this point. If you set it to a negative number then the monster will be able to chase from any distance.
Configurations.CanGiveUp (default true)
@Aerodos12
Aerodos12 / Camo.lua
Created January 16, 2018 22:13
Camos, KillService, Quest System, etc.
local Camo = {}
local RunService = game:GetService("RunService")
local RemoteService = require(game.ReplicatedStorage.RemoteService)
Camo.__index = Camo
local CamoTypeFuncs = {
["Material"] = function(camo)
return typeof(camo.Image) == "EnumItem" and camo.Image.EnumType == Enum.Material
end;
["Texture"] = function(camo)
return typeof(camo.Image) == "string" and camo.Image:find("rbxassetid://")
@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
@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 / 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
--//////////////////////////////////////