content stringlengths 5 1.05M |
|---|
pointSystem = {25, 18, 15, 12, 10, 8, 6, 4, 2, 1} -- [rank] = points, according to the formula 1 point system
currentMap = {}
mapList = {}
playerTeamID = {}
ranking = {} -- [i] = {teamid, points}
teamMembers = nil
TWState = false
function startTeamWar(challengerTeam, victimTeam, maps)
if #maps < 6 then
local xml = xmlLoadFile("eventManager.xml")
if not xml then return false end
local events = xmlNodeGetChildren(xml)
for a,b in ipairs(events) do
if xmlNodeGetAttribute(b, "name") == "Circuits" then
local mps = xmlNodeGetChildren(b)
if #mps == 0 then break end
local mps2 = mps
while #maps <6 do
if #mps2 == 0 then mps2 = mps end
local r = math.random(1,#mps2)
local map = xmlNodeGetValue(mps2[r])
if not map then break end
local name = getResourceInfo(getResourceFromName(map), "name")
local author = getResourceInfo(getResourceFromName(map), "author")
if not author then author = "N/A" end
table.insert(maps,{name, author, map})
table.remove(mps2, r)
end
break
end
end
xmlUnloadFile(xml)
end
local t = {}
while #maps > 0 do
local r = math.random(1,#maps)
table.insert(t,{maps[r][3], "Team War", "eventmanager_teamwars", challengerTeam, victimTeam})
table.remove(maps, r)
end
triggerEvent("eventmanager_eventInject", root, t)
return true
end
function teamwars(mapRow)
table.insert(mapList, mapRow)
end
addEvent("eventmanager_teamwars",true)
addEventHandler("eventmanager_teamwars",root,teamwars)
function onMapStart(res)
local match = false
for a,b in ipairs(mapList) do
if b[1] == getResourceName(res) then
match = true
break
end
end
if not match then return end
currentMap = mapList
mapList = {}
-- outputChatBox("start: " .. getTWState(true))
if getTWState() == "started" then
teamMembers = fetchMembers()
end
addEventHandler("onPlayerFinish", root, finish)
end
addEventHandler("onResourceStart", getRootElement(), onMapStart)
function onMapStop(res)
local match = false
for a,b in ipairs(currentMap) do
if b[1] == getResourceName(res) then
match = true
break
end
end
if not match then return end
local challengerTeam = currentMap[1][4]
local victimTeam = currentMap[1][5]
currentMap = {}
removeEventHandler("onPlayerFinish", root, finish)
--outputChatBox("stop: " .. getTWState(true))
if getTWState() == "stopped" then stopTeamWar(challengerTeam, victimTeam) end
end
addEventHandler("onResourceStop", getRootElement(), onMapStop)
function finish(rank, time)
local points = pointSystem[rank]
if not points then return end
local p = source
local teamid
local match = false
for a,b in ipairs(playerTeamID) do
if b[1] == p then
teamid = b[2]
match = true
end
end
if not match then
teamid = getPlayerTeam(p)
table.insert(playerTeamID, {p, teamid})
end
local match = false
for a,b in ipairs(ranking) do
if b[1] == teamid then
local cPoints = b[2]
b[2] = cPoints + points
match = true
end
end
if not match then
table.insert(ranking, {teamid, points})
end
end
addEvent("onPlayerFinish",true)
function stopTeamWar(challengerTeam, victimTeam)
local teamid = false
local points = 0
for a,b in ipairs(ranking) do
if b[1] == challengerTeam or b[1] == victimTeam then
if b[2] > points then
teamid = b[1]
points = b[2]
end
end
end
if not teamid then return end
local name
local teams = fetchTeams()
for a,b in ipairs(teams) do
if b.teamid == teamid then
name = b.name
end
end
outputChatBox("[Team Wars] #ffffff" .. name .. " won the team war with " .. points .. " points!", getRootElement(), 206, 163, 131, true)
currentMap = {}
mapList = {}
playerTeamID = {}
ranking = {}
teamMembers = nil
TWState = false
end
function getTWState()
local q = getCurrentQueue()
local match = false
for a,b in ipairs(q) do
if b[3] == "eventmanager_teamwars" then match = true end
end
if mapList[1] then match = true end
if currentMap[1] then match = true end
if not TWState and not match then
return "not running"
elseif not TWState and match then
TWState = true
return "started"
elseif TWState and match then
return "running"
elseif TWState and not match then
TWState = false
return "stopped"
else
return false
end
end
function fetchTeams()
local qh = dbQuery(handlerConnect, "SELECT * FROM `team`")
local t = dbPoll(qh,-1)
if not t then return false end
return t
end
function fetchMembers()
local qh = dbQuery(handlerConnect, "SELECT * FROM `team_members`")
local t = dbPoll(qh,-1)
if not t then return false end
return t
end
function getPlayerTeam(p)
local forumID = tonumber(exports.gc:getPlayerForumID(p))
if teamMembers == nil then teamMembers = fetchMembers() end
if not forumID or not teamMembers then return end
local teamid = false
for a,b in ipairs(teamMembers) do
if b.forumid == forumID then teamid = b.teamid end
end
if not teamid then return end
return teamid
end
|
require("love.timer")
require("love.system")
require("love.sound")
require("love.physics")
require("love.mouse")
require("love.math")
require("love.keyboard")
require("love.joystick")
require("love.image")
require("love.font")
require("love.filesystem")
require("love.event")
require("love.audio")
require("love.graphics")
require("love.window")
_defaultfont = love.graphics.getFont()
gui = {}
function gui.getTile(i,x,y,w,h)-- returns imagedata
if type(i)=="userdata" then
-- do nothing
else
error("getTile invalid args!!! Usage: ImageElement:getTile(x,y,w,h) or gui:getTile(imagedata,x,y,w,h)")
end
local iw,ih=i:getDimensions()
local id,_id=i:getData(),love.image.newImageData(w,h)
for _x=x,w+x-1 do
for _y=y,h+y-1 do
_id:setPixel(_x-x,_y-y,id:getPixel(_x,_y))
end
end
return love.graphics.newImage(_id)
end
multi = {}
multi.Version="4.0.0"
multi.__index = multi
multi.Mainloop={}
multi.Tasks={}
multi.Tasks2={}
multi.Garbage={}
multi.Children={}
multi.Paused={}
multi.MasterId=0
multi.Active=true
multi.Id=-1
multi.Type="MainInt"
multi.Rest=0
-- System
os.sleep=love.timer.sleep
function multi:newBase(ins)
if not(self.Type=="MainInt" or self.Type=="int") then error("Can only create an object on multi or an interface obj") return false end
local c = {}
if self.Type=="int" then
setmetatable(c, self.Parent)
else
setmetatable(c, self)
end
c.Active=true
c.func={}
c.Id=0
c.Act=function() end
c.Parent=self
if ins then
table.insert(self.Mainloop,ins,c)
else
table.insert(self.Mainloop,c)
end
self.MasterId=self.MasterId+1
return c
end
function multi:reboot(r)
self.Mainloop={}
self.Tasks={}
self.Tasks2={}
self.Garbage={}
self.Children={}
self.Paused={}
self.MasterId=0
self.Active=true
self.Id=-1
if r then
for i,v in pairs(_G) do
if type(i)=="table" then
if i.Parent and i.Id and i.Act then
i={}
end
end
end
end
end
function multi:getChildren()
return self.Mainloop
end
--Processor
function multi:Do_Order()
for _D=#self.Mainloop,1,-1 do
if self.Mainloop[_D]~=nil then
self.Mainloop[_D].Id=_D
self.Mainloop[_D]:Act()
end
if self.Mainloop[_D].rem then
table.remove(self.Mainloop,_D)
end
end
if self.Rest>0 then
os.sleep(self.Rest)
end
end
function multi:benchMark(sec)
local temp=self:newLoop(function(t,self)
if os.clock()-self.init>self.sec then
print(self.c.." steps in "..self.sec.." second(s)")
self.tt(self.sec)
self:Destroy()
else
self.c=self.c+1
end
end)
function temp:OnBench(func)
self.tt=func
end
self.tt=function() end
temp.sec=sec
temp.init=os.clock()
temp.c=0
return temp
end
function multi:newInterface()
if not(self.Type=="MainInt") then error("Can only create an interface on the multi obj") return false end
local c = {}
setmetatable(c, self)
c.Parent=self
c.Active=true
c.func={}
c.Id=0
c.Type="int"
c.Mainloop={}
c.Tasks={}
c.Tasks2={}
c.Garbage={}
c.Children={}
c.Paused={}
c.MasterId=0
c.Active=true
c.Id=-1
c.Rest=0
function c:Start()
if self.l then
self.l:Resume()
else
self.l=self.Parent:newLoop(function(dt) c:uManager(dt) end)
end
end
function c:Stop()
if self.l then
self.l:Pause()
end
end
function c:Remove()
self:Destroy()
self.l:Destroy()
end
return c
end
--Helpers
function multi:FreeMainEvent()
self.func={}
end
function multi:isPaused()
return not(self.Active)
end
function multi:Pause(n)
if self.Type=="int" or self.Type=="MainInt" then
self.Active=false
if not(n) then
local c=self:getChildren()
for i=1,#c do
c[i]:Pause()
end
else
self:hold(n)
end
else
if not(n) then
self.Active=false
if self.Parent.Mainloop[self.Id]~=nil then
table.remove(self.Parent.Mainloop,self.Id)
table.insert(self.Parent.Paused,self)
self.Id=#self.Parent.Paused
end
else
self:hold(n)
end
end
end
function multi:Resume()
if self.Type=="int" or self.Type=="MainInt" then
self.Active=true
local c=self:getChildren()
for i=1,#c do
c[i]:Resume()
end
else
if self:isPaused() then
self.Active=true
for i=1,#self.Parent.Paused do
if self.Parent.Paused[i]==self then
table.remove(self.Parent.Paused,i)
return
end
end
table.insert(self.Parent.Mainloop,self)
end
end
end
function multi:Destroy()
if self.Type=="int" or self.Type=="MainInt" then
local c=self:getChildren()
for i=1,#c do
c[i]:Destroy()
end
else
self.rem=true
end
end
function multi:hold(task)
self:Pause()
if type(task)=="number" then
local alarm=self:newAlarm(task)
while alarm.Active==true do
if love then
self.Parent.lManager()
else
self.Parent.Do_Order()
end
end
alarm:Destroy()
self:Resume()
elseif type(task)=="function" then
local env=self.Parent:newEvent(task)
env:OnEvent(function(envt) envt:Pause() envt:Stop() end)
while env.Active do
if love then
self.Parent.lManager()
else
self.Parent.Do_Order()
end
end
env:Destroy()
self:Resume()
else
print("Error Data Type!!!")
end
end
function multi:oneTime(func,...)
if not(self.Type=="MainInt" or self.Type=="int") then
for _k=1,#self.Parent.Tasks2 do
if self.Parent.Tasks2[_k]==func then
return false
end
end
table.insert(self.Parent.Tasks2,func)
func(...)
return true
else
for _k=1,#self.Tasks2 do
if self.Tasks2[_k]==func then
return false
end
end
table.insert(self.Tasks2,func)
func(...)
return true
end
end
--Constructors
function multi:newEvent(task)
local c=self:newBase()
c.Type="Event"
c.Task=task or function() end
function c:Act()
if self.Task(self) and self.Active==true then
self:Pause()
for _E=1,#self.func do
self.func[_E](self)
end
end
end
function c:OnEvent(func)
table.insert(self.func,func)
end
return c
end
function multi:newAlarm(set)
local c=self:newBase()
c.Type="Alarm"
c.timer=os.clock()
c.set=set or 0
function c:Act()
if self.Active==true then
if os.clock()-self.timer>=self.set then
self:Pause()
for i=1,#self.func do
self.func[i](self)
end
end
end
end
function c:Reset(n)
if n then self.set=n end
self.timer=os.clock()
self:Resume()
end
function c:OnRing(func)
table.insert(self.func,func)
end
return c
end
function multi:newTask(func)
table.insert(self.Tasks,func)
end
function multi:newLoop(func)
local c=self:newBase()
c.Type="Loop"
if func then
c.func={func}
end
function c:Act()
if self.Active==true then
for i=1,#self.func do
self.func[i](os.clock()-self.Parent.Start,self)
end
end
end
function c:OnLoop(func)
table.insert(self.func,func)
end
return c
end
function multi:newStep(start,reset,count,skip)
local c=self:newBase()
think=1
c.Type="Step"
c.pos=start or 1
c.endAt=reset or math.huge
c.skip=skip or 0
c.spos=0
c.count=count or 1*think
c.funcE={}
c.start=start or 1
if start~=nil and reset~=nil then
if start>reset then
think=-1
end
end
function c:Act()
if self~=nil then
if self.spos==0 then
if self.Active==true then
for i=1,#self.func do
self.func[i](self.pos,self)
end
self.pos=self.pos+self.count
end
end
end
self.spos=self.spos+1
if self.spos>=self.skip then
self.spos=0
end
end
function c:OnStep(func)
table.insert(self.func,1,func)
end
function c:OnEnd(func)
table.insert(self.funcE,func)
end
function c:Update(start,reset,count,skip)
self.start=start or self.start
self.endAt=reset or self.endAt
self.skip=skip or self.skip
self.count=count or self.count
self:Resume()
end
c:OnStep(function(p,s)
if s.count>0 and s.endAt==p then
for fe=1,#s.funcE do
s.funcE[fe](s)
end
s.pos=s.start-1
elseif s.count<0 and s.endAt==p then
for fe=1,#s.funcE do
s.funcE[fe](s)
end
s.pos=s.start-1
end
end)
return c
end
function multi:newTStep(start,reset,count,set)
local c=self:newBase()
think=1
c.Type="TStep"
c.start=start or 1
local reset = reset or math.huge
c.endAt=reset
c.pos=start or 1
c.skip=skip or 0
c.count=count or 1*think
c.funcE={}
c.timer=os.clock()
c.set=set or 1
function c:Update(start,reset,count,set)
self.start=start or self.start
self.pos=start
self.endAt=reset or self.endAt
self.set=set or self.set
self.count=count or self.count or 1
self.timer=os.clock()
self:Resume()
end
function c:Act()
if self.Active then
if os.clock()-self.timer>=self.set then
self:Reset()
for i=1,#self.func do
self.func[i](self.pos,self)
end
if self.endAt==self.pos then
for fe=1,#self.funcE do
self.funcE[fe](self)
end
self.pos=self.start-1
end
self.pos=self.pos+self.count
end
end
end
function c:OnEnd(func)
table.insert(self.funcE,func)
end
function c:Reset(n)
if n then self.set=n end
self.timer=os.clock()
self:Resume()
end
function c:OnStep(func)
table.insert(self.func,func)
end
return c
end
function multi:newTrigger(func)
local c=self:newBase()
c.Type="Trigger"
c.trigfunc=func or function() end
function c:Fire(...)
self:trigfunc(self,...)
end
return c
end
--Managers
function multi:mainloop()
for i=1,#self.Tasks do
self.Tasks[i](self)
end
self.Start=os.clock()
while self.Active do
self:Do_Order()
end
end
function multi._tFunc(self,dt)
for i=1,#self.Tasks do
self.Tasks[i](self)
end
print("once!")
if dt then
self.pump=true
end
self.pumpvar=dt
self.Start=os.clock()
end
function multi:uManager(dt)
self:oneTime(self._tFunc,self,dt)
self:Do_Order()
end
multi.drawF={}
function multi:dManager()
for ii=1,#multi.drawF do
multi.drawF[ii]()
end
end
function multi:onDraw(func)
table.insert(self.drawF,func)
end
function multi:lManager()
if love.event then
love.event.pump()
for e,a,b,c,d in love.event.poll() do
if e == "quit" then
if not love.quit or not love.quit() then
if love.audio then
love.audio.stop()
end
return nil
end
end
love.handlers[e](a,b,c,d)
end
end
if love.timer then
love.timer.step()
dt = love.timer.getDelta()
end
if love.update then love.update(dt) end
multi:uManager(dt)
if love.window and love.graphics and love.window.isCreated() then
love.graphics.clear()
love.graphics.origin()
if love.draw then love.draw() end
multi.dManager()
love.graphics.setColor(255,255,255,255)
if multi.draw then multi.draw() end
love.graphics.present()
end
end
Thread={}
Thread.Name="Thread 2"
Thread.ChannelThread = love.thread.getChannel("Easy2")
Thread.ChannelMain = love.thread.getChannel("EasyMain")
Thread.Global = {}
function Thread:packTable(G)
function escapeStr(str)
local temp=""
for i=1,#str do
temp=temp.."\\"..string.byte(string.sub(str,i,i))
end
return temp
end
function ToStr(t)
local dat="{"
for i,v in pairs(t) do
if type(i)=="number" then
i="["..i.."]="
else
i=i.."="
end
if type(v)=="string" then
dat=dat..i.."\""..v.."\","
elseif type(v)=="number" then
dat=dat..i..v..","
elseif type(v)=="boolean" then
dat=dat..i..tostring(v)..","
elseif type(v)=="table" and not(G==v) then
dat=dat..i..ToStr(v)..","
--elseif type(v)=="table" and G==v then
-- dat=dat..i.."assert(loadstring(\"return self\")),"
elseif type(v)=="function" then
dat=dat..i.."assert(loadstring(\""..escapeStr(string.dump(v)).."\")),"
end
end
return string.sub(dat,1,-2).."}"
end
return "return "..ToStr(G)
end
function Thread:Send(name,var)
arg3="2"
if type(var)=="table" then
var=Thread:packTable(var)
arg3="table"
end
self.ChannelMain:push({name,var,arg3})
end
function Thread:UnPackChannel()
local c=self.ChannelThread:getCount()
for i=1,c do
local temp=self.ChannelThread:pop()
if temp[1] and temp[2] then
if temp[1]=="func" and type(temp[2])=="string" then
loadstring(temp[2])(temp[3])
elseif temp[1]=="table" then
_G[temp[3]]=loadstring(temp[2])()
else
_G[temp[1]]=temp[2]
end
end
end
if #multi:getChildren()<2 then
os.sleep(.05)
end
end
function Thread:boost(func,name)
self:Send(name,string.dump(func))
end
function Thread.mainloop()
Thread:UnPackChannel()
end
Thread.MainThread=false
multi:newLoop():OnLoop(Thread.mainloop)
multi:mainloop()
|
object_tangible_loot_creature_loot_kashyyyk_loot_potion_component_02 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_potion_component_02:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_potion_component_02, "object/tangible/loot/creature_loot/kashyyyk_loot/potion_component_02.iff") |
print("")
print("")
print("")
print("Outra migração")
select_database("test_db")
migration = alter_table("users")
create_field(migration, "remember_token", "string")
print("DUMP DA TABELA INTEIRA")
dumptbl(migration)
print("migration end")
|
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "Vegemite";
ITEM.model = "models/vegemite/vegemite.mdl";
ITEM.width = 1;
ITEM.height = 1;
ITEM.description = "The greatest thing humanity has to offer. It tastes of raw salt when consumed in large quantities. Don't use too much!";
ITEM.permit = "consumables";
ITEM.category = "Australian"
ITEM.price = 20;
ITEM.restoreHealth = 5;
ITEM.flag = "z"
ITEM.dropSound = {
"terranova/ui/cannedfood1.wav",
"terranova/ui/cannedfood2.wav",
"terranova/ui/cannedfood3.wav",
} |
-- LUALOCALS < ---------------------------------------------------------
local dofile, minetest, rawset
= dofile, minetest, rawset
-- LUALOCALS > ---------------------------------------------------------
local thismod = minetest.get_current_modname()
local modpath = minetest.get_modpath(thismod)
parentmod = minetest.get_modpath("nc_concrete")
tm = "nc_stucco:"
nc_stuccol = {
curing = {
stages = {"Sodden", "Moist", "Damp", "Dry", "Powdered"},
wetter = {
powdered = "sodden",
moist = "sodden",
damp = "sodden"
},
drier = {
sodden = "moist",
moist = "damp",
damp = "dry"
}
},
patterns = {"GKey", "Beetle", "Crossy", "Corinth", "Hexy", "Brexy",
"Lamby", "Doric", "Starry", "Targey", "Stakey", "Panelly",
"Slatty", "Logos", "Peeky", "Mucky", "Enol", "SN", "Hatchy",
"Foote","Signy","Signy2", "Signy3"},
wca = {"Bindy", "Bricky", "Hashy","Icebox","Ridgey", "Vermi", "Barry"},
dep = {"Bordy-Thin", "Bordy-Thick"},
posts = {"Thick", "Thin"},
meshies = {"st_sword_corr.obj", "st_bowl_inv_corr.obj", "st_post_corr.obj", "st_signpost_corr.obj",
"st_pillar_base_corr.obj", "st_pillar_base_inv_corr.obj", "st_pillar_mid_corr.obj","sarco_corr.obj","stone1_corr.obj","bcage.obj","bcage_closed_corr.obj", "urn_corr.obj", "urn_closed_corr.obj",
names = {"sword", "bowl","post","spost","pillar_end","pillar_end_inv", "pillar_mid", "sarco","stone1","bcage","bcage_closed", "urn", "urn_closed"}
},
bench = "nc_stucco:sculptier",
boss = {
mod = "nc_concrete",
concrete_mats = {"sandstone", "adobe", "coalstone","terrain_stone"},
textures = {}
}
}
rawset(_G, thismod, nc_stuccol)
dofile(modpath .. "/nodes.lua")
dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/sculpt.lua")
dofile(modpath .. "/curing.lua")
|
local Scalar = require 'libsclr'
local f_to_s = require 'Q/OPERATORS/F_TO_S/lua/f_to_s'
local T = {}
local function fold( fns, vec)
assert(type(vec) == "lVector")
-- make sure functions are unique
local cnt = 0
for i1, v1 in ipairs(fns) do
for i2, v2 in ipairs(fns) do
if ( i1 ~= i2 ) then assert(v1 ~= v2) end
end
cnt = cnt + 1
end
assert(cnt > 0)
--==================
local status = true
local gens = {}
for i, v in ipairs(fns) do
gens[i] = f_to_s[v](vec)
end
repeat
for i, v in ipairs(fns) do
status = gens[i]:next()
end
until not status
local rvals = {}
for i, v in ipairs(fns) do
local key = fns[i]
-- this is ugly TODO P3
local T = {}
local x, y, z = gens[i]:value()
T[1] = x
T[2] = y
T[3] = z
--======================
rvals[key] = T
end
return rvals
-- return a table of tables
end
T.fold = fold
require('Q/q_export').export('fold', fold)
return T
|
function Local.Init(x, y, cluster, hits, rotation)
Object.cluster = Engine.Scene:getGameObject(cluster);
Object.index = Object.cluster:addTarget(Object);
print("Target", x, y)
local sprite_size = This.Sprite:getSize();
This.Sprite:setPosition(obe.Transform.UnitVector(0, 0), obe.Transform.Referential.Center);
local base_position = obe.Transform.UnitVector(x, y, obe.Transform.Units.ScenePixels);
base_position = base_position + obe.Transform.UnitVector(sprite_size.x / 2, -sprite_size.y / 2);
if rotation then
This.Sprite:setRotation(-rotation, obe.Transform.Referential.TopLeft);
if rotation == 90 then
This.Sprite:move(obe.Transform.UnitVector(0, This.Sprite:getSize().y));
end
end
This.Collider:setPositionFromCentroid(This.Sprite:getPosition(obe.Transform.Referential.Center));
This.SceneNode:setPosition(base_position);
Object.hits = hits or 1;
Object.currentHit = 0;
Object.sound = Engine.Audio:load(
obe.System.Path("Sounds/impact.ogg"), obe.Audio.LoadPolicy.Cache
);
end
function Object:hit()
print("Hit target", Object.id);
This.Sprite:setColor(obe.Graphics.Color(100, 100, 255));
scheduleBackToNormal();
Object.sound:play();
if Object.cluster == nil then
return
end
Object.currentHit = Object.currentHit + 1
if Object.currentHit >= Object.hits then
Object.cluster:targetHit(Object.index)
end
end
function Object:setCluster(cluster, index)
Object.cluster = cluster
Object.index = index
end
function scheduleBackToNormal()
Engine.Events:schedule():after(2):run(
function()
This.Sprite:setColor(obe.Graphics.Color.White);
end
);
end
function Object:success()
if Object.cluster == nil then
return
end
Object.currentHit = 0
This.Sprite:setColor(obe.Graphics.Color(100, 255, 100));
scheduleBackToNormal();
end
function Object:failure()
if Object.cluster == nil then
return
end
Object.currentHit = 0;
This.Sprite:setColor(obe.Graphics.Color.Red);
scheduleBackToNormal();
end
|
local function check_back_space()
local col = vim.fn.col('.') - 1
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
return true
else
return false
end
end
local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
--- move to prev/next item in completion menuone
--- jump to prev/next snippet's placeholder
_G.tab_complete = function()
if vim.fn.pumvisible() == 1 then
return t "<C-n>"
elseif vim.fn.call("vsnip#available", {1}) == 1 then
return t "<Plug>(vsnip-expand-or-jump)"
elseif check_back_space() then
return t "<Tab>"
else
return vim.fn['compe#complete']()
end
end
_G.s_tab_complete = function()
if vim.fn.pumvisible() == 1 then
return t "<C-p>"
elseif vim.fn.call("vsnip#jumpable", {-1}) == 1 then
return t "<Plug>(vsnip-jump-prev)"
else
return t "<S-Tab>"
end
end
_G.expand_snip = function()
if vim.fn.call("vsnip#available", {1}) == 1 then
return t "<Plug>(vsnip-expand-or-jump)"
else
return vim.fn['compe#confirm']()
end
end
_G.on_enter = function()
if vim.fn.pumvisible() == 1 then
return vim.fn['coc#_select_confirm']()
else
return t "<C-g>u<CR><c-r>=coc#on_enter()<CR>"
end
end
_G.enhance_jk_move = function(key)
if packer_plugins['accelerated-jk'] and not packer_plugins['accelerated-jk'].loaded then
vim.cmd [[packadd accelerated-jk]]
end
local map = key == 'j' and '<Plug>(accelerated_jk_gj)' or '<Plug>(accelerated_jk_gk)'
return t(map)
end
_G.enhance_ft_move = function(key)
if not packer_plugins['vim-eft'].loaded then
vim.cmd [[packadd vim-eft]]
end
local map = {
f = '<Plug>(eft-f)',
F = '<Plug>(eft-F)',
[';'] = '<Plug>(eft-repeat)'
}
return t(map[key])
end
_G.enhance_nice_block = function (key)
if not packer_plugins['vim-niceblock'].loaded then
vim.cmd [[packadd vim-niceblock]]
end
local map = {
I = '<Plug>(niceblock-I)',
['gI'] = '<Plug>(niceblock-gI)',
A = '<Plug>(niceblock-A)'
}
return t(map[key])
end
function _G.set_terminal_keymaps()
local opts = {noremap = true}
vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts)
vim.api.nvim_buf_set_keymap(0, 't', 'jk', [[<C-\><C-n>]], opts)
vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts)
vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts)
vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts)
vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts)
end
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
vim.cmd('command! -nargs=0 Prettier :CocCommand prettier.formatFile')
|
return LoadActor(THEME:GetPathG("","_grade"),"Tier05"); |
ITEM.name = "Navy IO7A"
ITEM.description = "A basic IO7A suit colored navy camo."
ITEM.category = "Outfit"
ITEM.model = "models/tnb/stalker/items/io7a.mdl"
ITEM.width = 2
ITEM.height = 2
ITEM.outfitCategory = "model"
ITEM.pacData = {}
ITEM.newSkin = 5
ITEM.replacements = "models/tnb/stalker/male_io7a.mdl" |
generateOreItems({
name = "iron",
slurry = {
base_color = "#51898c",
flow_color = "#323535",
},
})
generateOreItems({
name = "copper",
slurry = {
base_color = "#60301b",
flow_color = "#896848",
},
})
generateOreItems({
name = "tin",
slurry = {
base_color = "#18300e",
flow_color = "#537245",
},
})
generateOreItems({
name = "gold",
slurry = {
base_color = "#3e414f",
flow_color = "#848796",
},
})
generateOreItems({
name = "scandium",
slurry = {
base_color = "#494949",
flow_color = "#b5b5b5",
},
})
|
ESX = nil
local PlayersHarvestingOrange = {}
local PlayersHarvestingGrape = {}
local PlayersWashMoney = {}
local CopsConnected = 0
AddEventHandler('esx:playerLoaded', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
end)
AddEventHandler('esx:playerDropped', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
end)
AddEventHandler('esx:setJob', function(source, job, lastJob)
end)
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
----------------------------
---------- ORANGE ----------
----------------------------
local function HarvestOrange(source)
SetTimeout(3000, function()
if PlayersHarvestingOrange[source] == true then
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer ~= nil then
local orange = xPlayer.getInventoryItem('orange')
if orange.limit ~= -1 and orange.count >= orange.limit then
TriggerClientEvent('esx:showNotification', source, _U('inv_full'))
else
xPlayer.addInventoryItem('orange', 1)
HarvestOrange(source)
end
end
end
end)
end
RegisterServerEvent('esx_various:startHarvestOrange')
AddEventHandler('esx_various:startHarvestOrange', function()
local _source = source
PlayersHarvestingOrange[_source] = true
TriggerClientEvent('esx:showNotification', _source, _U('pickup_in_prog'))
HarvestOrange(_source)
end)
RegisterServerEvent('esx_various:stopHarvestOrange')
AddEventHandler('esx_various:stopHarvestOrange', function()
local _source = source
PlayersHarvestingOrange[_source] = false
end)
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
-----////////////////////////Use Objetc////////////////////////-----
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
----------------------------
-- Utiliser Sandwich Thon --
----------------------------
ESX.RegisterUsableItem('fishburger', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('fishburger', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 300000)
TriggerClientEvent('esx_basicneeds:hamburger', source)
TriggerClientEvent('esx:showNotification', source, _U('used_FishBurger'))
end)
----------------------------
-- Utiliser Burger Viande --
----------------------------
ESX.RegisterUsableItem('ckiburger', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('ckiburger', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 350000)
TriggerClientEvent('esx_basicneeds:hamburger', source)
TriggerClientEvent('esx:showNotification', source, _U('used_ChikBurger'))
end)
----------------------------
------ Utiliser Orange -----
----------------------------
ESX.RegisterUsableItem('orange', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('orange', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_status:add', source, 'thirst', 50000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_orange'))
end)
----------------------------
------ Utiliser Raisin -----
----------------------------
ESX.RegisterUsableItem('grape', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('grape', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_status:add', source, 'thirst', 50000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_grape'))
end)
----------------------------
-- Utiliser Jus d'orange ---
----------------------------
ESX.RegisterUsableItem('orangejus', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('orangejus', 1)
TriggerClientEvent('esx_status:add', source, 'thirst', 300000)
TriggerClientEvent('esx_status:add', source, 'hunger', 150000)
TriggerClientEvent('esx_basicneeds:onDrink', source)
TriggerClientEvent('esx:showNotification', source, _U('used_orangejus'))
end)
----------------------------
-- Utiliser Jus de raisin --
----------------------------
ESX.RegisterUsableItem('grapesjus', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('grapesjus', 1)
TriggerClientEvent('esx_status:add', source, 'thirst', 300000)
TriggerClientEvent('esx_status:add', source, 'hunger', 150000)
TriggerClientEvent('esx_basicneeds:onDrink', source)
TriggerClientEvent('esx:showNotification', source, _U('used_grapesjus'))
end)
----------------------------
---- Utiliser Cigarette ----
----------------------------
ESX.RegisterUsableItem('cigaret', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('cigaret', 1)
TriggerClientEvent('esx_teamsterjob:onSmoke', source)
TriggerClientEvent('esx:showNotification', source, 'Vous avez utilisé ~g~1x ~b~Cigarette')
end)
----------------------------
---- Utiliser CorsicaCola ----
----------------------------
ESX.RegisterUsableItem('cocacola', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('cocacola', 1)
TriggerClientEvent('esx_status:add', source, 'thirst', 225000)
-- TriggerClientEvent('esx_status:add', source, 'hunger', 100000)
TriggerClientEvent('esx_teamsterjob:onDrink', source)
TriggerClientEvent('esx:showNotification', source, 'Vous avez utilisé ~g~1x ~b~Coca Cola')
end)
----------------------------
----- Utiliser Banane ------
----------------------------
ESX.RegisterUsableItem('banana', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('banana', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 160000)
TriggerClientEvent('esx_basicneeds:onEat', source)
TriggerClientEvent('esx:showNotification', source, _U('used_Banana'))
end)
----------------------------
----- UTILISER COFEE -----
----------------------------
ESX.RegisterUsableItem('coffee', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('coffee', 1)
TriggerClientEvent('esx_status:add', source, 'thirst', 50000)
TriggerClientEvent('esx_status:add', source, 'hunger', 50000)
TriggerClientEvent('esx_teamsterjob:onDrink2', source)
TriggerClientEvent('esx:showNotification', source, 'Vous avez utilisé ~g~1x ~b~Café')
end)
|
mytable = 123
yourtable = 321 |
local action = require('vfiler/extensions/action')
function action.check(extension)
extension:check()
end
function action.execute(extension)
extension:execute()
end
return action
|
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper"
-- NOTE: This *should* be generic, but might not be due to differences in MegaChip/GigaChip handling and/or library stars
return ERROR_CHECKED_SPECIFIC_GAME_WRAPPER.get_module("loadouts", GAME_ID, "draft_sm_lib_max_1") |
--author Himanshu Sharma
local Score = {}
local createdOn = nil
local scoreId = nil
local userName = nil
local facebookArrayList = require("App42-Lua-API.FacebookProfile")
local jsonDocList = require("App42-Lua-API.JSONDocument")
local value
function Score:new()
o = {}
setmetatable(o, self)
self.__index = self
return o
end
function Score:getFacebookProfile()
return self.facebookArrayList
end
function Score:setFacebookProfile(_facebookArrayList)
self.facebookArrayList = _facebookArrayList
end
function Score:getCreatedOn()
return self.createdOn
end
function Score:setCreatedOn(_createdOn)
self.createdOn = _createdOn
end
function Score:getScoreId()
return self.scoreId
end
function Score:setScoreId(_scoreId)
self.scoreId = _scoreId
end
function Score:getUserName()
return self.userName
end
function Score:setUserName(_userName)
self.userName = _userName
end
function Score:getValue()
return self.value
end
function Score:setValue(_value)
self.value = _value
end
function Score:getJsonDocList()
return self.jsonDocList
end
function Score:setJsonDocList(_jsonDocList)
self.jsonDocList = _jsonDocList
end
return Score |
local PLAYER = FindMetaTable( 'Player' )
function GM:PlayerInitialSpawn( ply )
local Data = {}
Data = ply:DataLoad()
ply:SetNick( Data.name )
ply:SetRank( Data.rank )
ply:SetFrags( Data.frags )
ply:SetDeaths( Data.deaths )
ply:SetModel( Data.model )
ply:DataSave()
player_manager.SetPlayerClass( ply, 'dm_player' )
sendMsg( ply, Color(255,0,0), '! ', Color(255,255,255), 'To take the weapon press Q' )
end
hook.Add( 'PlayerDeath', 'ply_sv', function( victim, inflictor, attacker )
if ( victim == attacker ) then
victim:SetDeaths( victim:GetDeaths() + 1 )
elseif ( not attacker:IsWorld() ) then
victim:SetDeaths( victim:GetDeaths() + 1 )
attacker:SetFrags( attacker:GetFrags() + 1 )
end
end )
function PLAYER:DataLoad()
local Data = {}
if ( file.Exists( 'dm/' .. self:UniqueID() .. '.json', 'DATA' ) ) then
Data = util.JSONToTable( file.Read( 'dm/' .. self:UniqueID() .. '.json', 'DATA' ) )
return Data
else
self:DataSave()
Data = util.JSONToTable( file.Read( 'dm/' .. self:UniqueID() .. '.json', 'DATA' ) )
Data.name = self:Nick() or LANG.GetTranslation( 'unknown' )
Data.steamid64 = self:SteamID64() or LANG.GetTranslation( 'unknown' )
Data.rank = 'user'
Data.frags = 0
Data.deaths = 0
Data.model = 'models/player/alyx.mdl'
self:DataSave()
return Data
end
end
hook.Add( 'PlayerDisconnected', 'ply_sv', function( ply )
ply:DataSave()
end )
hook.Add( 'ShutDown', 'ply_sv', function()
for k, v in pairs( player.GetAll() ) do
v:DataSave()
end
end )
|
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/10
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/resource_allocation.md
-- Item: Use Case 1: Main Flow
--
-- Requirement summary:
-- [SDL_RC] Resource allocation based on access mode
--
-- Description:
-- In case:
-- HMI didn't send OnRemoteControlSettings notifications on systems start
--
-- SDL must:
-- use default value allowed:true and accessMode = "AUTO_ALLOW" for all registered REMOTE_CONTROL applications
-- until OnRemoteControlSettings notification with other settings is received
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local runner = require('user_modules/script_runner')
local common = require("test_scripts/RC/commonRC")
--[[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false
--[[ Local Variables ]]
--modules array does not contain "RADIO" because "RADIO" module has read only parameters
local modules = { "CLIMATE", "AUDIO", "LIGHT", "HMI_SETTINGS" }
--[[ Scenario ]]
runner.Title("Preconditions")
runner.Step("Clean environment", common.preconditions)
runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
runner.Step("RAI1", common.registerAppWOPTU)
runner.Step("RAI2", common.registerAppWOPTU, { 2 })
runner.Title("Test")
for _, mod in pairs(modules) do
runner.Step("Activate App2", common.activateApp, { 2 })
runner.Step("Check module " .. mod .." App2 SetInteriorVehicleData allowed",
common.rpcAllowed, { mod, 2, "SetInteriorVehicleData" })
runner.Step("Activate App1", common.activateApp)
runner.Step("Check module " .. mod .." App1 SetInteriorVehicleData allowed",
common.rpcAllowed, { mod, 1, "SetInteriorVehicleData" })
end
runner.Title("Postconditions")
runner.Step("Stop SDL", common.postconditions)
|
-- a quick LUA access script for nginx to check IP addresses against an
-- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403.
--
-- allows for a common blacklist to be shared between a bunch of nginx
-- web servers using a remote redis instance. lookups are cached for a
-- configurable period of time.
--
-- block an ip:
-- redis-cli SADD ip_blacklist 10.1.1.1
-- remove an ip:
-- redis-cli SREM ip_blacklist 10.1.1.1
--
-- also requires lua-resty-redis from:
-- https://github.com/agentzh/lua-resty-redis
--
-- your nginx http context should contain something similar to the
-- below: (assumes resty/redis.lua exists in /etc/nginx/lua/)
--
-- lua_package_path "/etc/nginx/lua/?.lua;;";
-- lua_shared_dict ip_blacklist 1m;
--
-- you can then use the below (adjust path where necessary) to check
-- against the blacklist in a http, server, location, if context:
--
-- access_by_lua_file /etc/nginx/lua/ip_blacklist.lua;
--
-- from https://gist.github.com/chrisboulton/6043871
-- modify by Ceelog
local redis_host = ngx.var.REDIS_IP
local redis_port = ngx.var.REDIS_PORT
local redis_password = ngx.var.REDIS_PASSWORD
local redis_database = ngx.var.REDIS_DATABASE
-- connection timeout for redis in ms. don't set this too high!
local redis_connection_timeout = 100
-- cache lookups for this many seconds
local cache_ttl = 60
-- end configuration
local banned_ip_pattern = "BANNED_IP"
local ip = ngx.var.remote_addr
local pattern_ip = banned_ip_pattern .. ":" .. ip
local ip_blacklist = ngx.shared.ip_blacklist
local last_update_time = ip_blacklist:get("last_update_time");
-- only update ip_blacklist from Redis once every cache_ttl seconds:
if last_update_time == nil or last_update_time < (ngx.now() - cache_ttl) then
local redis = require "resty.redis";
local red = redis:new();
red:set_timeout(redis_connection_timeout);
local ok, err = red:connect(redis_host, redis_port);
if not ok then
ngx.log(ngx.DEBUG, "Redis connection error while retrieving ip_blacklist: " .. err);
else
local res, err = red:auth(redis_password)
if not res then
ngx.log(ngx.DEBUG, "Failed to authenticate: ", err);
else
local ok, err = red:select(redis_database);
if not ok then
ngx.log(ngx.DEBUG, "Failed to select database: ", err);
else
local new_ip_blacklist, err = red:scan("0", "match", banned_ip_pattern .. ":*", "count", "1000")
if not new_ip_blacklist then
ngx.log(ngx.DEBUG, "failed to scan: " .. err);
else
local cursor, new_ip_blacklist, err = unpack(new_ip_blacklist)
if err then
ngx.log(ngx.DEBUG, "Redis read error while retrieving ip_blacklist: " .. err);
else
-- replace the locally stored ip_blacklist with the updated values:
ip_blacklist:flush_all();
for index, banned_ip in ipairs(new_ip_blacklist) do
ip_blacklist:set(banned_ip, true);
ngx.log(ngx.DEBUG, "Banned IP added: " .. banned_ip);
end
-- update time
ip_blacklist:set("last_update_time", ngx.now());
end
end
end
end
end
end
if ip_blacklist:get(pattern_ip) then
ngx.log(ngx.DEBUG, "Banned IP detected and refused access: " .. ip);
return ngx.exit(ngx.HTTP_FORBIDDEN);
end |
return require("installer/integrations/ls/helpers").npm.builder({
install_package = "emmet-ls",
lang = "emmet_ls",
bin_name = "emmet-ls",
inherit_lspconfig = false,
config = {
default_config = {
cmd = { "emmet-ls", "--stdio" },
filetypes = { "html", "css" },
root_dir = function(fname)
return vim.loop.cwd()
end,
settings = {},
},
},
})
|
return Def.ActorFrame {
--p1
LoadActor( "Back" )..{
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH,480);
OnCommand=cmd(addx,-SCREEN_WIDTH;sleep,0.5;accelerate,0.5;addx,SCREEN_WIDTH);
OffCommand=cmd(sleep,0.2;accelerate,0.5;addx,SCREEN_WIDTH);
};
LoadActor( "Explanation" )..{
InitCommand=cmd(visible,GAMESTATE:IsHumanPlayer(PLAYER_1);x,SCREEN_CENTER_X-300;y,SCREEN_CENTER_Y+150;halign,0);
OnCommand=cmd(addx,-SCREEN_WIDTH;sleep,0.5;accelerate,0.5;addx,SCREEN_WIDTH);
OffCommand=cmd(sleep,0.2;accelerate,0.5;addx,SCREEN_WIDTH);
};
--p2
LoadActor( "Explanation" )..{
InitCommand=cmd(visible,GAMESTATE:IsHumanPlayer(PLAYER_2);x,SCREEN_CENTER_X+300;y,SCREEN_CENTER_Y+150;halign,0;zoomx,-1);
OnCommand=cmd(addx,-SCREEN_WIDTH;sleep,0.5;accelerate,0.5;addx,SCREEN_WIDTH);
OffCommand=cmd(sleep,0.2;accelerate,0.5;addx,SCREEN_WIDTH);
};
} |
local wrap, yield = coroutine.wrap, coroutine.yield
local Iterable = require('iterables/Iterable')
local TableIterable = require('class')('TableIterable', Iterable)
function TableIterable:__init(tbl, map)
self._tbl = tbl
self._map = map
end
function TableIterable:iter()
local tbl = self._tbl
if not tbl then
return function()
return nil
end
end
local map = self._map
if map then
return wrap(function()
for _, v in pairs(tbl) do
local obj = map(v)
if obj then
yield(obj)
end
end
end)
else
local k, v
return function()
k, v = next(tbl, k)
return v
end
end
end
return TableIterable
|
local K, C, L = unpack(KkthnxUI)
tinsert(C.defaultThemes, function()
local LootFrame = _G.LootFrame
LootFrame:StripTextures()
LootFrame:CreateBorder()
LootFrameCloseButton:SkinCloseButton()
LootFrame:SetHeight(LootFrame:GetHeight() - 30)
LootFramePortraitOverlay:SetParent(K.UIFrameHider)
for i = 1, LootFrame:GetNumRegions() do
local region = select(i, LootFrame:GetRegions())
if region:IsObjectType("FontString") then
if region:GetText() == ITEMS then
LootFrame.Title = region
end
end
end
LootFrame.Title:ClearAllPoints()
LootFrame.Title:SetPoint("TOPLEFT", LootFrame, "TOPLEFT", 4, -4)
LootFrame.Title:SetJustifyH("LEFT")
for i = 1, _G.LOOTFRAME_NUMBUTTONS do
local button = _G["LootButton" .. i]
_G["LootButton" .. i .. "NameFrame"]:Hide()
_G["LootButton" .. i .. "IconQuestTexture"]:SetParent(K.UIFrameHider)
button:StripTextures()
button:CreateBorder()
button:StyleButton()
button.icon:SetTexCoord(unpack(K.TexCoords))
button.IconBorder:SetAlpha(0)
local point, attachTo, point2, x, y = button:GetPoint()
button:ClearAllPoints()
button:SetPoint(point, attachTo, point2, x, y + 30)
end
hooksecurefunc("LootFrame_UpdateButton", function(index)
local numLootItems = LootFrame.numLootItems
-- Logic to determine how many items to show per page
local numLootToShow = _G.LOOTFRAME_NUMBUTTONS
if LootFrame.AutoLootTable then
numLootItems = #LootFrame.AutoLootTable
end
if numLootItems > _G.LOOTFRAME_NUMBUTTONS then
numLootToShow = numLootToShow - 1 -- make space for the page buttons
end
local button = _G["LootButton" .. index]
local slot = (numLootToShow * (LootFrame.page - 1)) + index
local quality = select(5, GetLootSlotInfo(slot))
local color = K.QualityColors[quality or 1]
if button and button:IsShown() then
local texture, _, isQuestItem, questId, isActive
if LootFrame.AutoLootTable then
local entry = LootFrame.AutoLootTable[slot]
if entry.hide then
button:Hide()
return
else
texture = entry.texture
isQuestItem = entry.isQuestItem
questId = entry.questId
isActive = entry.isActive
end
else
texture, _, _, _, _, isQuestItem, questId, isActive = GetLootSlotInfo(slot)
end
if texture then
if questId and not isActive then
K.ShowButtonGlow(button)
button.KKUI_Border:SetVertexColor(1, 1, 0)
elseif questId or isQuestItem then
K.ShowButtonGlow(button)
button.KKUI_Border:SetVertexColor(1, 1, 0)
else
K.HideButtonGlow(button)
button.KKUI_Border:SetVertexColor(color.r, color.g, color.b)
end
end
end
end)
LootFrame:HookScript("OnShow", function(s)
if IsFishingLoot() then
s.Title:SetText(L["Fishy Loot"])
elseif not UnitIsFriend("player", "target") and UnitIsDead("target") then
s.Title:SetText(UnitName("target"))
else
s.Title:SetText(LOOT)
end
end)
K.ReskinArrow(LootFrameUpButton, "up")
K.ReskinArrow(LootFrameDownButton, "down")
end)
|
data.raw["solar-panel"]["solar-panel"].fast_replaceable_group = "solar-panel"
data:extend(
{
{
type = "solar-panel",
name = "solar-panel-mk2",
icon_size = 32,
icon = "__FactorioExtended-Power__/graphics/icons/solar-panel-mk2.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-mk2"},
max_health = 400,
fast_replaceable_group = "solar-panel",
corpse = "big-remnants",
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
energy_source =
{
type = "electric",
usage_priority = "solar"
},
picture =
{
layers =
{
{
filename = "__FactorioExtended-Power__/graphics/entity/solar-panel/solar-panel-mk2.png",
priority = "high",
width = 116,
height = 112,
shift = util.by_pixel(-3, 3),
hr_version = {
filename = "__FactorioExtended-Power__/graphics/entity/solar-panel/hr-solar-panel-mk2.png",
priority = "high",
width = 230,
height = 224,
shift = util.by_pixel(-3, 3.5),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/solar-panel/solar-panel-shadow.png",
priority = "high",
width = 112,
height = 90,
shift = util.by_pixel(10, 6),
draw_as_shadow = true,
hr_version = {
filename = "__base__/graphics/entity/solar-panel/hr-solar-panel-shadow.png",
priority = "high",
width = 220,
height = 180,
shift = util.by_pixel(9.5, 6),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
overlay =
{
layers =
{
{
filename = "__base__/graphics/entity/solar-panel/solar-panel-shadow-overlay.png",
priority = "high",
width = 108,
height = 90,
shift = util.by_pixel(11, 6),
hr_version = {
filename = "__base__/graphics/entity/solar-panel/hr-solar-panel-shadow-overlay.png",
priority = "high",
width = 214,
height = 180,
shift = util.by_pixel(10.5, 6),
scale = 0.5
}
}
}
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
production = "240kW"
},
{
type = "solar-panel",
name = "solar-panel-mk3",
icon_size = 32,
icon = "__FactorioExtended-Power__/graphics/icons/solar-panel-mk3.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-mk3"},
max_health = 600,
fast_replaceable_group = "solar-panel",
corpse = "big-remnants",
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
energy_source =
{
type = "electric",
usage_priority = "solar"
},
picture =
{
layers =
{
{
filename = "__FactorioExtended-Power__/graphics/entity/solar-panel/solar-panel-mk3.png",
priority = "high",
width = 116,
height = 112,
shift = util.by_pixel(-3, 3),
hr_version = {
filename = "__FactorioExtended-Power__/graphics/entity/solar-panel/hr-solar-panel-mk3.png",
priority = "high",
width = 230,
height = 224,
shift = util.by_pixel(-3, 3.5),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/solar-panel/solar-panel-shadow.png",
priority = "high",
width = 112,
height = 90,
shift = util.by_pixel(10, 6),
draw_as_shadow = true,
hr_version = {
filename = "__base__/graphics/entity/solar-panel/hr-solar-panel-shadow.png",
priority = "high",
width = 220,
height = 180,
shift = util.by_pixel(9.5, 6),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
overlay =
{
layers =
{
{
filename = "__base__/graphics/entity/solar-panel/solar-panel-shadow-overlay.png",
priority = "high",
width = 108,
height = 90,
shift = util.by_pixel(11, 6),
hr_version = {
filename = "__base__/graphics/entity/solar-panel/hr-solar-panel-shadow-overlay.png",
priority = "high",
width = 214,
height = 180,
shift = util.by_pixel(10.5, 6),
scale = 0.5
}
}
}
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
production = "960kW"
}
}) |
--
-- Created by IntelliJ IDEA.
-- User: gaoyangang
-- Date: 16-10-22
-- Time: 下午2:48
-- To change this template use File | Settings | File Templates.
--
local http = require("socket.http")
local md5 = require("md5")
print(md5.sumhexa("123456789"))
b, c, h = http.request("http://www.baidu.com")
--print(b)
--print(c)
--print(h)
|
-------------------------------------------------------------------------------
-- Importing module
-------------------------------------------------------------------------------
local Selector = require "elasticsearch.selector.Selector"
-------------------------------------------------------------------------------
-- Declaring module
-------------------------------------------------------------------------------
local RoundRobinSelector = Selector:new()
-------------------------------------------------------------------------------
-- Declaring instance variables
-------------------------------------------------------------------------------
RoundRobinSelector.index = 0
-------------------------------------------------------------------------------
-- Selects the next connection from the list in round robin fashion
--
-- @param connections A table of connections
-- @return Connection The connection selected
-------------------------------------------------------------------------------
function RoundRobinSelector:selectNext(connections)
self.index = self.index + 1
self.index = self.index % #connections
if self.index == 0 then
self.index = #connections
end
return connections[self.index]
end
-------------------------------------------------------------------------------
-- Returns an instance of RoundRobinSelector class
-------------------------------------------------------------------------------
function RoundRobinSelector:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
return RoundRobinSelector
|
tileset = class("tileset")
function tileset:initialize(path)
self.set = love.graphics.newImage("assets/gfx/tilesets/"..path)
self.quads = {}
for i=0, 9 do
local quad = love.graphics.newQuad(15*i, 0, 15, 15, self.set:getWidth(), self.set:getHeight())
table.insert(self.quads, quad)
end
end |
-- Custom
local prop_TournamentMgr = script:GetCustomProperty("_TournamentMgr")
local Tournament = require(prop_TournamentMgr)
local tourney = Tournament.New()
function SubmitScores()
print("submitting scores")
for k,p in pairs(tourney:GetActivePlayers()) do
local score = math.random(1, 100)
print("for", p, score)
tourney:SubmitScore(p, score)
end
end
Game.playerJoinedEvent:Connect(function(player)
player.bindingPressedEvent:Connect(function (player, binding)
if binding == "ability_extra_1" then
--tourney:AddAllPlayers()
tourney:AddDummyPlayers(20)
elseif binding == "ability_extra_2" then
tourney:GenerateMatches()
elseif binding == "ability_extra_3" then
SubmitScores()
elseif binding == "ability_extra_4" then
print(tourney:DebugPrint())
elseif binding == "ability_extra_5" then
local t = Tournament.New()
t:AddDummyPlayers(21)
while not t.isComplete do
t:GenerateMatches()
for k,p in pairs(t:GetActivePlayers()) do
t:SubmitScore(p, math.random(1, 100))
end
Task.Wait()
end
print(t:DebugPrint())
end
end)
end)
|
return setmetatable({},{
__index = function(self, key: string)
return game.GetService(game, key) or nil
end
}) |
local M = {}
function M.get(cp)
local hi = {
IndentBlanklineChar = { fg = cp.surface0 },
IndentBlanklineContextChar = { fg = cp.text },
}
if cnf.integrations.indent_blankline.colored_indent_levels then
hi["IndentBlanklineIndent6"] = {blend = "nocombine", fg = cp.yellow}
hi["IndentBlanklineIndent5"] = {blend = "nocombine", fg = cp.red}
hi["IndentBlanklineIndent4"] = {blend = "nocombine", fg = cp.teal}
hi["IndentBlanklineIndent3"] = {blend = "nocombine", fg = cp.peach}
hi["IndentBlanklineIndent2"] = {blend = "nocombine", fg = cp.blue}
hi["IndentBlanklineIndent1"] = {blend = "nocombine", fg = cp.pink}
end
return hi
end
return M
|
--[[ DUMPED USING COMPOSER DEVIL ]]--
Config = {}
Config.Locale = 'en'
-- Set the time (in minutes) during the player is outlaw
Config.Timer = 1
-- Set if show alert when player use gun
Config.GunshotAlert = true
-- Polisler zor durumdayken bildirim
Config.PoliceCode = true
-- Polisler zor durumdayken bildirim
Config.PoliceCodeRadius = 100.0
-- Polisler zor durumdayken bildirim
Config.PoliceCodeTime = 25
Config.EvSoymaRadius = 50.0
-- Set if show when player do carjacking
Config.CarJackingAlert = true
-- Set if show when player fight in melee
Config.MeleeAlert = true
-- In seconds
Config.BlipGunTime = 25
-- Blip radius, in float value!
Config.BlipGunRadius = 50.0
-- In seconds
Config.BlipMeleeTime = 7
-- Blip radius, in float value!
Config.BlipMeleeRadius = 50.0
-- In seconds
Config.BlipJackingTime = 15
-- Blip radius, in float value!
Config.BlipJackingRadius = 50.0
-- Show notification when cops steal too?
Config.ShowCopsMisbehave = false
-- Jobs in this table are considered as cops
Config.WhitelistedCops = {
'sheriff',
"ambulance",
"fbi"
}
--[[ DUMPED USING COMPOSER DEVIL ]]-- |
require("lib_gamesense")
local imageLib = require( "lib_image" )
local icons_statusIndicators = imageLib.load(require("imagepack_battlefield"))
-- [About]------------------------------------------------------------------------------------------------------------------------------------------------------
-- Made by w7rus (Astolfo)
-- [Configuration] --------------------------------------------------------------- [Description] ---------------------------------------------------------------
b_statusIndicators_enable = true -- <true/false> Master Switch
b_statusIndicators_highLatency = true -- <true/false> Show high latency indicator
b_statusIndicators_latencyVariation = true -- <true/false> Show latency variation indicator
b_statusIndicators_lowfps = true -- <true/false> Show low FPS indicator
b_statusIndicators_packetLoss = true -- <true/false> Show packet loss indicator (Unavailable, no way to get data)
b_statusIndicators_refreshRate = true -- <true/false> Show refresh rate indicator
b_statusIndicators_serverPerformance = true -- <true/false> Show server performance indicator (Unavailable, shows client performance)
i_statusIndicators_highLatency_limitLevel1 = 80 -- <0 ... 1000> Show indicator in color of Level 1 when exceeding the set limit (in msec.)
i_statusIndicators_highLatency_limitLevel2 = 95 -- <0 ... 1000> Show indicator in color of Level 2 when exceeding the set limit (in msec.)
i_statusIndicators_highLatency_limitLevel3 = 110 -- <0 ... 1000> Show indicator in color of Level 3 when exceeding the set limit (in msec.)
i_statusIndicators_latencyVariation_limitLevel1 = 10 -- <0 ... 1000> Show indicator in color of Level 1 when exceeding the set limit (in msec.)
i_statusIndicators_latencyVariation_limitLevel2 = 20 -- <0 ... 1000> Show indicator in color of Level 2 when exceeding the set limit (in msec.)
i_statusIndicators_latencyVariation_limitLevel3 = 30 -- <0 ... 1000> Show indicator in color of Level 3 when exceeding the set limit (in msec.)
i_statusIndicators_latencyVariation_history = 10 -- <0 ... +inf> Amount of latency values to track for latency delta
i_statusIndicators_lowfps_limitLevel1 = 75 -- <1 ... +inf> Amount of frames to show indicator in color of Level 1 when exceeding the set limit
i_statusIndicators_lowfps_limitLevel2 = 60 -- <1 ... +inf> Amount of frames to show indicator in color of Level 2 when exceeding the set limit
i_statusIndicators_lowfps_limitLevel3 = 30 -- <1 ... +inf> Amount of frames to show indicator in color of Level 3 when exceeding the set limit
f_statusIndicators_packetLoss_limitLevel1 = 0.01 -- <0.(0)1 ... 100.0> Show indicator in color of Level 1 when exceeding the set limit (in %)
f_statusIndicators_packetLoss_limitLevel2 = 0.1 -- <0.(0)1 ... 100.0> Show indicator in color of Level 2 when exceeding the set limit (in %)
f_statusIndicators_packetLoss_limitLevel3 = 0.5 -- <0.(0)1 ... 100.0> Show indicator in color of Level 3 when exceeding the set limit (in %)
i_statusIndicators_refreshRate_hz = 120 -- <1 ... +inf> Set your screen refresh rate (in Hz.)
f_statusIndicators_serverPerformance_limitLevel1 = 15 -- <0.0 ... +inf> Show indicator in color of Level 1 when exceeding the set limit
f_statusIndicators_serverPerformance_limitLevel2 = 50 -- <0.0 ... +inf> Show indicator in color of Level 2 when exceeding the set limit
f_statusIndicators_serverPerformance_limitLevel3 = 100 -- <0.0 ... +inf> Show indicator in color of Level 3 when exceeding the set limit
t_statusIndicators_highLatency_colorLevel1 = {255, 255, 255, 255}
t_statusIndicators_highLatency_colorLevel2 = {235, 143, 6, 255}
t_statusIndicators_highLatency_colorLevel3 = {225, 66, 11, 255}
t_statusIndicators_highLatency_colorLevelKeep = {225, 255, 255, 32}
t_statusIndicators_latencyVariation_colorLevel1 = {255, 255, 255, 255}
t_statusIndicators_latencyVariation_colorLevel2 = {235, 143, 6, 255}
t_statusIndicators_latencyVariation_colorLevel3 = {225, 66, 11, 255}
t_statusIndicators_latencyVariation_colorLevelKeep = {225, 255, 255, 32}
t_statusIndicators_lowfps_colorLevel1 = {255, 255, 255, 255}
t_statusIndicators_lowfps_colorLevel2 = {235, 143, 6, 255}
t_statusIndicators_lowfps_colorLevel3 = {225, 66, 11, 255}
t_statusIndicators_lowfps_colorLevelKeep = {225, 255, 255, 32}
t_statusIndicators_packetLoss_colorLevel1 = {255, 255, 255, 255}
t_statusIndicators_packetLoss_colorLevel2 = {235, 143, 6, 255}
t_statusIndicators_packetLoss_colorLevel3 = {225, 66, 11, 255}
t_statusIndicators_packetLoss_colorLevelKeep = {225, 255, 255, 32}
t_statusIndicators_refreshRate_colorLevel1 = {255, 255, 255, 255}
t_statusIndicators_refreshRate_colorLevel2 = {235, 143, 6, 255}
t_statusIndicators_refreshRate_colorLevel3 = {225, 66, 11, 255}
t_statusIndicators_refreshRate_colorLevelKeep = {225, 255, 255, 32}
t_statusIndicators_serverPerformance_colorLevel1 = {255, 255, 255, 255}
t_statusIndicators_serverPerformance_colorLevel2 = {235, 143, 6, 255}
t_statusIndicators_serverPerformance_colorLevel3 = {225, 66, 11, 255}
t_statusIndicators_serverPerformance_colorLevelKeep = {225, 255, 255, 32}
f_statusIndicators_keep = 5.0 -- <0.0 ... +inf> Keep drawing indicator in color of "Level Keep" after normalization for given amount of time (in sec.)
-- ["Do not edit below this line"] -----------------------------------------------------------------------------------------------------------------------------
-- [Calculated configuration] ----------------------------------------------------------------------------------------------------------------------------------
entIndex_localEntCCSPlayer = entity.get_local_player()
i_esp_drawScreenWidth,
i_esp_drawScreenHeight = client.screen_size()
g_tickRate = 1 / globals.tickinterval()
i_statusIndicators_refreshRate_limitLevel1 = g_tickRate
i_statusIndicators_refreshRate_limitLevel2 = g_tickRate / 2
i_statusIndicators_refreshRate_limitLevel3 = g_tickRate / 4
g_frameRate = 0.0
t_statusIndicators_latencyVariation_history = {}
i_statusIndicators_latencyVariation_history_tickStamp = 0
i_statusIndicators_highLatency_tickStamp = 0
i_statusIndicators_latencyVariation_tickStamp = 0
i_statusIndicators_lowfps_tickStamp = 0
i_statusIndicators_packetLoss_tickStamp = 0
i_statusIndicators_refreshRate_tickStamp = 0
i_statusIndicators_serverPerformance_tickStamp = 0
-- [Functions] -------------------------------------------------------------------------------------------------------------------------------------------------
local function get_abs_fps()
g_frameRate = 0.9 * g_frameRate + (1.0 - 0.9) * globals.absoluteframetime()
return math.floor((1.0 / g_frameRate) + 0.5)
end
local function set_globals()
g_tickRate = 1 / globals.tickinterval()
i_statusIndicators_refreshRate_limitLevel1 = g_tickRate
i_statusIndicators_refreshRate_limitLevel2 = g_tickRate / 2
i_statusIndicators_refreshRate_limitLevel3 = g_tickRate / 4
i_statusIndicators_highLatency_tickStamp = 0
i_statusIndicators_latencyVariation_tickStamp = 0
i_statusIndicators_lowfps_tickStamp = 0
i_statusIndicators_packetLoss_tickStamp = 0
i_statusIndicators_refreshRate_tickStamp = 0
i_statusIndicators_serverPerformance_tickStamp = 0
end
local function func_statusIndicators_draw()
local i_statusIndicators_drawPosX, i_statusIndicators_drawPosY = math.floor(i_esp_drawScreenWidth * 0.9), math.floor(i_esp_drawScreenHeight * 0.1)
local i_statusIndicators_current_tickStamp = globals.tickcount()
if b_statusIndicators_highLatency then
local color = {}
local obj_localEntCCSPlayer = Playerresource(entIndex_localEntCCSPlayer)
local latency = obj_localEntCCSPlayer:get_ping()
if latency <= i_statusIndicators_highLatency_limitLevel1 then
color = t_statusIndicators_highLatency_colorLevelKeep
end
if latency > i_statusIndicators_highLatency_limitLevel1 then
color = t_statusIndicators_highLatency_colorLevel1
i_statusIndicators_highLatency_tickStamp = i_statusIndicators_current_tickStamp
end
if latency > i_statusIndicators_highLatency_limitLevel2 then
color = t_statusIndicators_highLatency_colorLevel2
i_statusIndicators_highLatency_tickStamp = i_statusIndicators_current_tickStamp
end
if latency > i_statusIndicators_highLatency_limitLevel3 then
color = t_statusIndicators_highLatency_colorLevel3
i_statusIndicators_highLatency_tickStamp = i_statusIndicators_current_tickStamp
end
if
latency > i_statusIndicators_highLatency_limitLevel1
or
i_statusIndicators_current_tickStamp < i_statusIndicators_highLatency_tickStamp + f_statusIndicators_keep * g_tickRate
then
-- renderer.text(i_statusIndicators_drawPosX + 72, i_statusIndicators_drawPosY + 32, 255, 255, 255, 255, nil, 0, latency)
icons_statusIndicators["high_latency"]:draw(i_statusIndicators_drawPosX, i_statusIndicators_drawPosY, 64, 64, color[1], color[2], color[3], color[4])
end
end
if b_statusIndicators_latencyVariation then
local color = {}
local obj_localEntCCSPlayer = Playerresource(entIndex_localEntCCSPlayer)
local latency = obj_localEntCCSPlayer:get_ping()
if i_statusIndicators_current_tickStamp - i_statusIndicators_latencyVariation_history_tickStamp >= g_tickRate then
table.insert(t_statusIndicators_latencyVariation_history, latency)
i_statusIndicators_latencyVariation_history_tickStamp = i_statusIndicators_current_tickStamp
end
if #t_statusIndicators_latencyVariation_history > i_statusIndicators_latencyVariation_history then
table.remove(t_statusIndicators_latencyVariation_history, 1)
end
latencyMax = math.max(unpack(t_statusIndicators_latencyVariation_history))
latencyMin = math.min(unpack(t_statusIndicators_latencyVariation_history))
latencyDelta = latencyMax - latencyMin
if latencyDelta <= i_statusIndicators_latencyVariation_limitLevel1 then
color = t_statusIndicators_latencyVariation_colorLevelKeep
end
if latencyDelta > i_statusIndicators_latencyVariation_limitLevel1 then
color = t_statusIndicators_latencyVariation_colorLevel1
i_statusIndicators_latencyVariation_tickStamp = i_statusIndicators_current_tickStamp
end
if latencyDelta > i_statusIndicators_latencyVariation_limitLevel2 then
color = t_statusIndicators_latencyVariation_colorLevel2
i_statusIndicators_latencyVariation_tickStamp = i_statusIndicators_current_tickStamp
end
if latencyDelta > i_statusIndicators_latencyVariation_limitLevel3 then
color = t_statusIndicators_latencyVariation_colorLevel3
i_statusIndicators_latencyVariation_tickStamp = i_statusIndicators_current_tickStamp
end
if
latencyDelta > i_statusIndicators_latencyVariation_limitLevel1
or
i_statusIndicators_current_tickStamp < i_statusIndicators_latencyVariation_tickStamp + f_statusIndicators_keep * g_tickRate
then
-- renderer.text(i_statusIndicators_drawPosX + 72, i_statusIndicators_drawPosY + 72 * 2 + 32, 255, 255, 255, 255, nil, 0, latencyDelta)
icons_statusIndicators["latency_variation"]:draw(i_statusIndicators_drawPosX, i_statusIndicators_drawPosY + 72 * 2, 64, 64, color[1], color[2], color[3], color[4])
end
end
if b_statusIndicators_lowfps then
local color = {}
local abs_fps = get_abs_fps()
if abs_fps >= i_statusIndicators_lowfps_limitLevel3 then
color = t_statusIndicators_lowfps_colorLevelKeep
end
if abs_fps < i_statusIndicators_lowfps_limitLevel1 then
color = t_statusIndicators_lowfps_colorLevel1
i_statusIndicators_lowfps_tickStamp = i_statusIndicators_current_tickStamp
end
if abs_fps < i_statusIndicators_lowfps_limitLevel2 then
color = t_statusIndicators_lowfps_colorLevel2
i_statusIndicators_lowfps_tickStamp = i_statusIndicators_current_tickStamp
end
if abs_fps < i_statusIndicators_lowfps_limitLevel3 then
color = t_statusIndicators_lowfps_colorLevel3
i_statusIndicators_lowfps_tickStamp = i_statusIndicators_current_tickStamp
end
if
abs_fps < i_statusIndicators_lowfps_limitLevel1
or
i_statusIndicators_current_tickStamp < i_statusIndicators_lowfps_tickStamp + f_statusIndicators_keep * g_tickRate
then
-- renderer.text(i_statusIndicators_drawPosX + 72, i_statusIndicators_drawPosY + 72 * 3 + 32, 255, 255, 255, 255, nil, 0, abs_fps)
icons_statusIndicators["low_fps"]:draw(i_statusIndicators_drawPosX, i_statusIndicators_drawPosY + 72 * 3, 64, 64, color[1], color[2], color[3], color[4])
end
end
if b_statusIndicators_packetLoss then
end
if b_statusIndicators_refreshRate then
local color = {}
local refreshrate = math.min(i_statusIndicators_refreshRate_hz, get_abs_fps())
if refreshrate >= i_statusIndicators_refreshRate_limitLevel1 then
color = t_statusIndicators_refreshRate_colorLevelKeep
end
if refreshrate < i_statusIndicators_refreshRate_limitLevel1 then
color = t_statusIndicators_refreshRate_colorLevel1
i_statusIndicators_refreshRate_tickStamp = i_statusIndicators_current_tickStamp
end
if refreshrate < i_statusIndicators_refreshRate_limitLevel2 then
color = t_statusIndicators_refreshRate_colorLevel2
i_statusIndicators_refreshRate_tickStamp = i_statusIndicators_current_tickStamp
end
if refreshrate < i_statusIndicators_refreshRate_limitLevel3 then
color = t_statusIndicators_refreshRate_colorLevel3
i_statusIndicators_refreshRate_tickStamp = i_statusIndicators_current_tickStamp
end
if
refreshrate < i_statusIndicators_refreshRate_limitLevel1
or
i_statusIndicators_current_tickStamp < i_statusIndicators_refreshRate_tickStamp + f_statusIndicators_keep * g_tickRate
then
-- renderer.text(i_statusIndicators_drawPosX + 72, i_statusIndicators_drawPosY + 72 * 5 + 32, 255, 255, 255, 255, nil, 0, refreshrate)
icons_statusIndicators["refresh_rate"]:draw(i_statusIndicators_drawPosX, i_statusIndicators_drawPosY + 72 * 5, 64, 64, color[1], color[2], color[3], color[4])
end
end
if b_statusIndicators_serverPerformance then
local clientperformance = globals.absoluteframetime() * 1000
local color = {}
if clientperformance <= f_statusIndicators_serverPerformance_limitLevel1 then
color = t_statusIndicators_serverPerformance_colorLevelKeep
end
if clientperformance > f_statusIndicators_serverPerformance_limitLevel1 then
color = t_statusIndicators_serverPerformance_colorLevel1
i_statusIndicators_serverPerformance_tickStamp = i_statusIndicators_current_tickStamp
end
if clientperformance > f_statusIndicators_serverPerformance_limitLevel2 then
color = t_statusIndicators_serverPerformance_colorLevel2
i_statusIndicators_serverPerformance_tickStamp = i_statusIndicators_current_tickStamp
end
if clientperformance > f_statusIndicators_serverPerformance_limitLevel3 then
color = t_statusIndicators_serverPerformance_colorLevel3
i_statusIndicators_serverPerformance_tickStamp = i_statusIndicators_current_tickStamp
end
if
clientperformance > f_statusIndicators_serverPerformance_limitLevel1
or
i_statusIndicators_current_tickStamp < i_statusIndicators_serverPerformance_tickStamp + f_statusIndicators_keep * g_tickRate
then
-- renderer.text(i_statusIndicators_drawPosX + 72, i_statusIndicators_drawPosY + 72 * 6 + 32, 255, 255, 255, 255, nil, 0, string.format("%.2f", clientperformance))
icons_statusIndicators["server_performance"]:draw(i_statusIndicators_drawPosX, i_statusIndicators_drawPosY + 72 * 6, 64, 64, color[1], color[2], color[3], color[4])
end
end
end
if b_statusIndicators_enable then
client.set_event_callback("paint", func_statusIndicators_draw)
client.set_event_callback("player_connect_full", set_globals)
end
-- [End of file] ------------------------------------------------------------------------------------------------------------------------------------------------- |
--[[
Retrieves at most one child from the children passed to a component.
If passed nil or an empty table, will return nil.
Throws an error if passed more than one child.
]]
local function oneChild(children)
if not children then
return nil
end
local key, child = next(children)
if not child then
return nil
end
local after = next(children, key)
if after then
error("Expected at most child, had more than one child.", 2)
end
return child
end
return oneChild
|
BLTNotificationsManager = BLTNotificationsManager or class()
function BLTNotificationsManager:init()
self._notifications = {}
self._uid = 1000
end
function BLTNotificationsManager:_get_uid()
local uid = self._uid
self._uid = uid + 1
return uid
end
function BLTNotificationsManager:_get_notification(uid)
for i, data in ipairs(self._notifications) do
if data.id == uid then
return self._notifications[i], i
end
end
return nil, -1
end
function BLTNotificationsManager:get_notifications()
return self._notifications
end
function BLTNotificationsManager:add_notification(parameters)
-- Create and store the notification
local data = {
id = self:_get_uid(),
title = parameters.title or "No Title",
text = parameters.text or "",
icon = parameters.icon,
icon_texture_rect = parameters.icon_texture_rect,
color = parameters.color,
priority = parameters.priority or (id * -1)
}
table.insert(self._notifications, data)
-- Add the notification immediately if the gui is visible
local notifications = managers.menu_component.blt_notifications
if notifications then
notifications:add_notification(data)
end
return data.id
end
function BLTNotificationsManager:remove_notification(uid)
-- Remove the notification
local _, idx = self:_get_notification(uid)
if idx > 0 then
table.remove(self._notifications, idx)
-- Update the ui
local notifications = managers.menu_component.blt_notifications
if notifications then
notifications:remove_notification(uid)
end
end
end
--------------------------------------------------------------------------------
-- BLT legacy support
-- Not complete support, replace if you use this in a mod
NotificationsManager = NotificationsManager or {}
function NotificationsManager:GetNotifications()
return BLT.Notifications:get_notifications()
end
function NotificationsManager:GetCurrentNotification()
return BLT.Notifications:get_notifications()[1]
end
function NotificationsManager:GetCurrentNotificationIndex()
return 1
end
function NotificationsManager:AddNotification(id, title, message, priority, callback)
self._legacy_ids = self._legacy_ids or {}
local new_id = BLT.Notifications:add_notification({
title = title,
text = message,
priority = priority
})
self._legacy_ids[id] = new_id
end
function NotificationsManager:UpdateNotification(id, new_title, new_message, new_priority, new_callback)
self._legacy_ids = self._legacy_ids or {}
self:RemoveNotification(id)
self:AddNotification(id, new_title, new_message, new_priority, new_callback)
end
function NotificationsManager:RemoveNotification(id)
self._legacy_ids = self._legacy_ids or {}
if self._legacy_ids[id] then
BLT.Notifications:remove_notification(self._legacy_ids[id])
self._legacy_ids[id] = nil
end
end
function NotificationsManager:ClearNotifications()
self._legacy_ids = self._legacy_ids or {}
for id, new_id in pairs(self._legacy_ids) do
BLT.Notifications:remove_notification(new_id)
end
end
function NotificationsManager:NotificationExists(id)
self._legacy_ids = self._legacy_ids or {}
return self._legacy_ids[id] ~= nil
end
function NotificationsManager:ShowNextNotification(suppress_sound)
BLT:Log(LogLevel.ERROR, "BLTNotifications", "NotificationsManager.ShowNextNotification is no longer supported.")
end
function NotificationsManager:ShowPreviousNotification(suppress_sound)
BLT:Log(LogLevel.ERROR, "BLTNotifications", "NotificationsManager.ShowPreviousNotification is no longer supported.")
end
function NotificationsManager:ClickNotification(suppress_sound)
BLT:Log(LogLevel.ERROR, "BLTNotifications", "NotificationsManager.ClickNotification is no longer supported.")
end
function NotificationsManager:MarkNotificationAsRead(id)
BLT:Log(LogLevel.ERROR, "BLTNotifications", "NotificationsManager.MarkNotificationAsRead is no longer supported.")
end |
local objmask = {}
function objmask.demo()
--Set a very visible color for the screen to clearly see what happens*/
-- lvgl.obj_set_style_local_bg_color(lvgl.scr_act(), lvgl.OBJ_PART_MAIN, lvgl.STATE_DEFAULT, lvgl.color_hex3(0xf33));
-- local om = lvgl.objmask_create(lvgl.scr_act(), nil);
-- lvgl.obj_set_size(om, 200, 200);
-- lvgl.obj_align(om, nil, lvgl.ALIGN_CENTER, 0, 0);
-- local label = lvgl.label_create(om, nil);
-- lvgl.label_set_long_mode(label, lvgl.LABEL_LONG_BREAK);
-- lvgl.label_set_align(label, lvgl.LABEL_ALIGN_CENTER);
-- lvgl.obj_set_width(label, 180);
-- lvgl.label_set_text(label, "This label will be masked out. See how it works.");
-- lvgl.obj_align(label, nil, lvgl.ALIGN_IN_TOP_MID, 0, 20);
-- local cont = lvgl.cont_create(om, nil);
-- lvgl.obj_set_size(cont, 180, 100);
-- lvgl.obj_set_drag(cont, true);
-- lvgl.obj_align(cont, nil, lvgl.ALIGN_IN_BOTTOM_MID, 0, -10);
-- local btn = lvgl.btn_create(cont, nil);
-- lvgl.obj_align(btn, nil, lvgl.ALIGN_CENTER, 0, 0);
-- lvgl.obj_set_style_local_value_str(btn, lvgl.BTN_PART_MAIN, lvgl.STATE_DEFAULT, "Button");
-- local t;
-- lvgl.refr_now(nil);
-- t = lvgl.tick_get();
-- while(lvgl.tick_elaps(t) < 1000);
-- lvgl.area_t a;
-- lvgl.draw_mask_radius_param_t r1;
-- a.x1 = 10;
-- a.y1 = 10;
-- a.x2 = 190;
-- a.y2 = 190;
-- lvgl.draw_mask_radius_init(r1, a, lvgl.RADIUS_CIRCLE, false);
-- lvgl.objmask_add_mask(om, r1);
-- lvgl.refr_now(nil);
-- t = lvgl.tick_get();
-- while(lvgl.tick_elaps(t) < 1000);
-- a.x1 = 100;
-- a.y1 = 100;
-- a.x2 = 150;
-- a.y2 = 150;
-- lvgl.draw_mask_radius_init(r1, a, lvgl.RADIUS_CIRCLE, true);
-- lvgl.objmask_add_mask(om, r1);
-- lvgl.refr_now(nil);
-- t = lvgl.tick_get();
-- while(lvgl.tick_elaps(t) < 1000);
-- lvgl.draw_mask_line_param_t l1;
-- lvgl.draw_mask_line_points_init(l1, 0, 0, 100, 200, lvgl.DRAW_MASK_LINE_SIDE_TOP);
-- lvgl.objmask_add_mask(om, l1);
-- lvgl.refr_now(nil);
-- t = lvgl.tick_get();
-- while(lvgl.tick_elaps(t) < 1000);
-- lvgl.draw_mask_fade_param_t f1;
-- a.x1 = 100;
-- a.y1 = 0;
-- a.x2 = 200;
-- a.y2 = 200;
-- lvgl.draw_mask_fade_init(f1, a, lvgl.OPA_TRANSP, 0, lvgl.OPA_COVER, 150);
-- lvgl.objmask_add_mask(om, f1);
end
return objmask
|
local bullet = {}
function bullet.inherit(x, y, vx, vy, rot)
local self = {
img = LG.newImage('lib/img/bullet.png'),
x = x,
y = y,
vx = vx,
vy = vy,
rot = rot,
lifeTime = 10,
collides = true,
action = {
smoke = false,
thrust = false
}
}
self.vx = self.vx + math.sin(self.rot) * 500
self.vy = self.vy + math.cos(self.rot) * -500
function self:update(dt)
self.lifeTime = self.lifeTime - 1 * dt
if self.lifeTime <= 0 then
self.isDead = true
return
end
self.x = self.x + self.vx * dt
self.y = self.y + self.vy * dt
end
function self:draw()
LG.setColor(255,255,255)
LG.draw(self.img, self.x, self.y, self.rot, .2, .2, self.img:getWidth()/2, self.img:getHeight()/2)
end
return self
end
return bullet
|
p = game.Players.LocalPlayer
char = p.Character
torso = char.Torso
attacking = false
track = false
curcam = Workspace.CurrentCamera
name = 'KFM'
pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end)
m = Instance.new("Model",char) m.Name = "legetony"
cfn,ang = CFrame.new,CFrame.Angles
v3n = Vector3.new
rs = torso["Right Shoulder"]
ls = torso["Left Shoulder"]
rh = torso["Right Hip"]
lh = torso["Right Hip"]
neck = torso["Neck"]
rw,lw = nil,nil
rhw,lhw = nil,nil
local orgc1 = rs.C1
rarm = char["Right Arm"]
larm = char["Left Arm"]
rleg = char["Right Leg"]
lleg = char["Left Leg"]
normposr = cfn(1.5,.5,0)
normposl = cfn(-1.5,.5,0)
normposr2 = cfn(-.5,-1.5,0)
normposl2 = cfn(.5,-1.5,0)
normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
holdpos = normposr*ang(math.pi/2,0,0)
holdpos2 = normposl*ang(math.pi/2,0,0)
lock = {["R"] =
function(a)
if a == 1 then
rabrick = T.P(1,1,1,"White",1,false,false)
rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
T.W(rarm,rabrick,0,-.5,0,0,0,0)
elseif a == 2 then
rlbrick = T.P(1,1,1,"White",1,false,false)
rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
T.W(rleg,rlbrick,0,-.5,0,0,0,0)
elseif a == 0 then
rs.Parent = torso
rw.Parent = nil
rabrick:Destroy() rabrick = nil
elseif a == -1 then
rhw.Parent = nil
rh.Parent = torso
rlbrick:Destroy() rlbrick = nil
end
end
, ["L"] = function(a)
if a == 1 then
labrick = T.P(1,1,1,"White",1,false,false)
lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
T.W(larm,labrick,0,-.5,0,0,0,0)
elseif a == 2 then
llbrick = T.P(1,1,1,"White",1,false,false)
lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
T.W(lleg,llbrick,0,-.5,0,0,0,0)
elseif a == 0 then
ls.Parent = torso
lw.Parent = nil
labrick:Destroy() labrick = nil
elseif a == -1 then
lhw.Parent = nil
lh.Parent = torso
llbrick:Destroy() llbrick = nil
end
end}
------TOOOOOLS------
T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
if typee ~= nil then
c = Instance.new("WedgePart",m)
else
c = Instance.new("Part",m)
end
c.TopSurface,c.BottomSurface = 0,0
c.formFactor = "Custom"
c.Size = Vector3.new(x,y,z)
if color ~= "random" then
c.BrickColor = BrickColor.new(color)
else c.BrickColor = BrickColor:random() end
c.Transparency = transparency
c.CanCollide = cancollide
if anchored ~= nil then c.Anchored = anchored end
if parent ~= nil then c.Parent = parent end
return c
end
,
["C"] = function(func) coroutine.resume(coroutine.create(func)) end
,
["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
w = Instance.new("Motor",m)
if parent ~= nil then w.Parent = parent end
w.Part0,w.Part1 = part0,part1
w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
return w
end
,
["BG"] = function(parent)
local c = Instance.new("BodyGyro",parent)
c.P = 20e+003
c.cframe = parent.CFrame
c.maxTorque = Vector3.new(c.P,c.P,c.P)
return c
end
,
["BP"] = function(parent,position)
local bp = Instance.new("BodyPosition",parent)
bp.maxForce = Vector3.new()*math.huge
bp.position = position
return bp
end
,
["F"] = function(parent,size,heat,color,secondcolor,enabled)
f = Instance.new("Fire",parent)
f.Size = size
f.Heat = heat
if enabled ~= nil then f.Enabled = enabled end
if color ~= nil then f.Color = BrickColor.new(color).Color end
if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
return f
end
,
["FM"] = function(parent,meshid,x,y,z,meshtexture)
if meshid == "cylinder" then
mesh = Instance.new("CylinderMesh",parent)
mesh.Scale = Vector3.new(x,y,z)
return mesh
else
mesh = Instance.new("SpecialMesh",parent)
if meshid ~= "sphere" then
if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
mesh.MeshId = "rbxassetid://"..meshids[meshid]
end
else mesh.MeshType = 3 end
mesh.Scale = Vector3.new(x,y,z)
if meshtexture ~= nil then
if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
end
return mesh
end
end
,
["Track"] = function(obj,s,t,lt,color,fade)
coroutine.resume(coroutine.create(function()
while track do
old = obj.Position
wait()
new = obj.Position
mag = (old-new).magnitude
dist = (old+new)/2
local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
Instance.new("CylinderMesh",ray)
ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
if fade ~= nil then
delay(lt,function()
for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
else
game:GetService("Debris"):AddItem(ray,lt)
end
if color ~= nil then ray.BrickColor = BrickColor.new(color) end
end
end)) end
}
--------------------------------------------------
----------------DAMAGE FUNCTION--------------------
function damage(hit,amount,show,del,poikkeus)
for i,v in pairs(hit:GetChildren()) do
if v:IsA("Humanoid") and v.Parent ~= char then
amo = 0
function showa(p)
if show == true then
for i,o in pairs(p:GetChildren()) do
if o:IsA("BillboardGui") and o.Name == "satuttava" then
amo = amo+1
end end
local bbg = Instance.new("BillboardGui",p)
bbg.Adornee = p.Torso
bbg.Name = "satuttava"
bbg.Size = UDim2.new(2,0,2,0)
bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
local box = Instance.new("TextLabel",bbg)
box.Size = UDim2.new(1,0,1,0)
box.BackgroundColor = BrickColor.new("White")
box.Text = amount
box.BackgroundTransparency = .5
if amount == 0 then box.Text = "K.O" end
box.Position = UDim2.new(0,0,0,0)
box.TextScaled = true
game:GetService("Debris"):AddItem(bbg,.5)
end
end
function dame(q)
if poikkeus ~= nil then
for _,u in pairs(poikkeus) do
if q.Parent.Name ~= u then
showa(q)
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
end
end
elseif poikkeus == nil then
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
showa(q)
end
end
if del ~= nil then
local find = v.Parent:FindFirstChild("hitted")
if find == nil then
dame(v)
val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
game:GetService("Debris"):AddItem(val,del)
end
elseif del == nil then
dame(v)
end
end
end
end
-----------------------------------------------------------------
------MESHIDS---
meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
["ramen"] = 19380188}---some meshids
textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
-----------------
---MATH SHORTENINGS---
M = {["R"] = function(a,b) return math.random(a,b) end,
["Cos"] = function(a) return math.cos(a) end,
["Sin"] = function(a) return math.sin(a) end,
["D"] = function(a) return math.rad(a) end
}
for i,v in pairs(char:GetChildren()) do
if v:IsA("Clothing") or v:IsA("Hat") then v:Remove()
end end
col = char:FindFirstChild("Body Colors")
if col == nil then col = Instance.new("BodyColors",char) end
collist = {
{'LeftLegColor',"Dark stone grey"},
{'RightLegColor',"Dark stone grey"},
{'TorsoColor',"Dark stone grey"},
{'LeftArmColor',"Dark stone grey"},
{'RightArmColor',"Dark stone grey"},
}
for i,v in pairs(collist) do
col[v[1]] = BrickColor.new(v[2])
end
-------------------------------
shirt = Instance.new("Shirt", char)
shirt.Name = "Shirt"
pants = Instance.new("Pants", char)
pants.Name = "Pants"
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=279761668"
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=279765488"
-------------------------------------
bracs = Instance.new("Model",m)
for i,v in pairs({rarm,larm}) do
for i,v in pairs(bracs:children()) do if v.Name ~= 'a' then v.Material = 'Ice' end end
end
--------MAKING--------------------
h1 = T.P(1.5,1.5,1.5,'Dark stone grey',0,false,false)
h1.Material = "Fabric"
T.FM(h1,'sphere',1,1,1)
T.W(h1,char.Head,0,0,0,0,0,0)
e1 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e1,'sphere',1,1,1)
e1.Material = "Fabric"
e2 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e2,'sphere',1,1,1)
e2.Material = "Fabric"
e1w=T.W(e1,h1,.35,0,-.55,0,0,0) T.W(e2,h1,-.35,0,-.55,0,0,0)
e1w.Material = "Fabric"
dec = Instance.new("Decal")
dec.Face = 'Front'
dec.Texture = "http://www.roblox.com/asset/?id=0"
char.Head.Transparency = 1
-----------------------------------
function colorslide(obj,prop,scol,ecol,timme,override)
if scol == 'cur' then scol3 = obj.BrickColor.Color else
scol3 = BrickColor.new(scol).Color
end
ecol3 = BrickColor.new(ecol).Color
for i = 0,1,timme do
wait()
pos = v3n(scol3.r,scol3.g,scol3.b):Lerp(v3n(ecol3.r,ecol3.g,ecol3.b),i)
obj[prop] = Color3.new(pos.x,pos.y,pos.z)
end
end
function checkplayers(pos,radius,what)
tab = {}
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Model") and v ~= char then
for _,q in pairs(v:GetChildren()) do
if q:IsA("Humanoid") then
if (q.Torso.Position-pos).magnitude <= radius then
if what == 'char' then table.insert(tab,q.Parent)
elseif what == 'humanoid' then table.insert(tab,q)
end
end end end end end
return tab
end
function rage()
tyu = cfn(0,.2,-.5)
lock.R(1) lock.L(1)
neck.C0 = normposn
for i = 0,140,10 do
wait()
rw.C1 = (normposr*tyu)*ang(M.D(i),0,M.D(i/(140/-50)))
lw.C1 = (normposl*tyu)*ang(M.D(i),0,M.D(i/(140/50)))
neck.C0 = normposn*ang(M.D(i/(140/30)),0,0)
end
wait(1)
for i = 140,50,-20 do
wait()
rw.C1 = (normposr)*ang(M.D(-i),0,M.D(i))
lw.C1 = (normposl)*ang(M.D(-i),0,M.D(-i))
end
neck.C0 = normposn*ang(M.D(-30),0,0)
fire = T.F(torso,30,30,'Bright red','Magenta')
ef = T.P(1,1,1,'Really red',0,false,false)
ew = T.W(ef,torso,0,0,0,0,0,0,ef)
msh = T.FM(ef,'sphere',1,1,1)
for i = 0,20 do wait() ef.Transparency = i/20 msh.Scale = v3n(i,i,i)
T.C(function()
tabb = checkplayers(ef.Position,20,'char')
if #tabb > 0 then
for i,v in pairs(tabb) do damage(v,10,true,.2) end
end
end)
end
msh:Remove()
for i = 30,8,-1 do
wait() fire.Size = i
end
colorslide(fire,'Color','Bright red','Deep blue',.05)
lock.R(0) lock.L(0) neck.C0 = normposn
end
hop = Instance.new("HopperBin",p.Backpack)
hop.Name = name
holdpos = normposr*ang(math.pi/2,0,0)
port,port2,bol,boltime = nil,nil,false,1
function hide()
if char.Parent ~= curcam then
char.Parent = curcam
hop.Name = name..'(h)'
else char.Parent = Workspace
hop.Name = name
end
end
function makeport1()
if not port then --- Blue portal
circle()
port = Instance.new("Model",Workspace)
port.Name = 'omakotikullankallis'
ring = T.P(1,1,1,'Deep blue',0,false,true,port) T.FM(ring,'ring',4,4,1)
ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir = T.P(3.5,.1,3.5,ring.BrickColor.Name,.5,false,true,port) T.FM(mir,'cylinder',1,1,1)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
mir.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port2 and not bol then bol = true
hit.Parent:MoveTo(mir2.Position) wait(boltime) bol = false
end end) ---- On touch event for blue portal
elseif port then ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
end
end
function makeport2()
if not port2 then
circle()
port2 = Instance.new("Model",Workspace)
port2.Name = 'omakotikullankallis'
ring2 = T.P(1,1,1,'Fabric orange',0,false,true,port2) T.FM(ring2,'ring',4,4,1)
ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2 = T.P(3.5,.1,3.5,ring2.BrickColor.Name,.5,false,true,port2) T.FM(mir2,'cylinder',1,1,1)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
mir2.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port and not bol then bol = true
hit.Parent:MoveTo(mir.Position) wait(boltime) bol = false
end end) ---- On touch event for orange portal
elseif port2 then ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
end
end
holdpos2 = normposl*ang(math.pi/2,0,0)
function punch()
fires = {}
lock.R(1) lock.L(1)
for i,v in pairs(bracs:children()) do
if v.Name ~= 'a' then table.insert(fires,T.F(v,.5,.5,'White','Black')) end
end
sticks = Instance.new("Model",m)
rr = .5
for _,v in pairs({rarm,larm}) do
for _,pos in pairs({ {0,-rr}, {0,rr}, {rr,0}, {-rr,0} }) do
stick = T.P(.3,.3,2.5,'Really blue',.5,false,false,sticks)
stick.Touched:connect(function(hit) damage(hit.Parent,10000,true,.05) end)
T.W(stick,v,pos[1],-.6,pos[2],-math.pi/2,0,0)
end end
for i = 1,10 do
rw.C1 = holdpos*cfn(0,.5,0)
lw.C1 = (holdpos2*cfn(0,-.5,0))*ang(0,0,M.D(30))
wait(.05)
rw.C1 = (holdpos*cfn(0,-.5,0))*ang(0,0,M.D(-30))
lw.C1 = holdpos2*cfn(0,.5,0)
wait(.05)
end
sticks:Remove() for _,v in pairs(fires) do v:Remove() end
lock.R(0) lock.L(0)
end
Workspace.ChildRemoved:connect(function(child)
if child == port then port = nil
elseif child == port2 then port2 = nil
end end)
function removeports()
if port then port:Remove() port = nil end
if port2 then port2:Remove() port2 = nil end
for i,v in pairs(Workspace:GetChildren()) do if v.Name == 'omakotikullankallis' then v:Remove() end end
end
function circle()
r = .5
lock.R(1)
for i = 0,90,10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
for i = 0,360,25 do
wait()
rw.C1 = holdpos*ang(M.Cos(M.D(-i))*r,0,M.Sin(M.D(-i))*r)
end
for i = 90,0,-10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
lock.R(0)
end
Workspace.ChildRemoved:connect(function(child) if child == port then port = nil elseif child == port2 then port2 = nil end end) --- Nill's portals if they dont exist
function bowl(mouse)
colorslide(e1,'Color','cur','Royal purple',.05)
dec.Parent = e1
light = T.P(1,2,1,'Royal purple',.8,false,false)
light.Touched:connect(function(hit) damage(hit.Parent,10000,false,1) end)
T.FM(light,'spike',.5,2,.5)
T.W(light,e1,0,0,-1,math.pi/2,0,0)
holding = true
posa = e1.Position
while holding do
wait()
lv = char.Head.CFrame.lookVector
pos3 = ((posa-mouse.hit.p).unit):Cross(lv)
e1w.C1 = cfn(.35,0,-.55)*ang(0,pos3.Y,0)
end
light:Remove()
colorslide(e1,'Color','cur','Really black',.05) e1w.C1 = cfn(.35,0,-.55)
dec.Parent = nil
end
sitbp = nil
function sit()
if sitbp == nil then
lock.R(2) lock.L(2)
sitbp = T.BP(torso,torso.Position)
for i = 1,90,5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position - v3n(0,i/(90),0)
end
elseif sitbp ~= nil then
for i = 90,1,-5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position + v3n(0,i/(90),0)
end
lock.R(-1) lock.L(-1)
sitbp:Remove() sitbp = nil
end
end
function freemyself()
for i,v in pairs(char:GetChildren()) do
for _,o in pairs(v:GetChildren()) do
for _,q in pairs({'BodyPosition','BodyForce','BodyVelocity','BodyGyro'}) do
if o:IsA(q) then o:Remove() end
end
if o:IsA("Part") then
o.Anchored = false end
end
end
sk = T.P(1,1,1,'Royal Purple',0,false,false)
T.W(sk,torso,0,0,0,0,0,0,sk)
msh = T.FM(sk,'skull',3,3,3)
for i = 0,1,.05 do wait() sk.Transparency = i end sk:Remove()
end
function breake()
welds = {}
bps = {}
possa = torso.Position
for i,v in pairs(torso:children()) do
if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
end
end
for _,v in pairs(char:children()) do
if v:IsA("BasePart") then v.CanCollide = true end
end
local hum = char.Humanoid
hum.Parent = nil
holding = true
while holding do wait() end
for i,v in pairs(welds) do
v.Parent = torso
v.Part1 = v.Part1
end
hum.Parent = char
end
klist = {
{'fa',function() rage() end},
{'qa',function() makeport1() end},
{'ea',function() makeport2() end},
{'ra',function() removeports() end},
{'ca',function(a) punch(a) end},
{'xa',function() sit() end},
{'za',function() freemyself() end},
{'va',function() hide() end},
{'ga',function() breake() end,''}
}
hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
hop.Selected:connect(function(mouse)
mouse.Button1Up:connect(function() holding = false end)
mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
mouse.KeyDown:connect(function(key) if attacking then return end
for i,v in pairs(klist) do
if key == v[1] then attacking = true v[2](mouse) attacking = false end
end
end)
mouse.Button1Down:connect(function() if attacking then return end attacking = true bowl(mouse) attacking = false end)
end)
wait(2)
z = Instance.new("Sound", char)
z.SoundId = "rbxassetid://275564512"--303570180
z.Looped = true
z.Pitch = 1
z.Volume = 10
wait(.1)
z:Play()
----------------------------------------------------
p = game.Players.LocalPlayer
char = p.Character
des = false
fling = true
dot = false
falling = false
jump = true
--char.Shirt:Remove()
--for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
wait()--shirt = Instance.new("Shirt", char)
--shirt.Name = "Shirt"
--pants = Instance.new("Pants", char)
--pants.Name = "Pants"
--char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
--char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
tp = true
shoot = true
hum = char.Humanoid
punch = true
neckp = char.Torso.Neck.C0
neck = char.Torso.Neck
hum.MaxHealth = 999999999
wait()
hum.Health =hum.MaxHealth
des = false
root=char.HumanoidRootPart
torso = char.Torso
char.Head.face.Texture = "rbxassetid://0"
local ChatService = game:GetService("Chat")
local player = game.Players.LocalPlayer
lig = Instance.new("PointLight",player.Character.Torso)
lig.Color=Color3.new(255,0,0)
m=player:GetMouse()
bb = Instance.new("BillboardGui",player.Character.Head)
bb.Enabled = true
function newRay(start,face,range,wat)
local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
return rey,hit,pos
end
aa1={}
torso=game.Players.LocalPlayer.Character.Torso
local WorldUp = Vector3.new(0,1,0)
function look2(Vec1,Vec2)
local Orig = Vec1
Vec1 = Vec1+Vector3.new(0,1,0)
Vec2 = Vec2+Vector3.new(0,1,0)
local Forward = (Vec2-Vec1).unit
local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
local Right = Up:Cross(Forward).unit
Forward = -Forward
Right = -Right
return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function look(CFr,Vec2)
local A = Vector3.new(0,0,0)
local B = CFr:inverse()*Vec2
local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
if B.Z > 0 then
CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
elseif B.Z == 0 then
if B.Y > 0 then
CF = CFr*CFrame.Angles(math.pi/2,0,0)
elseif B.Y < 0 then
CF = CFr*CFrame.Angles(-math.pi/2,0,0)
else
CF = CFr
end
end
local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
local Up = Vector3.new(X,Y,Z)
local Forward = (Vec2-CFr.p).unit
local Right = Up:Cross(Forward)
Forward = -Forward
Right = -Right
return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function simulate(j,d,m,r,t)
local joint = j
for i,v in ipairs(t) do
if v[1]:FindFirstChild("Weld") then
local stiff = m.CFrame.lookVector*0.03
if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
local pos = joint.p+(dir*(d*0.5))
--if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
local inv = v[1].Weld.Part0.CFrame
local rel1 = inv:inverse()*pos
local rel2 = inv:inverse()*(pos-(dir*dis))
local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
v[1].Weld.C0 = cf
v[2] = inv*cf
--v[1].CFrame = cf
end
end
end
for i=1,8 do
local p = Instance.new("Part",char)
p.Anchored = false
p.BrickColor = BrickColor.new("Dark stone grey")
p.CanCollide = false
p.FormFactor="Custom"
p.Material = "Fabric"
p.TopSurface = "SmoothNoOutlines"
p.BottomSurface = "SmoothNoOutlines"
p.RightSurface = "SmoothNoOutlines"
p.LeftSurface = "SmoothNoOutlines"
p.FrontSurface = "SmoothNoOutlines"
p.BackSurface = "SmoothNoOutlines"
p.Size=Vector3.new(2,.2,0.2)
p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
mesh = Instance.new("BlockMesh",p)
mesh.Scale = Vector3.new(1,1,4)
local w = Instance.new("Motor6D",p)
w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
w.Part1 = p
w.Name = "Weld"
--table.insert(aa1,p)
aa1[i] = {p,p.CFrame}
end
game:service"RunService".Stepped:connect(function()
simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
end)
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0,200,0,50)
bb.StudsOffset = Vector3.new(0,1,0)
gui=Instance.new("TextBox",bb)
gui.Text = "* "
gui.Size = UDim2.new(0,133,0,45)
gui.Position=UDim2.new(0,57,0,-40)
gui.TextColor3 = Color3.new(255,255,255)
gui.BackgroundColor3=Color3.new(0,0,0)
gui.TextWrapped = true
gui.TextScaled = true
gui.TextXAlignment = "Left"
gui.TextYAlignment = "Top"
gui.Visible = false
gui.BorderColor3 = Color3.new(0,0,0)
punch2 = true
gui1=Instance.new("TextButton",bb)
gui1.Position=UDim2.new(0,5,0,-43)
gui1.Size = UDim2.new(0,190,0,51)
gui1.TextColor3 = Color3.new(255,255,255)
gui1.BackgroundColor3=Color3.new(255,255,255)
jump2 = true
gui1.Visible = false
img = Instance.new("ImageLabel",bb)
img.Size = UDim2.new(0,46,0,47)
img.Position = UDim2.new(0,10,0,-41)
img.Image = "rbxassetid://447301252"
img.BorderColor3 = Color3.new(0,0,0)
img.Visible = false
soka = Instance.new("Sound",char)
soka.SoundId = "http://www.roblox.com/asset/?id = 0"
soka.Volume = 1
boom = Instance.new("Sound",char)
boom.SoundId = "http://www.roblox.com/asset/?id = 0"
boom.Volume = 1
boom2 = Instance.new("Sound",char)
boom2.SoundId = "http://www.roblox.com/asset/?id = 0"
boom2.Volume = 1
boom3 = Instance.new("Sound",char)
boom3.SoundId = "http://www.roblox.com/asset/?id = 0"
boom3.Volume = 1
tps = Instance.new("Sound",char)
tps.SoundId = "http://www.roblox.com/asset/?id = 0"
tps.Volume = 1
asd = Instance.new("Sound",char)
asd.SoundId = "http://www.roblox.com/asset/?id = 0"
asd.Volume =1
asd1 = Instance.new("Sound",char)
asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
asd2 = Instance.new("Sound",char)
asd2.SoundId = "http://www.roblox.com/asset/?id = 0"
asd2.Looped = true
asd2.Volume = 5
asd3 = Instance.new("Sound",char)
asd3.SoundId = "http://www.roblox.com/asset/?id = 0"
asd3.Looped = true
asd4 = Instance.new("Sound",char)
asd4.SoundId = "http://www.roblox.com/asset/?id = 0"
asd4.Looped = true
asd5 = Instance.new("Sound",char)
asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
asd5.Looped = true
gas = Instance.new("Sound",char)
gas.SoundId = "http://www.roblox.com/asset/?id = 0"
asd6 = Instance.new("Sound",char)
asd6.SoundId = "http://www.roblox.com/asset/?id = 0"
asd6.Looped = true
function play(play)
asd:Play()
wait(0.05)
--asd1:Play()
end
------------
-------------------------
function stream(origin,dir,length,size)
local parts = {}
for i = 1,length do
local p = Instance.new("Part",char)
p.Anchored = true
p.Transparency = 0.5
p.TopSurface = 0
p.BottomSurface = 0
p.CanCollide = false
p.BrickColor = BrickColor.new("Dark stone grey")
p.Size = Vector3.new(10,30,10) -- for now
p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
game:GetService("Debris"):AddItem(p,3)
end
Spawn(function()
while parts do
for i,v in pairs(parts) do
if v[1].Parent == char then
v[1].CFrame = v[1].CFrame*v[2]
else
parts = nil
break
end
end
wait(0.02)
end
end)
end
--[[-- listen for their chatting
player.Chatted:connect(function(message)
a = string.len(message)
gui.Text = ""
gui.Visible = true
gui1.Visible = true
des = false
img.Visible = true
print(a)
if dot == false then
gui.Text = ""
for i = 1,string.len(message) do
gui.Text =gui.Text..message:sub(i,i)
play()
end
end
des = true
end)]]--
m.KeyDown:connect(function(k)
if k == "g" then
asd2:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "r" then
asd4:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "q" then
asd3:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "z" then
img.Image = "rbxassetid://332766052"
end
end)
m.KeyDown:connect(function(k)
if k == "c" then
img.Image = "rbxassetid://447301252"
end
end)
m.KeyDown:connect(function(k)
if k == "b" then
asd6:Play()
end
end)
mouse = p:GetMouse()
m.KeyDown:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 100
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 50 then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 52 then
char.Head.face.Texture = "rbxassetid://444037452"
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 51 then
char.Head.face.Texture = "rbxassetid://332768867"
end
end)
m.KeyUp:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 16
end
end)
p.Chatted:connect(function(m)
if m == "Okay." then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "x" then
if des == true then
gui.Visible = false
gui.Text = "* "
gui1.Visible = false
img.Visible = false
end
end
end)
m.KeyDown:connect(function(key)
if key == "ja" then
if tp == true then
tp = false
tps:Play()
char.Head.face.Parent = game.Lighting
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
end
end
wait(0.5)
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
end
end
char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
char.HumanoidRootPart.Transparency = 1
game.Lighting.face.Parent = char.Head
wait(0.2)
tp = true
end
end
end)
m.KeyDown:connect(function(key)
if key == "ta" then
if punch2 == true then
punch2 = false
punch = false
local ChatService = game:GetService("Chat")
neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
ChatService:Chat(char.Head, "Mind if I get Serious?")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head, "SERIOUS PUNCH.")
neck.C0 = neckp
wait(0.6)
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
wait()
killbrick2 = Instance.new("Part",char)
killbrick2.Size = Vector3.new(80,80,9000)
killbrick2.Transparency = 1
killbrick2.CanCollide = true
wait(0.1)
killbrick2.CanCollide = false
killbrick2.Anchored = true
killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
killbrick2.Touched:connect(function(h)
local x = h.Parent:FindFirstChild("Humanoid")
if x then
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x.Parent:BreakJoints()
wait()
safe = true
end
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Dark stone grey")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
local rng1 = Instance.new("Part", char)
rng1.Anchored = true
rng1.BrickColor = BrickColor.new("Dark stone grey")
rng1.CanCollide = false
rng1.FormFactor = 3
rng1.Name = "Ring"
rng1.Size = Vector3.new(1, 1, 1)
rng1.Transparency = 0.8
rng1.TopSurface = 0
rng1.BottomSurface = 0
rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm1 = Instance.new("SpecialMesh", rng1)
rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm1.Scale = Vector3.new(1, 1.3, 2)
local p = (torso.CFrame*CFrame.new(-20,0,3))
stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
local p = (torso.CFrame*CFrame.new(20,0,3))
stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
local rng2 = Instance.new("Part", char)
rng2.Anchored = true
rng2.BrickColor = BrickColor.new("Dark stone grey")
rng2.CanCollide = false
rng2.FormFactor = 3
rng2.Name = "Ring"
rng2.Size = Vector3.new(1, 1, 1)
rng2.Transparency = 0.8
rng2.TopSurface = 0
rng2.BottomSurface = 0
rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm2 = Instance.new("SpecialMesh", rng2)
rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm2.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom3:Play()
coroutine.wrap(function()
for i = 1, 35, 0.5 do
rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
wait()
end
wait()
rng:Destroy()
rng1:Destroy()
rng2:Destroy()
killbrick2:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch2 = true
punch = true
wait()
end)()
end
wait(.1)
end
end)
----------------
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
m=Instance.new('Model',Character)
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character["Right Arm"]
RightLeg=Character["Right Leg"]
LS=Torso["Left Shoulder"]
LH=Torso["Left Hip"]
RS=Torso["Right Shoulder"]
RH=Torso["Right Hip"]
Face = Head.face
Neck=Torso.Neck
it=Instance.new
attacktype=1
vt=Vector3.new
cf=CFrame.new
euler=CFrame.fromEulerAnglesXYZ
angles=CFrame.Angles
cloaked=false
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
RootPart=Character.HumanoidRootPart
RootJoint=RootPart.RootJoint
RootCF=euler(-1.57,0,3.14)
attack = false
attackdebounce = false
deb=false
equipped=true
hand=false
MMouse=nil
combo=0
mana=0
trispeed=.2
attackmode='none'
local idle=0
local Anim="Idle"
local Effects={}
local gun=false
local shoot=false
player=nil
mana=0
cam = workspace.CurrentCamera
ZTarget = nil
RocketTarget = nil
mouse=Player:GetMouse()
--save shoulders
RSH, LSH=nil, nil
--welds
RW, LW=Instance.new("Weld"), Instance.new("Weld")
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
LH=Torso["Left Hip"]
RH=Torso["Right Hip"]
TorsoColor=Torso.BrickColor
function NoOutline(Part)
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
end
player=Player
ch=Character
RSH=ch.Torso["Right Shoulder"]
LSH=ch.Torso["Left Shoulder"]
--
RSH.Parent=nil
LSH.Parent=nil
--
RW.Name="Right Shoulder"
RW.Part0=ch.Torso
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
RW.C1=cf(0, 0.5, 0)
RW.Part1=ch["Right Arm"]
RW.Parent=ch.Torso
--
LW.Name="Left Shoulder"
LW.Part0=ch.Torso
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
LW.C1=cf(0, 0.5, 0)
LW.Part1=ch["Left Arm"]
LW.Parent=ch.Torso
function swait(num)
if num==0 or num==nil then
game:service'RunService'.Heartbeat:wait(0)
else
for i=0,num do
game:service'RunService'.Heartbeat:wait(0)
end
end
end
function nooutline(part)
part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
end
function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
local fp=it("Part")
fp.formFactor=formfactor
fp.Parent=parent
fp.Reflectance=reflectance
fp.Transparency=transparency
fp.CanCollide=false
fp.Locked=true
fp.BrickColor=BrickColor.new(tostring(brickcolor))
fp.Name=name
fp.Size=size
fp.Position=Character.Torso.Position
nooutline(fp)
fp.Material=material
fp:BreakJoints()
return fp
end
function mesh(Mesh,part,meshtype,meshid,offset,scale)
local mesh=it(Mesh)
mesh.Parent=part
if Mesh=="SpecialMesh" then
mesh.MeshType=meshtype
mesh.MeshId=meshid
end
mesh.Offset=offset
mesh.Scale=scale
return mesh
end
function weld(parent,part0,part1,c0,c1)
local weld=it("Weld")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
weld.C1=c1
return weld
end
local function CFrameFromTopBack(at, top, back)
local right = top:Cross(back)
return CFrame.new(at.x, at.y, at.z,
right.x, top.x, back.x,
right.y, top.y, back.y,
right.z, top.z, back.z)
end
function Triangle(a, b, c)
local edg1 = (c-a):Dot((b-a).unit)
local edg2 = (a-b):Dot((c-b).unit)
local edg3 = (b-c):Dot((a-c).unit)
if edg1 <= (b-a).magnitude and edg1 >= 0 then
a, b, c = a, b, c
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
a, b, c = b, c, a
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
a, b, c = c, a, b
else
assert(false, "unreachable")
end
local len1 = (c-a):Dot((b-a).unit)
local len2 = (b-a).magnitude - len1
local width = (a + (b-a).unit*len1 - c).magnitude
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
local list = {}
local TrailColor = ("Dark stone grey")
if len1 > 0.01 then
local w1 = Instance.new('WedgePart', m)
game:GetService("Debris"):AddItem(w1,5)
w1.Material = "Fabric"
w1.FormFactor = 'Custom'
w1.BrickColor = BrickColor.new(TrailColor)
w1.Transparency = 0
w1.Reflectance = 0
w1.Material = "Fabric"
w1.CanCollide = false
NoOutline(w1)
local sz = Vector3.new(0.2, width, len1)
w1.Size = sz
local sp = Instance.new("SpecialMesh",w1)
sp.MeshType = "Wedge"
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
w1:BreakJoints()
w1.Anchored = true
w1.Parent = workspace
w1.Transparency = 0.7
table.insert(Effects,{w1,"Disappear",.01})
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
table.insert(list,w1)
end
if len2 > 0.01 then
local w2 = Instance.new('WedgePart', m)
game:GetService("Debris"):AddItem(w2,5)
w2.Material = "Fabric"
w2.FormFactor = 'Custom'
w2.BrickColor = BrickColor.new(TrailColor)
w2.Transparency = 0
w2.Reflectance = 0
w2.Material = "Fabric"
w2.CanCollide = false
NoOutline(w2)
local sz = Vector3.new(0.2, width, len2)
w2.Size = sz
local sp = Instance.new("SpecialMesh",w2)
sp.MeshType = "Wedge"
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
w2:BreakJoints()
w2.Anchored = true
w2.Parent = workspace
w2.Transparency = 0.7
table.insert(Effects,{w2,"Disappear",.01})
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
table.insert(list,w2)
end
return unpack(list)
end
so = function(id,par,vol,pit)
coroutine.resume(coroutine.create(function()
local sou = Instance.new("Sound",par or workspace)
sou.Volume=vol
sou.Pitch=pit or 1
sou.SoundId=id
swait()
sou:play()
game:GetService("Debris"):AddItem(sou,6)
end))
end
function clerp(a,b,t)
local qa = {QuaternionFromCFrame(a)}
local qb = {QuaternionFromCFrame(b)}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1-t
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5/s
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
else
local i = 0
if m11 > m00 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00-m11-m22+1)
local recip = 0.5/s
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
elseif i == 1 then
local s = math.sqrt(m11-m22-m00+1)
local recip = 0.5/s
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
elseif i == 2 then
local s = math.sqrt(m22-m00-m11+1)
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w*xs, w*ys, w*zs
local xx = x*xs
local xy = x*ys
local xz = x*zs
local yy = y*ys
local yz = y*zs
local zz = z*zs
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
local startInterp, finishInterp;
if cosTheta >= 0.0001 then
if (1 - cosTheta) > 0.0001 then
local theta = math.acos(cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((1-t)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = 1-t
finishInterp = t
end
else
if (1+cosTheta) > 0.0001 then
local theta = math.acos(-cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((t-1)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = t-1
finishInterp = t
end
end
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
end
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 99)), Ignore)
end
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
if hit.Parent==nil then
return
end
local h=hit.Parent:FindFirstChild("Humanoid")
for _,v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid") then
h=v
end
end
if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
h=hit.Parent.Parent:FindFirstChild("Humanoid")
end
if hit.Parent.className=="Hat" then
hit=hit.Parent.Parent:findFirstChild("Head")
end
if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
--[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
return
end]]
-- hs(hit,1.2)
local c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=game:service("Players").LocalPlayer
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
local Damage=math.random(minim,maxim)
-- h:TakeDamage(Damage)
local blocked=false
local block=hit.Parent:findFirstChild("Block")
if block~=nil then
print(block.className)
if block.className=="NumberValue" then
if block.Value>0 then
blocked=true
if decreaseblock==nil then
block.Value=block.Value-1
end
end
end
if block.className=="IntValue" then
if block.Value>0 then
blocked=true
if decreaseblock~=nil then
block.Value=block.Value-1
end
end
end
end
if blocked==false then
-- h:TakeDamage(Damage)
h.Health=h.Health-Damage
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
else
h.Health=h.Health-(Damage/2)
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
end
if Type=="Knockdown" then
local hum=hit.Parent.Humanoid
hum.PlatformStand=true
coroutine.resume(coroutine.create(function(HHumanoid)
swait(1)
HHumanoid.PlatformStand=false
end),hum)
local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
local bodvol=Instance.new("BodyVelocity")
bodvol.velocity=angle*knockback
bodvol.P=5000
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodvol.Parent=hit
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
rl.Parent=hit
game:GetService("Debris"):AddItem(bodvol,.5)
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Normal" then
local vp=Instance.new("BodyVelocity")
vp.P=500
vp.maxForce=Vector3.new(math.huge,0,math.huge)
-- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
if KnockbackType==1 then
vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
elseif KnockbackType==2 then
vp.velocity=Property.CFrame.lookVector*knockback
end
if knockback>0 then
vp.Parent=hit.Parent.Torso
end
game:GetService("Debris"):AddItem(vp,.5)
elseif Type=="Up" then
local bodyVelocity=Instance.new("BodyVelocity")
bodyVelocity.velocity=vt(0,60,0)
bodyVelocity.P=5000
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodyVelocity.Parent=hit
game:GetService("Debris"):AddItem(bodyVelocity,1)
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
rl.Parent=hit
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Snare" then
local bp=Instance.new("BodyPosition")
bp.P=2000
bp.D=100
bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
bp.position=hit.Parent.Torso.Position
bp.Parent=hit.Parent.Torso
game:GetService("Debris"):AddItem(bp,1)
elseif Type=="Target" then
local Targetting = false
if Targetting==false then
ZTarget=hit.Parent.Torso
coroutine.resume(coroutine.create(function(Part)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
swait(5)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
end),ZTarget)
local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
local targetgui=Instance.new("BillboardGui")
targetgui.Parent=ZTarget
targetgui.Size=UDim2.new(10,100,10,100)
local targ=Instance.new("ImageLabel")
targ.Parent=targetgui
targ.BackgroundTransparency=1
targ.Image="rbxassetid://4834067"
targ.Size=UDim2.new(1,0,1,0)
cam.CameraType="Scriptable"
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
Targetting=true
RocketTarget=ZTarget
for i=1,Property do
--while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
swait()
end
--workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
end
Targetting=false
RocketTarget=nil
targetgui.Parent=nil
cam.CameraType="Custom"
end
end
local debounce=Instance.new("BoolValue")
debounce.Name="DebounceHit"
debounce.Parent=hit.Parent
debounce.Value=true
game:GetService("Debris"):AddItem(debounce,Delay)
c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=Player
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
end
end
function ShowDamage(Pos, Text, Time, Color)
local Rate = (1 / 30)
local Pos = (Pos or Vector3.new(0, 0, 0))
local Text = (Text or "")
local Time = (Time or 2)
local Color = (Color or Color3.new(1, 0, 0))
local EffectPart = part("Custom",workspace,"Fabric",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
EffectPart.Anchored = true
local BillboardGui = Instance.new("BillboardGui")
BillboardGui.Size = UDim2.new(3, 0, 3, 0)
BillboardGui.Adornee = EffectPart
local TextLabel = Instance.new("TextLabel")
TextLabel.BackgroundTransparency = 1
TextLabel.Size = UDim2.new(1, 0, 1, 0)
TextLabel.Text = Text
TextLabel.TextColor3 = Color
TextLabel.TextScaled = true
TextLabel.Font = Enum.Font.ArialBold
TextLabel.Parent = BillboardGui
BillboardGui.Parent = EffectPart
game.Debris:AddItem(EffectPart, (Time + 0.1))
EffectPart.Parent = game:GetService("Workspace")
Delay(0, function()
local Frames = (Time / Rate)
for Frame = 1, Frames do
wait(Rate)
local Percent = (Frame / Frames)
EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
TextLabel.TextTransparency = Percent
end
if EffectPart and EffectPart.Parent then
EffectPart:Destroy()
end
end)
end
HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HandleA",Vector3.new(0.200000003, 0.924000025, 0.251999974))
HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0840759277, -0.00163650513, 0.993845463, 0.999998212, -1.10852261e-005, -0, 0, 1.09631201e-017, -0.999998212, 1.09064322e-005, 0.999996305, 1.38777878e-016))
mesh("BlockMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
FakeHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","FakeHandleA",Vector3.new(0.200000003, 0.420000017, 0.251999974))
FakeHandleAweld=weld(m,HandleA,FakeHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.90734863e-006, -4.76837158e-007, 0.999998212, 2.13162126e-014, -5.3632084e-007, -2.13162126e-014, 0.999998212, -1.27329857e-016, 3.57546924e-007, -4.73488936e-019, 0.999996424))
mesh("BlockMesh",FakeHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
HitboxA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HitboxA",Vector3.new(0.260399997, 2.26800036, 0.671999991))
HitboxAweld=weld(m,FakeHandleA,HitboxA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.01556396, 0.0198795795, 0.999996424, 1.79766672e-012, -1.26029063e-005, -1.79766672e-012, 0.999996424, -1.14722063e-016, 1.22454048e-005, -1.16638766e-016, 0.999992847))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.671827316, 0.313827038, 0.999993801, -3.54627962e-014, -8.19193701e-007, 4.97018401e-014, 0.99999404, -1.09530813e-013, 7.89339538e-007, 9.65395366e-014, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.503871918, 0.0200036764, 0.999996424, 5.32912303e-015, -2.68159965e-007, -5.32912473e-015, 0.999996424, -1.26083356e-016, -8.93851393e-008, -1.26327738e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.503999949))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.671840668, 0.019996047, 0.999986649, -2.4655126e-012, 4.32561137e-007, 2.59496005e-012, 0.999986768, -1.49009139e-007, 2.52821337e-007, 8.94055319e-008, 0.999984741))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.47001648, 0.0187937021, 0.999996424, 1.93773531e-007, -9.44143176e-005, -1.93700657e-007, 0.999996424, 7.7484583e-007, 9.40571117e-005, -7.74830198e-007, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 1, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.335999995))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.46961975, 0.0198013783, 0.999996424, 2.38440322e-007, -1.83236498e-005, -2.38423183e-007, 0.999996424, 9.53646634e-007, 1.79661693e-005, -9.53645667e-007, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.462000072, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.83972168, 0.0198941231, 0.999996424, 1.72305952e-012, -1.13515125e-005, -1.72305952e-012, 0.999996424, -1.15788623e-016, 1.09940074e-005, -1.15460199e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.42800009, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.59558105, 0.0198942423, 0.999996424, 1.79766672e-012, -1.14408977e-005, -1.79766672e-012, 0.999996424, -1.1639756e-016, 1.10833907e-005, -1.1500975e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.335924149, 0.0199792385, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.756420135, -0.277666092, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335924149, -0.0639793873, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756376266, -0.193712234, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.90734863e-006, 0.0200020075, 0.999994516, -4.8679409e-013, 1.78781193e-007, -4.44161797e-013, 0.99999392, -1.42889402e-016, -7.15082933e-007, -1.14757771e-016, 0.999988675))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.937992096, 0.137899399, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.728122711, 0.305858612, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.672348022, 0.0161781311, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.125961304, 0.0200021267, 0.999992847, -2.13160991e-014, -2.68156327e-007, 2.13160974e-014, 0.999992847, -1.25976285e-016, -4.46930244e-007, -2.53540519e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10586548, 0.221845627, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.728130341, 0.13794899, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840242386, 0.184112549, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335924149, 0.103946805, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.7563591, -0.109758377, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, -1.10585403, 0.305786133, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.728031158, 0.221849442, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.67241478, -0.19370079, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.756313324, 0.0161876678, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.672306061, 0.184104919, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335899353, 0.0199739933, 0.999992847, 2.18489967e-013, -4.73727596e-006, -2.18489967e-013, 0.999992847, -7.57336287e-016, 4.02222031e-006, 2.53552589e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -1.1057682, 0.137836456, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.9379673, 0.305826187, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.812028885, 0.221828461, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840332031, -0.193758011, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.644088745, 0.22183609, 0.99999547, -1.31308614e-012, 1.78738446e-007, -3.79217425e-007, 0.707180977, 0.707023621, -3.79301156e-007, -0.707025945, 0.707178891))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756282806, 0.184106827, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.937936783, 0.221797943, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840261459, 0.016160965, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.335899353, 0.103938103, 0.999992847, 2.29148081e-013, -4.9160335e-006, -2.29148081e-013, 0.999992847, -7.56970052e-016, 4.20097967e-006, 2.53277833e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, 0.125974655, 0.0200021267, 0.999992728, 2.21486258e-014, 1.78859409e-007, 7.54365239e-014, 0.999992132, -2.98020169e-008, -1.78682967e-007, -2.9802127e-008, 0.999985099))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000033, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.671825409, -0.27389431, 0.999993801, 1.20855067e-013, -2.82897417e-007, -1.17359681e-013, 0.99999404, -5.96041865e-008, 2.53045073e-007, 5.96042469e-008, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.336000025, 0.335999936))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.22543144, 0.0199115276, 0.999995947, 1.79766672e-012, -1.49265943e-005, -1.79766672e-012, 0.999995947, -1.04389876e-016, 1.4569111e-005, -1.1508405e-016, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.461999953, 1, 1))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.14149475, 0.0199415684, 0.999996424, 1.79766672e-012, -1.2781531e-005, -1.79766672e-012, 0.999996424, -1.11779232e-016, 1.24240314e-005, -1.15038324e-016, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 0.840000212, 0.839999676))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.840000033, 0.671999991))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -2.72929573, 0.0198169947, 0.999996424, 3.1294465e-007, -1.93064552e-005, -3.12920946e-007, 0.999996424, 1.25165718e-006, 1.89489765e-005, -1.2516557e-006, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HandleB",Vector3.new(0.200000003, 0.924000025, 0.251999974))
HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.115982056, 0.0891990662, 0.993835926, -0.999997854, -1.10417595e-005, 4.54747297e-013, 4.4408921e-016, -1.49011505e-008, 0.999997795, -1.09821558e-005, 0.999995708, -1.49011541e-008))
mesh("BlockMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
FakeHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","FakeHandleB",Vector3.new(0.200000003, 0.420000017, 0.251999974))
FakeHandleBweld=weld(m,HandleB,FakeHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.047870636, 5.41210175e-005, 0.999996543, 7.45058131e-008, -5.81111635e-007, -7.45051949e-008, 0.999997199, -1.49019623e-008, 3.5760695e-007, -1.49009205e-008, 0.99999553))
mesh("BlockMesh",FakeHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
HitboxB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HitboxB",Vector3.new(0.260399997, 2.26800036, 0.671999991))
HitboxBweld=weld(m,FakeHandleB,HitboxB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -2.01556969, 0.01980865, 0.999993443, 1.02318154e-012, -1.27701678e-005, 6.82121026e-013, 0.999994397, -2.98027985e-008, 1.22934016e-005, -2.98057792e-008, 0.999991059))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.671806335, 0.313799143, 0.99999249, -3.12912107e-007, 8.53831443e-006, 3.12901221e-007, 0.999993801, 1.22185497e-006, -9.2088394e-006, -1.28146849e-006, 0.999990761))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.503873825, 0.0199302435, 0.999991298, 7.03437308e-013, -4.47016646e-007, 7.10542736e-013, 0.999993205, -2.98063618e-008, -2.38406756e-007, -2.98045819e-008, 0.999990702))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.503999949))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.671850204, 0.0200046301, 0.999992192, -4.61934746e-007, 1.15483172e-005, 4.61917068e-007, 0.999993801, 1.43046918e-006, -1.22188476e-005, -1.49008054e-006, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.47002983, 0.0187981129, 0.999992311, 3.26139116e-012, -9.10005256e-005, 8.38440428e-013, 0.999993801, -2.98064791e-008, 9.0330177e-005, -2.98056761e-008, 0.999990582))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 1, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.335999995))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.46959877, 0.0198251009, 0.999991536, 1.05870868e-012, -1.29638747e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.20996647e-005, -2.98093603e-008, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.462000072, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.839723587, 0.0198229551, 0.999991536, 9.45021839e-013, -1.17124828e-005, 7.88702437e-013, 0.999993205, -2.98063618e-008, 1.08482727e-005, -2.98093568e-008, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.42800009, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.59558678, 0.0198256969, 0.999991596, 1.00897068e-012, -1.13843653e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.08330742e-005, -2.9807449e-008, 0.999990523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.335920334, 0.0199792385, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -0.756378174, -0.277729034, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335920334, -0.0639791489, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.756343842, -0.193767548, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -7.62939453e-006, 0.0199067593, 0.999989629, -2.98013205e-008, 5.96000973e-008, 7.45057989e-008, 0.999991119, -2.98054701e-008, -8.64197318e-007, -2.98050864e-008, 0.999986231))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.938070297, 0.137874603, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.728212357, 0.305807114, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.672271729, 0.0161094666, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.125976563, 0.0199372768, 0.999988139, -1.04306544e-007, -2.23536517e-007, 1.04307773e-007, 0.999989748, -2.98051006e-008, -5.51243829e-007, -2.98054808e-008, 0.999983549))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -1.10592842, 0.221801758, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, -0.728153229, 0.137924194, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.84018898, 0.184049606, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335920334, 0.103946328, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335897446, -0.0639851093, 0.99998498, 1.83320026e-012, -4.87146372e-006, 1.17239551e-012, 0.999987602, -5.96116934e-008, 3.53046926e-006, -5.96116934e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.756332397, -0.109825134, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -1.10591888, 0.305747986, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -0.728061676, 0.221828461, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.67234993, -0.193754196, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.756284714, 0.0161113739, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.672286987, 0.18406105, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335897446, 0.0199738741, 0.99998498, 1.85451654e-012, -5.05021944e-006, 1.15818466e-012, 0.999987602, -5.96116934e-008, 3.7092268e-006, -5.96116934e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10585022, 0.137811661, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.938016891, 0.30575943, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.812088013, 0.221776962, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.840309143, -0.193778992, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.644163132, 0.22177124, 0.999991596, -1.63911096e-007, 4.47207675e-008, -4.63979092e-007, 0.707178771, 0.707022071, -4.51969669e-007, -0.70702374, 0.707177103))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756244659, 0.184059143, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.937994003, 0.221740723, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.84022522, 0.0160942078, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.335897446, 0.103937507, 0.99998498, 1.87583282e-012, -5.22897699e-006, 1.15107923e-012, 0.999987602, -5.96116934e-008, 3.88798253e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.125947952, 0.019931674, 0.999988019, -7.45044133e-008, 1.19185643e-007, 7.45060262e-008, 0.99998939, -5.96073733e-008, -3.724208e-007, -5.96076077e-008, 0.999982655))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000033, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.671842575, -0.273898602, 0.999992251, 6.75015599e-013, 3.53156747e-006, 8.73967565e-013, 0.999993801, -8.93913352e-008, -4.2020838e-006, 2.97793719e-008, 0.999990523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.336000025, 0.335999936))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -2.22545815, 0.019826293, 0.999991477, -1.19207421e-007, -1.51692248e-005, 1.19209091e-007, 0.999993205, -2.98050331e-008, 1.44987343e-005, -2.9807719e-008, 0.999990404))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.461999953, 1, 1))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -2.1415081, 0.0198848248, 0.999991477, 1.07291953e-012, -1.30532799e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.21592684e-005, -2.98089127e-008, 0.999990523))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 0.840000212, 0.839999676))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.840000033, 0.671999991))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.72933006, 0.0198259354, 0.999991477, 1.04449782e-012, -1.20996147e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.11906975e-005, -2.98092999e-008, 0.999990761))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
function attackone()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-70)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(-5),math.rad(60)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(20)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-150), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-40),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(6*i,math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711414',HitboxA,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxA.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxA.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30))*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.3)
end
scfr = nil
attack = false
end
function attacktwo()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(40))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711427',HitboxB,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxB.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxB.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-70), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-50),math.rad(-30))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
end
scfr = nil
attack = false
end
function attackthree()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711414',HitboxA,1,1)
so('http://roblox.com/asset/?id=243711427',HitboxB,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxA.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxA.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
local blcf2 = HitboxB.CFrame*CFrame.new(0,.5,0)
if scfr2 and (HitboxB.Position-scfr2.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr2*CFrame.new(0,h/2,0)).p,(scfr2*CFrame.new(0,-h/2,0)).p,(blcf2*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf2*CFrame.new(0,h/2,0)).p,(blcf2*CFrame.new(0,-h/2,0)).p,(scfr2*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr2 = blcf2
elseif not scfr2 then
scfr2 = blcf2
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-90)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(50)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(50)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
Torso.Velocity=Head.CFrame.lookVector*100
end
scfr = nil
scfr2 = nil
attack = false
end
mouse.Button1Down:connect(function()
if attack == false and attacktype == 1 then
attacktype = 2
attackone()
elseif attack == false and attacktype == 2 then
attacktype = 3
attacktwo()
elseif attack == false and attacktype == 3 then
attacktype = 1
attackthree()
end
end)
mouse.KeyDown:connect(function(k)
k=k:lower()
if attack == false and k == '' then
end
end)
local sine = 0
local change = 1
local val = 0
while true do
swait()
sine = sine + change
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
local velderp=RootPart.Velocity.y
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
if equipped==true or equipped==false then
if attack==false then
idle=idle+1
else
idle=0
end
if idle>=500 then
if attack==false then
end
end
if RootPart.Velocity.y > 1 and hitfloor==nil then
Anim="Jump"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
Anim="Fall"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
elseif torvel<1 and hitfloor~=nil then
Anim="Idle"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-10),math.rad(50)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-130), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-50),math.rad(-30)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
end
elseif torvel>2 and hitfloor~=nil then
Anim="Walk"
if attack==false then
change=3
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(10)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
end
end
if #Effects>0 then
for e=1,#Effects do
if Effects[e]~=nil then
local Thing=Effects[e]
if Thing~=nil then
local Part=Thing[1]
local Mode=Thing[2]
local Delay=Thing[3]
local IncX=Thing[4]
local IncY=Thing[5]
local IncZ=Thing[6]
if Thing[1].Transparency<=1 then
if Thing[2]=="Block1" then
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Cylinder" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Blood" then
Mesh=Thing[7]
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Elec" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Disappear" then
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
end
else
Part.Parent=nil
table.remove(Effects,e)
end
end
end
end
end
end
------------------------------
p = game.Players.LocalPlayer
char = p.Character
torso = char.Torso
attacking = false
track = false
curcam = Workspace.CurrentCamera
name = 'KFM'
pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end)
m = Instance.new("Model",char) m.Name = "legetony"
cfn,ang = CFrame.new,CFrame.Angles
v3n = Vector3.new
rs = torso["Right Shoulder"]
ls = torso["Left Shoulder"]
rh = torso["Right Hip"]
lh = torso["Right Hip"]
neck = torso["Neck"]
rw,lw = nil,nil
rhw,lhw = nil,nil
local orgc1 = rs.C1
rarm = char["Right Arm"]
larm = char["Left Arm"]
rleg = char["Right Leg"]
lleg = char["Left Leg"]
normposr = cfn(1.5,.5,0)
normposl = cfn(-1.5,.5,0)
normposr2 = cfn(-.5,-1.5,0)
normposl2 = cfn(.5,-1.5,0)
normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
holdpos = normposr*ang(math.pi/2,0,0)
holdpos2 = normposl*ang(math.pi/2,0,0)
lock = {["R"] =
function(a)
if a == 1 then
rabrick = T.P(1,1,1,"White",1,false,false)
rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
T.W(rarm,rabrick,0,-.5,0,0,0,0)
elseif a == 2 then
rlbrick = T.P(1,1,1,"White",1,false,false)
rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
T.W(rleg,rlbrick,0,-.5,0,0,0,0)
elseif a == 0 then
rs.Parent = torso
rw.Parent = nil
rabrick:Destroy() rabrick = nil
elseif a == -1 then
rhw.Parent = nil
rh.Parent = torso
rlbrick:Destroy() rlbrick = nil
end
end
, ["L"] = function(a)
if a == 1 then
labrick = T.P(1,1,1,"White",1,false,false)
lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
T.W(larm,labrick,0,-.5,0,0,0,0)
elseif a == 2 then
llbrick = T.P(1,1,1,"White",1,false,false)
lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
T.W(lleg,llbrick,0,-.5,0,0,0,0)
elseif a == 0 then
ls.Parent = torso
lw.Parent = nil
labrick:Destroy() labrick = nil
elseif a == -1 then
lhw.Parent = nil
lh.Parent = torso
llbrick:Destroy() llbrick = nil
end
end}
------TOOOOOLS------
T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
if typee ~= nil then
c = Instance.new("WedgePart",m)
else
c = Instance.new("Part",m)
end
c.TopSurface,c.BottomSurface = 0,0
c.formFactor = "Custom"
c.Size = Vector3.new(x,y,z)
if color ~= "random" then
c.BrickColor = BrickColor.new(color)
else c.BrickColor = BrickColor:random() end
c.Transparency = transparency
c.CanCollide = cancollide
if anchored ~= nil then c.Anchored = anchored end
if parent ~= nil then c.Parent = parent end
return c
end
,
["C"] = function(func) coroutine.resume(coroutine.create(func)) end
,
["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
w = Instance.new("Motor",m)
if parent ~= nil then w.Parent = parent end
w.Part0,w.Part1 = part0,part1
w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
return w
end
,
["BG"] = function(parent)
local c = Instance.new("BodyGyro",parent)
c.P = 20e+003
c.cframe = parent.CFrame
c.maxTorque = Vector3.new(c.P,c.P,c.P)
return c
end
,
["BP"] = function(parent,position)
local bp = Instance.new("BodyPosition",parent)
bp.maxForce = Vector3.new()*math.huge
bp.position = position
return bp
end
,
["F"] = function(parent,size,heat,color,secondcolor,enabled)
f = Instance.new("Fire",parent)
f.Size = size
f.Heat = heat
if enabled ~= nil then f.Enabled = enabled end
if color ~= nil then f.Color = BrickColor.new(color).Color end
if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
return f
end
,
["FM"] = function(parent,meshid,x,y,z,meshtexture)
if meshid == "cylinder" then
mesh = Instance.new("CylinderMesh",parent)
mesh.Scale = Vector3.new(x,y,z)
return mesh
else
mesh = Instance.new("SpecialMesh",parent)
if meshid ~= "sphere" then
if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
mesh.MeshId = "rbxassetid://"..meshids[meshid]
end
else mesh.MeshType = 3 end
mesh.Scale = Vector3.new(x,y,z)
if meshtexture ~= nil then
if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
end
return mesh
end
end
,
["Track"] = function(obj,s,t,lt,color,fade)
coroutine.resume(coroutine.create(function()
while track do
old = obj.Position
wait()
new = obj.Position
mag = (old-new).magnitude
dist = (old+new)/2
local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
Instance.new("CylinderMesh",ray)
ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
if fade ~= nil then
delay(lt,function()
for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
else
game:GetService("Debris"):AddItem(ray,lt)
end
if color ~= nil then ray.BrickColor = BrickColor.new(color) end
end
end)) end
}
--------------------------------------------------
----------------DAMAGE FUNCTION--------------------
function damage(hit,amount,show,del,poikkeus)
for i,v in pairs(hit:GetChildren()) do
if v:IsA("Humanoid") and v.Parent ~= char then
amo = 0
function showa(p)
if show == true then
for i,o in pairs(p:GetChildren()) do
if o:IsA("BillboardGui") and o.Name == "satuttava" then
amo = amo+1
end end
local bbg = Instance.new("BillboardGui",p)
bbg.Adornee = p.Torso
bbg.Name = "satuttava"
bbg.Size = UDim2.new(2,0,2,0)
bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
local box = Instance.new("TextLabel",bbg)
box.Size = UDim2.new(1,0,1,0)
box.BackgroundColor = BrickColor.new("White")
box.Text = amount
box.BackgroundTransparency = .5
if amount == 0 then box.Text = "K.O" end
box.Position = UDim2.new(0,0,0,0)
box.TextScaled = true
game:GetService("Debris"):AddItem(bbg,.5)
end
end
function dame(q)
if poikkeus ~= nil then
for _,u in pairs(poikkeus) do
if q.Parent.Name ~= u then
showa(q)
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
end
end
elseif poikkeus == nil then
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
showa(q)
end
end
if del ~= nil then
local find = v.Parent:FindFirstChild("hitted")
if find == nil then
dame(v)
val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
game:GetService("Debris"):AddItem(val,del)
end
elseif del == nil then
dame(v)
end
end
end
end
-----------------------------------------------------------------
------MESHIDS---
meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
["ramen"] = 19380188}---some meshids
textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
-----------------
---MATH SHORTENINGS---
M = {["R"] = function(a,b) return math.random(a,b) end,
["Cos"] = function(a) return math.cos(a) end,
["Sin"] = function(a) return math.sin(a) end,
["D"] = function(a) return math.rad(a) end
}
for i,v in pairs(char:GetChildren()) do
if v:IsA("Clothing") or v:IsA("Hat") then v:Remove()
end end
col = char:FindFirstChild("Body Colors")
if col == nil then col = Instance.new("BodyColors",char) end
collist = {
{'LeftLegColor',"Dark stone grey"},
{'RightLegColor',"Dark stone grey"},
{'TorsoColor',"Dark stone grey"},
{'LeftArmColor',"Dark stone grey"},
{'RightArmColor',"Dark stone grey"},
}
for i,v in pairs(collist) do
col[v[1]] = BrickColor.new(v[2])
end
-------------------------------
shirt = Instance.new("Shirt", char)
shirt.Name = "Shirt"
pants = Instance.new("Pants", char)
pants.Name = "Pants"
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=279761668"
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=279765488"
-------------------------------------
bracs = Instance.new("Model",m)
for i,v in pairs({rarm,larm}) do
for i,v in pairs(bracs:children()) do if v.Name ~= 'a' then v.Material = 'Ice' end end
end
--------MAKING--------------------
h1 = T.P(1.5,1.5,1.5,'Dark stone grey',0,false,false)
h1.Material = "Fabric"
T.FM(h1,'sphere',1,1,1)
T.W(h1,char.Head,0,0,0,0,0,0)
e1 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e1,'sphere',1,1,1)
e1.Material = "Fabric"
e2 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e2,'sphere',1,1,1)
e2.Material = "Fabric"
e1w=T.W(e1,h1,.35,0,-.55,0,0,0) T.W(e2,h1,-.35,0,-.55,0,0,0)
e1w.Material = "Fabric"
dec = Instance.new("Decal")
dec.Face = 'Front'
dec.Texture = "http://www.roblox.com/asset/?id=0"
char.Head.Transparency = 1
-----------------------------------
function colorslide(obj,prop,scol,ecol,timme,override)
if scol == 'cur' then scol3 = obj.BrickColor.Color else
scol3 = BrickColor.new(scol).Color
end
ecol3 = BrickColor.new(ecol).Color
for i = 0,1,timme do
wait()
pos = v3n(scol3.r,scol3.g,scol3.b):Lerp(v3n(ecol3.r,ecol3.g,ecol3.b),i)
obj[prop] = Color3.new(pos.x,pos.y,pos.z)
end
end
function checkplayers(pos,radius,what)
tab = {}
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Model") and v ~= char then
for _,q in pairs(v:GetChildren()) do
if q:IsA("Humanoid") then
if (q.Torso.Position-pos).magnitude <= radius then
if what == 'char' then table.insert(tab,q.Parent)
elseif what == 'humanoid' then table.insert(tab,q)
end
end end end end end
return tab
end
function rage()
tyu = cfn(0,.2,-.5)
lock.R(1) lock.L(1)
neck.C0 = normposn
for i = 0,140,10 do
wait()
rw.C1 = (normposr*tyu)*ang(M.D(i),0,M.D(i/(140/-50)))
lw.C1 = (normposl*tyu)*ang(M.D(i),0,M.D(i/(140/50)))
neck.C0 = normposn*ang(M.D(i/(140/30)),0,0)
end
wait(1)
for i = 140,50,-20 do
wait()
rw.C1 = (normposr)*ang(M.D(-i),0,M.D(i))
lw.C1 = (normposl)*ang(M.D(-i),0,M.D(-i))
end
neck.C0 = normposn*ang(M.D(-30),0,0)
fire = T.F(torso,30,30,'Bright red','Magenta')
ef = T.P(1,1,1,'Really red',0,false,false)
ew = T.W(ef,torso,0,0,0,0,0,0,ef)
msh = T.FM(ef,'sphere',1,1,1)
for i = 0,20 do wait() ef.Transparency = i/20 msh.Scale = v3n(i,i,i)
T.C(function()
tabb = checkplayers(ef.Position,20,'char')
if #tabb > 0 then
for i,v in pairs(tabb) do damage(v,10,true,.2) end
end
end)
end
msh:Remove()
for i = 30,8,-1 do
wait() fire.Size = i
end
colorslide(fire,'Color','Bright red','Deep blue',.05)
lock.R(0) lock.L(0) neck.C0 = normposn
end
hop = Instance.new("HopperBin",p.Backpack)
hop.Name = name
holdpos = normposr*ang(math.pi/2,0,0)
port,port2,bol,boltime = nil,nil,false,1
function hide()
if char.Parent ~= curcam then
char.Parent = curcam
hop.Name = name..'(h)'
else char.Parent = Workspace
hop.Name = name
end
end
function makeport1()
if not port then --- Blue portal
circle()
port = Instance.new("Model",Workspace)
port.Name = 'omakotikullankallis'
ring = T.P(1,1,1,'Deep blue',0,false,true,port) T.FM(ring,'ring',4,4,1)
ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir = T.P(3.5,.1,3.5,ring.BrickColor.Name,.5,false,true,port) T.FM(mir,'cylinder',1,1,1)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
mir.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port2 and not bol then bol = true
hit.Parent:MoveTo(mir2.Position) wait(boltime) bol = false
end end) ---- On touch event for blue portal
elseif port then ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
end
end
function makeport2()
if not port2 then
circle()
port2 = Instance.new("Model",Workspace)
port2.Name = 'omakotikullankallis'
ring2 = T.P(1,1,1,'Fabric orange',0,false,true,port2) T.FM(ring2,'ring',4,4,1)
ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2 = T.P(3.5,.1,3.5,ring2.BrickColor.Name,.5,false,true,port2) T.FM(mir2,'cylinder',1,1,1)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
mir2.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port and not bol then bol = true
hit.Parent:MoveTo(mir.Position) wait(boltime) bol = false
end end) ---- On touch event for orange portal
elseif port2 then ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
end
end
holdpos2 = normposl*ang(math.pi/2,0,0)
function punch()
fires = {}
lock.R(1) lock.L(1)
for i,v in pairs(bracs:children()) do
if v.Name ~= 'a' then table.insert(fires,T.F(v,.5,.5,'White','Black')) end
end
sticks = Instance.new("Model",m)
rr = .5
for _,v in pairs({rarm,larm}) do
for _,pos in pairs({ {0,-rr}, {0,rr}, {rr,0}, {-rr,0} }) do
stick = T.P(.3,.3,2.5,'Really blue',.5,false,false,sticks)
stick.Touched:connect(function(hit) damage(hit.Parent,10000,true,.05) end)
T.W(stick,v,pos[1],-.6,pos[2],-math.pi/2,0,0)
end end
for i = 1,10 do
rw.C1 = holdpos*cfn(0,.5,0)
lw.C1 = (holdpos2*cfn(0,-.5,0))*ang(0,0,M.D(30))
wait(.05)
rw.C1 = (holdpos*cfn(0,-.5,0))*ang(0,0,M.D(-30))
lw.C1 = holdpos2*cfn(0,.5,0)
wait(.05)
end
sticks:Remove() for _,v in pairs(fires) do v:Remove() end
lock.R(0) lock.L(0)
end
Workspace.ChildRemoved:connect(function(child)
if child == port then port = nil
elseif child == port2 then port2 = nil
end end)
function removeports()
if port then port:Remove() port = nil end
if port2 then port2:Remove() port2 = nil end
for i,v in pairs(Workspace:GetChildren()) do if v.Name == 'omakotikullankallis' then v:Remove() end end
end
function circle()
r = .5
lock.R(1)
for i = 0,90,10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
for i = 0,360,25 do
wait()
rw.C1 = holdpos*ang(M.Cos(M.D(-i))*r,0,M.Sin(M.D(-i))*r)
end
for i = 90,0,-10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
lock.R(0)
end
Workspace.ChildRemoved:connect(function(child) if child == port then port = nil elseif child == port2 then port2 = nil end end) --- Nill's portals if they dont exist
function bowl(mouse)
colorslide(e1,'Color','cur','Royal purple',.05)
dec.Parent = e1
light = T.P(1,2,1,'Royal purple',.8,false,false)
light.Touched:connect(function(hit) damage(hit.Parent,10000,false,1) end)
T.FM(light,'spike',.5,2,.5)
T.W(light,e1,0,0,-1,math.pi/2,0,0)
holding = true
posa = e1.Position
while holding do
wait()
lv = char.Head.CFrame.lookVector
pos3 = ((posa-mouse.hit.p).unit):Cross(lv)
e1w.C1 = cfn(.35,0,-.55)*ang(0,pos3.Y,0)
end
light:Remove()
colorslide(e1,'Color','cur','Really black',.05) e1w.C1 = cfn(.35,0,-.55)
dec.Parent = nil
end
sitbp = nil
function sit()
if sitbp == nil then
lock.R(2) lock.L(2)
sitbp = T.BP(torso,torso.Position)
for i = 1,90,5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position - v3n(0,i/(90),0)
end
elseif sitbp ~= nil then
for i = 90,1,-5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position + v3n(0,i/(90),0)
end
lock.R(-1) lock.L(-1)
sitbp:Remove() sitbp = nil
end
end
function freemyself()
for i,v in pairs(char:GetChildren()) do
for _,o in pairs(v:GetChildren()) do
for _,q in pairs({'BodyPosition','BodyForce','BodyVelocity','BodyGyro'}) do
if o:IsA(q) then o:Remove() end
end
if o:IsA("Part") then
o.Anchored = false end
end
end
sk = T.P(1,1,1,'Royal Purple',0,false,false)
T.W(sk,torso,0,0,0,0,0,0,sk)
msh = T.FM(sk,'skull',3,3,3)
for i = 0,1,.05 do wait() sk.Transparency = i end sk:Remove()
end
function breake()
welds = {}
bps = {}
possa = torso.Position
for i,v in pairs(torso:children()) do
if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
end
end
for _,v in pairs(char:children()) do
if v:IsA("BasePart") then v.CanCollide = true end
end
local hum = char.Humanoid
hum.Parent = nil
holding = true
while holding do wait() end
for i,v in pairs(welds) do
v.Parent = torso
v.Part1 = v.Part1
end
hum.Parent = char
end
klist = {
{'fa',function() rage() end},
{'qa',function() makeport1() end},
{'ea',function() makeport2() end},
{'ra',function() removeports() end},
{'ca',function(a) punch(a) end},
{'xa',function() sit() end},
{'za',function() freemyself() end},
{'va',function() hide() end},
{'ga',function() breake() end,''}
}
hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
hop.Selected:connect(function(mouse)
mouse.Button1Up:connect(function() holding = false end)
mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
mouse.KeyDown:connect(function(key) if attacking then return end
for i,v in pairs(klist) do
if key == v[1] then attacking = true v[2](mouse) attacking = false end
end
end)
mouse.Button1Down:connect(function() if attacking then return end attacking = true bowl(mouse) attacking = false end)
end)
------------------------------------------
z = Instance.new("Sound", char)
z.SoundId = "rbxassetid://275564512"--303570180
z.Looped = true
z.Pitch = 1
z.Volume = 10
wait(.1)
z:Play()
----------------------------------------------------
p = game.Players.LocalPlayer
char = p.Character
des = false
fling = true
dot = false
falling = false
jump = true
--char.Shirt:Remove()
--for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
wait()--shirt = Instance.new("Shirt", char)
--shirt.Name = "Shirt"
--pants = Instance.new("Pants", char)
--pants.Name = "Pants"
--char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
--char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
tp = true
shoot = true
hum = char.Humanoid
punch = true
neckp = char.Torso.Neck.C0
neck = char.Torso.Neck
hum.MaxHealth = 999999999
wait()
hum.Health =hum.MaxHealth
des = false
root=char.HumanoidRootPart
torso = char.Torso
char.Head.face.Texture = "rbxassetid://0"
local ChatService = game:GetService("Chat")
local player = game.Players.LocalPlayer
lig = Instance.new("PointLight",player.Character.Torso)
lig.Color=Color3.new(255,0,0)
m=player:GetMouse()
bb = Instance.new("BillboardGui",player.Character.Head)
bb.Enabled = true
function newRay(start,face,range,wat)
local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
return rey,hit,pos
end
aa1={}
torso=game.Players.LocalPlayer.Character.Torso
local WorldUp = Vector3.new(0,1,0)
function look2(Vec1,Vec2)
local Orig = Vec1
Vec1 = Vec1+Vector3.new(0,1,0)
Vec2 = Vec2+Vector3.new(0,1,0)
local Forward = (Vec2-Vec1).unit
local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
local Right = Up:Cross(Forward).unit
Forward = -Forward
Right = -Right
return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function look(CFr,Vec2)
local A = Vector3.new(0,0,0)
local B = CFr:inverse()*Vec2
local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
if B.Z > 0 then
CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
elseif B.Z == 0 then
if B.Y > 0 then
CF = CFr*CFrame.Angles(math.pi/2,0,0)
elseif B.Y < 0 then
CF = CFr*CFrame.Angles(-math.pi/2,0,0)
else
CF = CFr
end
end
local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
local Up = Vector3.new(X,Y,Z)
local Forward = (Vec2-CFr.p).unit
local Right = Up:Cross(Forward)
Forward = -Forward
Right = -Right
return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function simulate(j,d,m,r,t)
local joint = j
for i,v in ipairs(t) do
if v[1]:FindFirstChild("Weld") then
local stiff = m.CFrame.lookVector*0.03
if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
local pos = joint.p+(dir*(d*0.5))
--if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
local inv = v[1].Weld.Part0.CFrame
local rel1 = inv:inverse()*pos
local rel2 = inv:inverse()*(pos-(dir*dis))
local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
v[1].Weld.C0 = cf
v[2] = inv*cf
--v[1].CFrame = cf
end
end
end
for i=1,8 do
local p = Instance.new("Part",char)
p.Anchored = false
p.BrickColor = BrickColor.new("Dark stone grey")
p.CanCollide = false
p.FormFactor="Custom"
p.Material = "Fabric"
p.TopSurface = "SmoothNoOutlines"
p.BottomSurface = "SmoothNoOutlines"
p.RightSurface = "SmoothNoOutlines"
p.LeftSurface = "SmoothNoOutlines"
p.FrontSurface = "SmoothNoOutlines"
p.BackSurface = "SmoothNoOutlines"
p.Size=Vector3.new(2,.2,0.2)
p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
mesh = Instance.new("BlockMesh",p)
mesh.Scale = Vector3.new(1,1,4)
local w = Instance.new("Motor6D",p)
w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
w.Part1 = p
w.Name = "Weld"
--table.insert(aa1,p)
aa1[i] = {p,p.CFrame}
end
game:service"RunService".Stepped:connect(function()
simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
end)
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0,200,0,50)
bb.StudsOffset = Vector3.new(0,1,0)
gui=Instance.new("TextBox",bb)
gui.Text = "* "
gui.Size = UDim2.new(0,133,0,45)
gui.Position=UDim2.new(0,57,0,-40)
gui.TextColor3 = Color3.new(255,255,255)
gui.BackgroundColor3=Color3.new(0,0,0)
gui.TextWrapped = true
gui.TextScaled = true
gui.TextXAlignment = "Left"
gui.TextYAlignment = "Top"
gui.Visible = false
gui.BorderColor3 = Color3.new(0,0,0)
punch2 = true
gui1=Instance.new("TextButton",bb)
gui1.Position=UDim2.new(0,5,0,-43)
gui1.Size = UDim2.new(0,190,0,51)
gui1.TextColor3 = Color3.new(255,255,255)
gui1.BackgroundColor3=Color3.new(255,255,255)
jump2 = true
gui1.Visible = false
img = Instance.new("ImageLabel",bb)
img.Size = UDim2.new(0,46,0,47)
img.Position = UDim2.new(0,10,0,-41)
img.Image = "rbxassetid://447301252"
img.BorderColor3 = Color3.new(0,0,0)
img.Visible = false
soka = Instance.new("Sound",char)
soka.SoundId = "http://www.roblox.com/asset/?id = 0"
soka.Volume = 1
boom = Instance.new("Sound",char)
boom.SoundId = "http://www.roblox.com/asset/?id = 0"
boom.Volume = 1
boom2 = Instance.new("Sound",char)
boom2.SoundId = "http://www.roblox.com/asset/?id = 0"
boom2.Volume = 1
boom3 = Instance.new("Sound",char)
boom3.SoundId = "http://www.roblox.com/asset/?id = 0"
boom3.Volume = 1
tps = Instance.new("Sound",char)
tps.SoundId = "http://www.roblox.com/asset/?id = 0"
tps.Volume = 1
asd = Instance.new("Sound",char)
asd.SoundId = "http://www.roblox.com/asset/?id = 0"
asd.Volume =1
asd1 = Instance.new("Sound",char)
asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
asd2 = Instance.new("Sound",char)
asd2.SoundId = "http://www.roblox.com/asset/?id = 0"
asd2.Looped = true
asd2.Volume = 5
asd3 = Instance.new("Sound",char)
asd3.SoundId = "http://www.roblox.com/asset/?id = 0"
asd3.Looped = true
asd4 = Instance.new("Sound",char)
asd4.SoundId = "http://www.roblox.com/asset/?id = 0"
asd4.Looped = true
asd5 = Instance.new("Sound",char)
asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
asd5.Looped = true
gas = Instance.new("Sound",char)
gas.SoundId = "http://www.roblox.com/asset/?id = 0"
asd6 = Instance.new("Sound",char)
asd6.SoundId = "http://www.roblox.com/asset/?id = 0"
asd6.Looped = true
function play(play)
asd:Play()
wait(0.05)
--asd1:Play()
end
------------
-------------------------
function stream(origin,dir,length,size)
local parts = {}
for i = 1,length do
local p = Instance.new("Part",char)
p.Anchored = true
p.Transparency = 0.5
p.TopSurface = 0
p.BottomSurface = 0
p.CanCollide = false
p.BrickColor = BrickColor.new("Dark stone grey")
p.Size = Vector3.new(10,30,10) -- for now
p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
game:GetService("Debris"):AddItem(p,3)
end
Spawn(function()
while parts do
for i,v in pairs(parts) do
if v[1].Parent == char then
v[1].CFrame = v[1].CFrame*v[2]
else
parts = nil
break
end
end
wait(0.02)
end
end)
end
--[[-- listen for their chatting
player.Chatted:connect(function(message)
a = string.len(message)
gui.Text = ""
gui.Visible = true
gui1.Visible = true
des = false
img.Visible = true
print(a)
if dot == false then
gui.Text = ""
for i = 1,string.len(message) do
gui.Text =gui.Text..message:sub(i,i)
play()
end
end
des = true
end)]]--
m.KeyDown:connect(function(k)
if k == "g" then
asd2:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "r" then
asd4:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "q" then
asd3:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "z" then
img.Image = "rbxassetid://332766052"
end
end)
m.KeyDown:connect(function(k)
if k == "c" then
img.Image = "rbxassetid://447301252"
end
end)
m.KeyDown:connect(function(k)
if k == "b" then
asd6:Play()
end
end)
mouse = p:GetMouse()
m.KeyDown:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 100
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 50 then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 52 then
char.Head.face.Texture = "rbxassetid://444037452"
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 51 then
char.Head.face.Texture = "rbxassetid://332768867"
end
end)
m.KeyUp:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 16
end
end)
p.Chatted:connect(function(m)
if m == "Okay." then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "x" then
if des == true then
gui.Visible = false
gui.Text = "* "
gui1.Visible = false
img.Visible = false
end
end
end)
m.KeyDown:connect(function(key)
if key == "ja" then
if tp == true then
tp = false
tps:Play()
char.Head.face.Parent = game.Lighting
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
end
end
wait(0.5)
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
end
end
char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
char.HumanoidRootPart.Transparency = 1
game.Lighting.face.Parent = char.Head
wait(0.2)
tp = true
end
end
end)
m.KeyDown:connect(function(key)
if key == "ta" then
if punch2 == true then
punch2 = false
punch = false
local ChatService = game:GetService("Chat")
neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
ChatService:Chat(char.Head, "Mind if I get Serious?")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head, "SERIOUS PUNCH.")
neck.C0 = neckp
wait(0.6)
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
wait()
killbrick2 = Instance.new("Part",char)
killbrick2.Size = Vector3.new(80,80,9000)
killbrick2.Transparency = 1
killbrick2.CanCollide = true
wait(0.1)
killbrick2.CanCollide = false
killbrick2.Anchored = true
killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
killbrick2.Touched:connect(function(h)
local x = h.Parent:FindFirstChild("Humanoid")
if x then
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x.Parent:BreakJoints()
wait()
safe = true
end
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Dark stone grey")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
local rng1 = Instance.new("Part", char)
rng1.Anchored = true
rng1.BrickColor = BrickColor.new("Dark stone grey")
rng1.CanCollide = false
rng1.FormFactor = 3
rng1.Name = "Ring"
rng1.Size = Vector3.new(1, 1, 1)
rng1.Transparency = 0.8
rng1.TopSurface = 0
rng1.BottomSurface = 0
rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm1 = Instance.new("SpecialMesh", rng1)
rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm1.Scale = Vector3.new(1, 1.3, 2)
local p = (torso.CFrame*CFrame.new(-20,0,3))
stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
local p = (torso.CFrame*CFrame.new(20,0,3))
stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
local rng2 = Instance.new("Part", char)
rng2.Anchored = true
rng2.BrickColor = BrickColor.new("Dark stone grey")
rng2.CanCollide = false
rng2.FormFactor = 3
rng2.Name = "Ring"
rng2.Size = Vector3.new(1, 1, 1)
rng2.Transparency = 0.8
rng2.TopSurface = 0
rng2.BottomSurface = 0
rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm2 = Instance.new("SpecialMesh", rng2)
rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm2.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom3:Play()
coroutine.wrap(function()
for i = 1, 35, 0.5 do
rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
wait()
end
wait()
rng:Destroy()
rng1:Destroy()
rng2:Destroy()
killbrick2:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch2 = true
punch = true
wait()
end)()
end
wait(.1)
end
end)
----------------
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
m=Instance.new('Model',Character)
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character["Right Arm"]
RightLeg=Character["Right Leg"]
LS=Torso["Left Shoulder"]
LH=Torso["Left Hip"]
RS=Torso["Right Shoulder"]
RH=Torso["Right Hip"]
Face = Head.face
Neck=Torso.Neck
it=Instance.new
attacktype=1
vt=Vector3.new
cf=CFrame.new
euler=CFrame.fromEulerAnglesXYZ
angles=CFrame.Angles
cloaked=false
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
RootPart=Character.HumanoidRootPart
RootJoint=RootPart.RootJoint
RootCF=euler(-1.57,0,3.14)
attack = false
attackdebounce = false
deb=false
equipped=true
hand=false
MMouse=nil
combo=0
mana=0
trispeed=.2
attackmode='none'
local idle=0
local Anim="Idle"
local Effects={}
local gun=false
local shoot=false
player=nil
mana=0
cam = workspace.CurrentCamera
ZTarget = nil
RocketTarget = nil
mouse=Player:GetMouse()
--save shoulders
RSH, LSH=nil, nil
--welds
RW, LW=Instance.new("Weld"), Instance.new("Weld")
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
LH=Torso["Left Hip"]
RH=Torso["Right Hip"]
TorsoColor=Torso.BrickColor
function NoOutline(Part)
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
end
player=Player
ch=Character
RSH=ch.Torso["Right Shoulder"]
LSH=ch.Torso["Left Shoulder"]
--
RSH.Parent=nil
LSH.Parent=nil
--
RW.Name="Right Shoulder"
RW.Part0=ch.Torso
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
RW.C1=cf(0, 0.5, 0)
RW.Part1=ch["Right Arm"]
RW.Parent=ch.Torso
--
LW.Name="Left Shoulder"
LW.Part0=ch.Torso
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
LW.C1=cf(0, 0.5, 0)
LW.Part1=ch["Left Arm"]
LW.Parent=ch.Torso
function swait(num)
if num==0 or num==nil then
game:service'RunService'.Heartbeat:wait(0)
else
for i=0,num do
game:service'RunService'.Heartbeat:wait(0)
end
end
end
function nooutline(part)
part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
end
function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
local fp=it("Part")
fp.formFactor=formfactor
fp.Parent=parent
fp.Reflectance=reflectance
fp.Transparency=transparency
fp.CanCollide=false
fp.Locked=true
fp.BrickColor=BrickColor.new(tostring(brickcolor))
fp.Name=name
fp.Size=size
fp.Position=Character.Torso.Position
nooutline(fp)
fp.Material=material
fp:BreakJoints()
return fp
end
function mesh(Mesh,part,meshtype,meshid,offset,scale)
local mesh=it(Mesh)
mesh.Parent=part
if Mesh=="SpecialMesh" then
mesh.MeshType=meshtype
mesh.MeshId=meshid
end
mesh.Offset=offset
mesh.Scale=scale
return mesh
end
function weld(parent,part0,part1,c0,c1)
local weld=it("Weld")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
weld.C1=c1
return weld
end
local function CFrameFromTopBack(at, top, back)
local right = top:Cross(back)
return CFrame.new(at.x, at.y, at.z,
right.x, top.x, back.x,
right.y, top.y, back.y,
right.z, top.z, back.z)
end
function Triangle(a, b, c)
local edg1 = (c-a):Dot((b-a).unit)
local edg2 = (a-b):Dot((c-b).unit)
local edg3 = (b-c):Dot((a-c).unit)
if edg1 <= (b-a).magnitude and edg1 >= 0 then
a, b, c = a, b, c
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
a, b, c = b, c, a
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
a, b, c = c, a, b
else
assert(false, "unreachable")
end
local len1 = (c-a):Dot((b-a).unit)
local len2 = (b-a).magnitude - len1
local width = (a + (b-a).unit*len1 - c).magnitude
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
local list = {}
local TrailColor = ("Dark stone grey")
if len1 > 0.01 then
local w1 = Instance.new('WedgePart', m)
game:GetService("Debris"):AddItem(w1,5)
w1.Material = "Fabric"
w1.FormFactor = 'Custom'
w1.BrickColor = BrickColor.new(TrailColor)
w1.Transparency = 0
w1.Reflectance = 0
w1.Material = "Fabric"
w1.CanCollide = false
NoOutline(w1)
local sz = Vector3.new(0.2, width, len1)
w1.Size = sz
local sp = Instance.new("SpecialMesh",w1)
sp.MeshType = "Wedge"
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
w1:BreakJoints()
w1.Anchored = true
w1.Parent = workspace
w1.Transparency = 0.7
table.insert(Effects,{w1,"Disappear",.01})
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
table.insert(list,w1)
end
if len2 > 0.01 then
local w2 = Instance.new('WedgePart', m)
game:GetService("Debris"):AddItem(w2,5)
w2.Material = "Fabric"
w2.FormFactor = 'Custom'
w2.BrickColor = BrickColor.new(TrailColor)
w2.Transparency = 0
w2.Reflectance = 0
w2.Material = "Fabric"
w2.CanCollide = false
NoOutline(w2)
local sz = Vector3.new(0.2, width, len2)
w2.Size = sz
local sp = Instance.new("SpecialMesh",w2)
sp.MeshType = "Wedge"
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
w2:BreakJoints()
w2.Anchored = true
w2.Parent = workspace
w2.Transparency = 0.7
table.insert(Effects,{w2,"Disappear",.01})
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
table.insert(list,w2)
end
return unpack(list)
end
so = function(id,par,vol,pit)
coroutine.resume(coroutine.create(function()
local sou = Instance.new("Sound",par or workspace)
sou.Volume=vol
sou.Pitch=pit or 1
sou.SoundId=id
swait()
sou:play()
game:GetService("Debris"):AddItem(sou,6)
end))
end
function clerp(a,b,t)
local qa = {QuaternionFromCFrame(a)}
local qb = {QuaternionFromCFrame(b)}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1-t
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5/s
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
else
local i = 0
if m11 > m00 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00-m11-m22+1)
local recip = 0.5/s
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
elseif i == 1 then
local s = math.sqrt(m11-m22-m00+1)
local recip = 0.5/s
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
elseif i == 2 then
local s = math.sqrt(m22-m00-m11+1)
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w*xs, w*ys, w*zs
local xx = x*xs
local xy = x*ys
local xz = x*zs
local yy = y*ys
local yz = y*zs
local zz = z*zs
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
local startInterp, finishInterp;
if cosTheta >= 0.0001 then
if (1 - cosTheta) > 0.0001 then
local theta = math.acos(cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((1-t)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = 1-t
finishInterp = t
end
else
if (1+cosTheta) > 0.0001 then
local theta = math.acos(-cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((t-1)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = t-1
finishInterp = t
end
end
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
end
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 99)), Ignore)
end
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
if hit.Parent==nil then
return
end
local h=hit.Parent:FindFirstChild("Humanoid")
for _,v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid") then
h=v
end
end
if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
h=hit.Parent.Parent:FindFirstChild("Humanoid")
end
if hit.Parent.className=="Hat" then
hit=hit.Parent.Parent:findFirstChild("Head")
end
if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
--[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
return
end]]
-- hs(hit,1.2)
local c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=game:service("Players").LocalPlayer
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
local Damage=math.random(minim,maxim)
-- h:TakeDamage(Damage)
local blocked=false
local block=hit.Parent:findFirstChild("Block")
if block~=nil then
print(block.className)
if block.className=="NumberValue" then
if block.Value>0 then
blocked=true
if decreaseblock==nil then
block.Value=block.Value-1
end
end
end
if block.className=="IntValue" then
if block.Value>0 then
blocked=true
if decreaseblock~=nil then
block.Value=block.Value-1
end
end
end
end
if blocked==false then
-- h:TakeDamage(Damage)
h.Health=h.Health-Damage
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
else
h.Health=h.Health-(Damage/2)
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
end
if Type=="Knockdown" then
local hum=hit.Parent.Humanoid
hum.PlatformStand=true
coroutine.resume(coroutine.create(function(HHumanoid)
swait(1)
HHumanoid.PlatformStand=false
end),hum)
local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
local bodvol=Instance.new("BodyVelocity")
bodvol.velocity=angle*knockback
bodvol.P=5000
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodvol.Parent=hit
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
rl.Parent=hit
game:GetService("Debris"):AddItem(bodvol,.5)
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Normal" then
local vp=Instance.new("BodyVelocity")
vp.P=500
vp.maxForce=Vector3.new(math.huge,0,math.huge)
-- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
if KnockbackType==1 then
vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
elseif KnockbackType==2 then
vp.velocity=Property.CFrame.lookVector*knockback
end
if knockback>0 then
vp.Parent=hit.Parent.Torso
end
game:GetService("Debris"):AddItem(vp,.5)
elseif Type=="Up" then
local bodyVelocity=Instance.new("BodyVelocity")
bodyVelocity.velocity=vt(0,60,0)
bodyVelocity.P=5000
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodyVelocity.Parent=hit
game:GetService("Debris"):AddItem(bodyVelocity,1)
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
rl.Parent=hit
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Snare" then
local bp=Instance.new("BodyPosition")
bp.P=2000
bp.D=100
bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
bp.position=hit.Parent.Torso.Position
bp.Parent=hit.Parent.Torso
game:GetService("Debris"):AddItem(bp,1)
elseif Type=="Target" then
local Targetting = false
if Targetting==false then
ZTarget=hit.Parent.Torso
coroutine.resume(coroutine.create(function(Part)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
swait(5)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
end),ZTarget)
local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
local targetgui=Instance.new("BillboardGui")
targetgui.Parent=ZTarget
targetgui.Size=UDim2.new(10,100,10,100)
local targ=Instance.new("ImageLabel")
targ.Parent=targetgui
targ.BackgroundTransparency=1
targ.Image="rbxassetid://4834067"
targ.Size=UDim2.new(1,0,1,0)
cam.CameraType="Scriptable"
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
Targetting=true
RocketTarget=ZTarget
for i=1,Property do
--while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
swait()
end
--workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
end
Targetting=false
RocketTarget=nil
targetgui.Parent=nil
cam.CameraType="Custom"
end
end
local debounce=Instance.new("BoolValue")
debounce.Name="DebounceHit"
debounce.Parent=hit.Parent
debounce.Value=true
game:GetService("Debris"):AddItem(debounce,Delay)
c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=Player
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
end
end
function ShowDamage(Pos, Text, Time, Color)
local Rate = (1 / 30)
local Pos = (Pos or Vector3.new(0, 0, 0))
local Text = (Text or "")
local Time = (Time or 2)
local Color = (Color or Color3.new(1, 0, 0))
local EffectPart = part("Custom",workspace,"Fabric",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
EffectPart.Anchored = true
local BillboardGui = Instance.new("BillboardGui")
BillboardGui.Size = UDim2.new(3, 0, 3, 0)
BillboardGui.Adornee = EffectPart
local TextLabel = Instance.new("TextLabel")
TextLabel.BackgroundTransparency = 1
TextLabel.Size = UDim2.new(1, 0, 1, 0)
TextLabel.Text = Text
TextLabel.TextColor3 = Color
TextLabel.TextScaled = true
TextLabel.Font = Enum.Font.ArialBold
TextLabel.Parent = BillboardGui
BillboardGui.Parent = EffectPart
game.Debris:AddItem(EffectPart, (Time + 0.1))
EffectPart.Parent = game:GetService("Workspace")
Delay(0, function()
local Frames = (Time / Rate)
for Frame = 1, Frames do
wait(Rate)
local Percent = (Frame / Frames)
EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
TextLabel.TextTransparency = Percent
end
if EffectPart and EffectPart.Parent then
EffectPart:Destroy()
end
end)
end
HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HandleA",Vector3.new(0.200000003, 0.924000025, 0.251999974))
HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0840759277, -0.00163650513, 0.993845463, 0.999998212, -1.10852261e-005, -0, 0, 1.09631201e-017, -0.999998212, 1.09064322e-005, 0.999996305, 1.38777878e-016))
mesh("BlockMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
FakeHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","FakeHandleA",Vector3.new(0.200000003, 0.420000017, 0.251999974))
FakeHandleAweld=weld(m,HandleA,FakeHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.90734863e-006, -4.76837158e-007, 0.999998212, 2.13162126e-014, -5.3632084e-007, -2.13162126e-014, 0.999998212, -1.27329857e-016, 3.57546924e-007, -4.73488936e-019, 0.999996424))
mesh("BlockMesh",FakeHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
HitboxA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HitboxA",Vector3.new(0.260399997, 2.26800036, 0.671999991))
HitboxAweld=weld(m,FakeHandleA,HitboxA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.01556396, 0.0198795795, 0.999996424, 1.79766672e-012, -1.26029063e-005, -1.79766672e-012, 0.999996424, -1.14722063e-016, 1.22454048e-005, -1.16638766e-016, 0.999992847))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.671827316, 0.313827038, 0.999993801, -3.54627962e-014, -8.19193701e-007, 4.97018401e-014, 0.99999404, -1.09530813e-013, 7.89339538e-007, 9.65395366e-014, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.503871918, 0.0200036764, 0.999996424, 5.32912303e-015, -2.68159965e-007, -5.32912473e-015, 0.999996424, -1.26083356e-016, -8.93851393e-008, -1.26327738e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.503999949))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.671840668, 0.019996047, 0.999986649, -2.4655126e-012, 4.32561137e-007, 2.59496005e-012, 0.999986768, -1.49009139e-007, 2.52821337e-007, 8.94055319e-008, 0.999984741))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.47001648, 0.0187937021, 0.999996424, 1.93773531e-007, -9.44143176e-005, -1.93700657e-007, 0.999996424, 7.7484583e-007, 9.40571117e-005, -7.74830198e-007, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 1, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.335999995))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.46961975, 0.0198013783, 0.999996424, 2.38440322e-007, -1.83236498e-005, -2.38423183e-007, 0.999996424, 9.53646634e-007, 1.79661693e-005, -9.53645667e-007, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.462000072, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.83972168, 0.0198941231, 0.999996424, 1.72305952e-012, -1.13515125e-005, -1.72305952e-012, 0.999996424, -1.15788623e-016, 1.09940074e-005, -1.15460199e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.42800009, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.59558105, 0.0198942423, 0.999996424, 1.79766672e-012, -1.14408977e-005, -1.79766672e-012, 0.999996424, -1.1639756e-016, 1.10833907e-005, -1.1500975e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.335924149, 0.0199792385, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.756420135, -0.277666092, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335924149, -0.0639793873, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756376266, -0.193712234, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.90734863e-006, 0.0200020075, 0.999994516, -4.8679409e-013, 1.78781193e-007, -4.44161797e-013, 0.99999392, -1.42889402e-016, -7.15082933e-007, -1.14757771e-016, 0.999988675))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.937992096, 0.137899399, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.728122711, 0.305858612, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.672348022, 0.0161781311, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.125961304, 0.0200021267, 0.999992847, -2.13160991e-014, -2.68156327e-007, 2.13160974e-014, 0.999992847, -1.25976285e-016, -4.46930244e-007, -2.53540519e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10586548, 0.221845627, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.728130341, 0.13794899, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840242386, 0.184112549, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335924149, 0.103946805, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.7563591, -0.109758377, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, -1.10585403, 0.305786133, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.728031158, 0.221849442, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.67241478, -0.19370079, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.756313324, 0.0161876678, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.672306061, 0.184104919, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335899353, 0.0199739933, 0.999992847, 2.18489967e-013, -4.73727596e-006, -2.18489967e-013, 0.999992847, -7.57336287e-016, 4.02222031e-006, 2.53552589e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -1.1057682, 0.137836456, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.9379673, 0.305826187, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.812028885, 0.221828461, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840332031, -0.193758011, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.644088745, 0.22183609, 0.99999547, -1.31308614e-012, 1.78738446e-007, -3.79217425e-007, 0.707180977, 0.707023621, -3.79301156e-007, -0.707025945, 0.707178891))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756282806, 0.184106827, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.937936783, 0.221797943, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840261459, 0.016160965, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.335899353, 0.103938103, 0.999992847, 2.29148081e-013, -4.9160335e-006, -2.29148081e-013, 0.999992847, -7.56970052e-016, 4.20097967e-006, 2.53277833e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, 0.125974655, 0.0200021267, 0.999992728, 2.21486258e-014, 1.78859409e-007, 7.54365239e-014, 0.999992132, -2.98020169e-008, -1.78682967e-007, -2.9802127e-008, 0.999985099))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000033, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.671825409, -0.27389431, 0.999993801, 1.20855067e-013, -2.82897417e-007, -1.17359681e-013, 0.99999404, -5.96041865e-008, 2.53045073e-007, 5.96042469e-008, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.336000025, 0.335999936))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.22543144, 0.0199115276, 0.999995947, 1.79766672e-012, -1.49265943e-005, -1.79766672e-012, 0.999995947, -1.04389876e-016, 1.4569111e-005, -1.1508405e-016, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.461999953, 1, 1))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.14149475, 0.0199415684, 0.999996424, 1.79766672e-012, -1.2781531e-005, -1.79766672e-012, 0.999996424, -1.11779232e-016, 1.24240314e-005, -1.15038324e-016, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 0.840000212, 0.839999676))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.840000033, 0.671999991))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -2.72929573, 0.0198169947, 0.999996424, 3.1294465e-007, -1.93064552e-005, -3.12920946e-007, 0.999996424, 1.25165718e-006, 1.89489765e-005, -1.2516557e-006, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HandleB",Vector3.new(0.200000003, 0.924000025, 0.251999974))
HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.115982056, 0.0891990662, 0.993835926, -0.999997854, -1.10417595e-005, 4.54747297e-013, 4.4408921e-016, -1.49011505e-008, 0.999997795, -1.09821558e-005, 0.999995708, -1.49011541e-008))
mesh("BlockMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
FakeHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","FakeHandleB",Vector3.new(0.200000003, 0.420000017, 0.251999974))
FakeHandleBweld=weld(m,HandleB,FakeHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.047870636, 5.41210175e-005, 0.999996543, 7.45058131e-008, -5.81111635e-007, -7.45051949e-008, 0.999997199, -1.49019623e-008, 3.5760695e-007, -1.49009205e-008, 0.99999553))
mesh("BlockMesh",FakeHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
HitboxB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HitboxB",Vector3.new(0.260399997, 2.26800036, 0.671999991))
HitboxBweld=weld(m,FakeHandleB,HitboxB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -2.01556969, 0.01980865, 0.999993443, 1.02318154e-012, -1.27701678e-005, 6.82121026e-013, 0.999994397, -2.98027985e-008, 1.22934016e-005, -2.98057792e-008, 0.999991059))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.671806335, 0.313799143, 0.99999249, -3.12912107e-007, 8.53831443e-006, 3.12901221e-007, 0.999993801, 1.22185497e-006, -9.2088394e-006, -1.28146849e-006, 0.999990761))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.503873825, 0.0199302435, 0.999991298, 7.03437308e-013, -4.47016646e-007, 7.10542736e-013, 0.999993205, -2.98063618e-008, -2.38406756e-007, -2.98045819e-008, 0.999990702))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.503999949))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.671850204, 0.0200046301, 0.999992192, -4.61934746e-007, 1.15483172e-005, 4.61917068e-007, 0.999993801, 1.43046918e-006, -1.22188476e-005, -1.49008054e-006, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.47002983, 0.0187981129, 0.999992311, 3.26139116e-012, -9.10005256e-005, 8.38440428e-013, 0.999993801, -2.98064791e-008, 9.0330177e-005, -2.98056761e-008, 0.999990582))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 1, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.335999995))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.46959877, 0.0198251009, 0.999991536, 1.05870868e-012, -1.29638747e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.20996647e-005, -2.98093603e-008, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.462000072, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.839723587, 0.0198229551, 0.999991536, 9.45021839e-013, -1.17124828e-005, 7.88702437e-013, 0.999993205, -2.98063618e-008, 1.08482727e-005, -2.98093568e-008, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.42800009, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.59558678, 0.0198256969, 0.999991596, 1.00897068e-012, -1.13843653e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.08330742e-005, -2.9807449e-008, 0.999990523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.335920334, 0.0199792385, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -0.756378174, -0.277729034, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335920334, -0.0639791489, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.756343842, -0.193767548, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -7.62939453e-006, 0.0199067593, 0.999989629, -2.98013205e-008, 5.96000973e-008, 7.45057989e-008, 0.999991119, -2.98054701e-008, -8.64197318e-007, -2.98050864e-008, 0.999986231))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.938070297, 0.137874603, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.728212357, 0.305807114, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.672271729, 0.0161094666, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.125976563, 0.0199372768, 0.999988139, -1.04306544e-007, -2.23536517e-007, 1.04307773e-007, 0.999989748, -2.98051006e-008, -5.51243829e-007, -2.98054808e-008, 0.999983549))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -1.10592842, 0.221801758, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, -0.728153229, 0.137924194, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.84018898, 0.184049606, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335920334, 0.103946328, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335897446, -0.0639851093, 0.99998498, 1.83320026e-012, -4.87146372e-006, 1.17239551e-012, 0.999987602, -5.96116934e-008, 3.53046926e-006, -5.96116934e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.756332397, -0.109825134, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -1.10591888, 0.305747986, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -0.728061676, 0.221828461, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.67234993, -0.193754196, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.756284714, 0.0161113739, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.672286987, 0.18406105, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335897446, 0.0199738741, 0.99998498, 1.85451654e-012, -5.05021944e-006, 1.15818466e-012, 0.999987602, -5.96116934e-008, 3.7092268e-006, -5.96116934e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10585022, 0.137811661, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.938016891, 0.30575943, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.812088013, 0.221776962, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.840309143, -0.193778992, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.644163132, 0.22177124, 0.999991596, -1.63911096e-007, 4.47207675e-008, -4.63979092e-007, 0.707178771, 0.707022071, -4.51969669e-007, -0.70702374, 0.707177103))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756244659, 0.184059143, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.937994003, 0.221740723, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.84022522, 0.0160942078, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.335897446, 0.103937507, 0.99998498, 1.87583282e-012, -5.22897699e-006, 1.15107923e-012, 0.999987602, -5.96116934e-008, 3.88798253e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.125947952, 0.019931674, 0.999988019, -7.45044133e-008, 1.19185643e-007, 7.45060262e-008, 0.99998939, -5.96073733e-008, -3.724208e-007, -5.96076077e-008, 0.999982655))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000033, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.671842575, -0.273898602, 0.999992251, 6.75015599e-013, 3.53156747e-006, 8.73967565e-013, 0.999993801, -8.93913352e-008, -4.2020838e-006, 2.97793719e-008, 0.999990523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.336000025, 0.335999936))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -2.22545815, 0.019826293, 0.999991477, -1.19207421e-007, -1.51692248e-005, 1.19209091e-007, 0.999993205, -2.98050331e-008, 1.44987343e-005, -2.9807719e-008, 0.999990404))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.461999953, 1, 1))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -2.1415081, 0.0198848248, 0.999991477, 1.07291953e-012, -1.30532799e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.21592684e-005, -2.98089127e-008, 0.999990523))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 0.840000212, 0.839999676))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.840000033, 0.671999991))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.72933006, 0.0198259354, 0.999991477, 1.04449782e-012, -1.20996147e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.11906975e-005, -2.98092999e-008, 0.999990761))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
function attackone()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-70)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(-5),math.rad(60)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(20)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-150), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-40),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(6*i,math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711414',HitboxA,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxA.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxA.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30))*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.3)
end
scfr = nil
attack = false
end
function attacktwo()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(40))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711427',HitboxB,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxB.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxB.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-70), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-50),math.rad(-30))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
end
scfr = nil
attack = false
end
function attackthree()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711414',HitboxA,1,1)
so('http://roblox.com/asset/?id=243711427',HitboxB,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxA.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxA.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
local blcf2 = HitboxB.CFrame*CFrame.new(0,.5,0)
if scfr2 and (HitboxB.Position-scfr2.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr2*CFrame.new(0,h/2,0)).p,(scfr2*CFrame.new(0,-h/2,0)).p,(blcf2*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf2*CFrame.new(0,h/2,0)).p,(blcf2*CFrame.new(0,-h/2,0)).p,(scfr2*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr2 = blcf2
elseif not scfr2 then
scfr2 = blcf2
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-90)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(50)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(50)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
Torso.Velocity=Head.CFrame.lookVector*100
end
scfr = nil
scfr2 = nil
attack = false
end
mouse.Button1Down:connect(function()
if attack == false and attacktype == 1 then
attacktype = 2
attackone()
elseif attack == false and attacktype == 2 then
attacktype = 3
attacktwo()
elseif attack == false and attacktype == 3 then
attacktype = 1
attackthree()
end
end)
mouse.KeyDown:connect(function(k)
k=k:lower()
if attack == false and k == '' then
end
end)
local sine = 0
local change = 1
local val = 0
while true do
swait()
sine = sine + change
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
local velderp=RootPart.Velocity.y
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
if equipped==true or equipped==false then
if attack==false then
idle=idle+1
else
idle=0
end
if idle>=500 then
if attack==false then
end
end
if RootPart.Velocity.y > 1 and hitfloor==nil then
Anim="Jump"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
Anim="Fall"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
elseif torvel<1 and hitfloor~=nil then
Anim="Idle"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-10),math.rad(50)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-130), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-50),math.rad(-30)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
end
elseif torvel>2 and hitfloor~=nil then
Anim="Walk"
if attack==false then
change=3
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(10)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
end
end
if #Effects>0 then
for e=1,#Effects do
if Effects[e]~=nil then
local Thing=Effects[e]
if Thing~=nil then
local Part=Thing[1]
local Mode=Thing[2]
local Delay=Thing[3]
local IncX=Thing[4]
local IncY=Thing[5]
local IncZ=Thing[6]
if Thing[1].Transparency<=1 then
if Thing[2]=="Block1" then
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Cylinder" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Blood" then
Mesh=Thing[7]
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Elec" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Disappear" then
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
end
else
Part.Parent=nil
table.remove(Effects,e)
end
end
end
end
end
end
------------------------------
ply = game.Players.LocalPlayer
char = ply.Character
torso = char.Torso
attacking = false
track = false
curcam = Workspace.CurrentCamera
name = 'KFM'
pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end)
m = Instance.new("Model",char) m.Name = "legetony"
cfn,ang = CFrame.new,CFrame.Angles
v3n = Vector3.new
rs = torso["Right Shoulder"]
ls = torso["Left Shoulder"]
rh = torso["Right Hip"]
lh = torso["Right Hip"]
neck = torso["Neck"]
rw,lw = nil,nil
rhw,lhw = nil,nil
local orgc1 = rs.C1
rarm = char["Right Arm"]
larm = char["Left Arm"]
rleg = char["Right Leg"]
lleg = char["Left Leg"]
normposr = cfn(1.5,.5,0)
normposl = cfn(-1.5,.5,0)
normposr2 = cfn(-.5,-1.5,0)
normposl2 = cfn(.5,-1.5,0)
normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
holdpos = normposr*ang(math.pi/2,0,0)
holdpos2 = normposl*ang(math.pi/2,0,0)
lock = {["R"] =
function(a)
if a == 1 then
rabrick = T.P(1,1,1,"White",1,false,false)
rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
T.W(rarm,rabrick,0,-.5,0,0,0,0)
elseif a == 2 then
rlbrick = T.P(1,1,1,"White",1,false,false)
rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
T.W(rleg,rlbrick,0,-.5,0,0,0,0)
elseif a == 0 then
rs.Parent = torso
rw.Parent = nil
rabrick:Destroy() rabrick = nil
elseif a == -1 then
rhw.Parent = nil
rh.Parent = torso
rlbrick:Destroy() rlbrick = nil
end
end
, ["L"] = function(a)
if a == 1 then
labrick = T.P(1,1,1,"White",1,false,false)
lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
T.W(larm,labrick,0,-.5,0,0,0,0)
elseif a == 2 then
llbrick = T.P(1,1,1,"White",1,false,false)
lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
T.W(lleg,llbrick,0,-.5,0,0,0,0)
elseif a == 0 then
ls.Parent = torso
lw.Parent = nil
labrick:Destroy() labrick = nil
elseif a == -1 then
lhw.Parent = nil
lh.Parent = torso
llbrick:Destroy() llbrick = nil
end
end}
------TOOOOOLS------
T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
if typee ~= nil then
c = Instance.new("WedgePart",m)
else
c = Instance.new("Part",m)
end
c.TopSurface,c.BottomSurface = 0,0
c.formFactor = "Custom"
c.Size = Vector3.new(x,y,z)
if color ~= "random" then
c.BrickColor = BrickColor.new(color)
else c.BrickColor = BrickColor:random() end
c.Transparency = transparency
c.CanCollide = cancollide
if anchored ~= nil then c.Anchored = anchored end
if parent ~= nil then c.Parent = parent end
return c
end
,
["C"] = function(func) coroutine.resume(coroutine.create(func)) end
,
["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
w = Instance.new("Motor",m)
if parent ~= nil then w.Parent = parent end
w.Part0,w.Part1 = part0,part1
w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
return w
end
,
["BG"] = function(parent)
local c = Instance.new("BodyGyro",parent)
c.P = 20e+003
c.cframe = parent.CFrame
c.maxTorque = Vector3.new(c.P,c.P,c.P)
return c
end
,
["BP"] = function(parent,position)
local bp = Instance.new("BodyPosition",parent)
bp.maxForce = Vector3.new()*math.huge
bp.position = position
return bp
end
,
["F"] = function(parent,size,heat,color,secondcolor,enabled)
f = Instance.new("Fire",parent)
f.Size = size
f.Heat = heat
if enabled ~= nil then f.Enabled = enabled end
if color ~= nil then f.Color = BrickColor.new(color).Color end
if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
return f
end
,
["FM"] = function(parent,meshid,x,y,z,meshtexture)
if meshid == "cylinder" then
mesh = Instance.new("CylinderMesh",parent)
mesh.Scale = Vector3.new(x,y,z)
return mesh
else
mesh = Instance.new("SpecialMesh",parent)
if meshid ~= "sphere" then
if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
mesh.MeshId = "rbxassetid://"..meshids[meshid]
end
else mesh.MeshType = 3 end
mesh.Scale = Vector3.new(x,y,z)
if meshtexture ~= nil then
if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
end
return mesh
end
end
,
["Track"] = function(obj,s,t,lt,color,fade)
coroutine.resume(coroutine.create(function()
while track do
old = obj.Position
wait()
new = obj.Position
mag = (old-new).magnitude
dist = (old+new)/2
local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
Instance.new("CylinderMesh",ray)
ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
if fade ~= nil then
delay(lt,function()
for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
else
game:GetService("Debris"):AddItem(ray,lt)
end
if color ~= nil then ray.BrickColor = BrickColor.new(color) end
end
end)) end
}
--------------------------------------------------
----------------DAMAGE FUNCTION--------------------
function damage(hit,amount,show,del,poikkeus)
for i,v in pairs(hit:GetChildren()) do
if v:IsA("Humanoid") and v.Parent ~= char then
amo = 0
function showa(p)
if show == true then
for i,o in pairs(p:GetChildren()) do
if o:IsA("BillboardGui") and o.Name == "satuttava" then
amo = amo+1
end end
local bbg = Instance.new("BillboardGui",p)
bbg.Adornee = p.Torso
bbg.Name = "satuttava"
bbg.Size = UDim2.new(2,0,2,0)
bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
local box = Instance.new("TextLabel",bbg)
box.Size = UDim2.new(1,0,1,0)
box.BackgroundColor = BrickColor.new("White")
box.Text = amount
box.BackgroundTransparency = .5
if amount == 0 then box.Text = "K.O" end
box.Position = UDim2.new(0,0,0,0)
box.TextScaled = true
game:GetService("Debris"):AddItem(bbg,.5)
end
end
function dame(q)
if poikkeus ~= nil then
for _,u in pairs(poikkeus) do
if q.Parent.Name ~= u then
showa(q)
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
end
end
elseif poikkeus == nil then
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
showa(q)
end
end
if del ~= nil then
local find = v.Parent:FindFirstChild("hitted")
if find == nil then
dame(v)
val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
game:GetService("Debris"):AddItem(val,del)
end
elseif del == nil then
dame(v)
end
end
end
end
-----------------------------------------------------------------
------MESHIDS---
meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
["ramen"] = 19380188}---some meshids
textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
-----------------
---MATH SHORTENINGS---
M = {["R"] = function(a,b) return math.random(a,b) end,
["Cos"] = function(a) return math.cos(a) end,
["Sin"] = function(a) return math.sin(a) end,
["D"] = function(a) return math.rad(a) end
}
for i,v in pairs(char:GetChildren()) do
if v:IsA("Clothing") or v:IsA("Hat") then v:Remove()
end end
col = char:FindFirstChild("Body Colors")
if col == nil then col = Instance.new("BodyColors",char) end
collist = {
{'LeftLegColor',"Dark stone grey"},
{'RightLegColor',"Dark stone grey"},
{'TorsoColor',"Dark stone grey"},
{'LeftArmColor',"Dark stone grey"},
{'RightArmColor',"Dark stone grey"},
}
for i,v in pairs(collist) do
col[v[1]] = BrickColor.new(v[2])
end
-------------------------------
shirt = Instance.new("Shirt", char)
shirt.Name = "Shirt"
pants = Instance.new("Pants", char)
pants.Name = "Pants"
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=279761668"
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=279765488"
-------------------------------------
bracs = Instance.new("Model",m)
for i,v in pairs({rarm,larm}) do
for i,v in pairs(bracs:children()) do if v.Name ~= 'a' then v.Material = 'Ice' end end
end
--------MAKING--------------------
h1 = T.P(1.5,1.5,1.5,'Dark stone grey',0,false,false)
h1.Material = "Fabric"
T.FM(h1,'sphere',1,1,1)
T.W(h1,char.Head,0,0,0,0,0,0)
e1 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e1,'sphere',1,1,1)
e1.Material = "Fabric"
e2 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e2,'sphere',1,1,1)
e2.Material = "Fabric"
e1w=T.W(e1,h1,.35,0,-.55,0,0,0) T.W(e2,h1,-.35,0,-.55,0,0,0)
e1w.Material = "Fabric"
dec = Instance.new("Decal")
dec.Face = 'Front'
dec.Texture = "http://www.roblox.com/asset/?id=0"
char.Head.Transparency = 1
-----------------------------------
function colorslide(obj,prop,scol,ecol,timme,override)
if scol == 'cur' then scol3 = obj.BrickColor.Color else
scol3 = BrickColor.new(scol).Color
end
ecol3 = BrickColor.new(ecol).Color
for i = 0,1,timme do
wait()
pos = v3n(scol3.r,scol3.g,scol3.b):Lerp(v3n(ecol3.r,ecol3.g,ecol3.b),i)
obj[prop] = Color3.new(pos.x,pos.y,pos.z)
end
end
function checkplayers(pos,radius,what)
tab = {}
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Model") and v ~= char then
for _,q in pairs(v:GetChildren()) do
if q:IsA("Humanoid") then
if (q.Torso.Position-pos).magnitude <= radius then
if what == 'char' then table.insert(tab,q.Parent)
elseif what == 'humanoid' then table.insert(tab,q)
end
end end end end end
return tab
end
function rage()
tyu = cfn(0,.2,-.5)
lock.R(1) lock.L(1)
neck.C0 = normposn
for i = 0,140,10 do
wait()
rw.C1 = (normposr*tyu)*ang(M.D(i),0,M.D(i/(140/-50)))
lw.C1 = (normposl*tyu)*ang(M.D(i),0,M.D(i/(140/50)))
neck.C0 = normposn*ang(M.D(i/(140/30)),0,0)
end
wait(1)
for i = 140,50,-20 do
wait()
rw.C1 = (normposr)*ang(M.D(-i),0,M.D(i))
lw.C1 = (normposl)*ang(M.D(-i),0,M.D(-i))
end
neck.C0 = normposn*ang(M.D(-30),0,0)
fire = T.F(torso,30,30,'Bright red','Magenta')
ef = T.P(1,1,1,'Really red',0,false,false)
ew = T.W(ef,torso,0,0,0,0,0,0,ef)
msh = T.FM(ef,'sphere',1,1,1)
for i = 0,20 do wait() ef.Transparency = i/20 msh.Scale = v3n(i,i,i)
T.C(function()
tabb = checkplayers(ef.Position,20,'char')
if #tabb > 0 then
for i,v in pairs(tabb) do damage(v,10,true,.2) end
end
end)
end
msh:Remove()
for i = 30,8,-1 do
wait() fire.Size = i
end
colorslide(fire,'Color','Bright red','Deep blue',.05)
lock.R(0) lock.L(0) neck.C0 = normposn
end
hop = Instance.new("HopperBin",ply.Backpack)
hop.Name = name
holdpos = normposr*ang(math.pi/2,0,0)
port,port2,bol,boltime = nil,nil,false,1
function hide()
if char.Parent ~= curcam then
char.Parent = curcam
hop.Name = name..'(h)'
else char.Parent = Workspace
hop.Name = name
end
end
function makeport1()
if not port then --- Blue portal
circle()
port = Instance.new("Model",Workspace)
port.Name = 'omakotikullankallis'
ring = T.P(1,1,1,'Deep blue',0,false,true,port) T.FM(ring,'ring',4,4,1)
ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir = T.P(3.5,.1,3.5,ring.BrickColor.Name,.5,false,true,port) T.FM(mir,'cylinder',1,1,1)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
mir.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port2 and not bol then bol = true
hit.Parent:MoveTo(mir2.Position) wait(boltime) bol = false
end end) ---- On touch event for blue portal
elseif port then ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
end
end
function makeport2()
if not port2 then
circle()
port2 = Instance.new("Model",Workspace)
port2.Name = 'omakotikullankallis'
ring2 = T.P(1,1,1,'Fabric orange',0,false,true,port2) T.FM(ring2,'ring',4,4,1)
ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2 = T.P(3.5,.1,3.5,ring2.BrickColor.Name,.5,false,true,port2) T.FM(mir2,'cylinder',1,1,1)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
mir2.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port and not bol then bol = true
hit.Parent:MoveTo(mir.Position) wait(boltime) bol = false
end end) ---- On touch event for orange portal
elseif port2 then ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
end
end
holdpos2 = normposl*ang(math.pi/2,0,0)
function punch()
fires = {}
lock.R(1) lock.L(1)
for i,v in pairs(bracs:children()) do
if v.Name ~= 'a' then table.insert(fires,T.F(v,.5,.5,'White','Black')) end
end
sticks = Instance.new("Model",m)
rr = .5
for _,v in pairs({rarm,larm}) do
for _,pos in pairs({ {0,-rr}, {0,rr}, {rr,0}, {-rr,0} }) do
stick = T.P(.3,.3,2.5,'Really blue',.5,false,false,sticks)
stick.Touched:connect(function(hit) damage(hit.Parent,10000,true,.05) end)
T.W(stick,v,pos[1],-.6,pos[2],-math.pi/2,0,0)
end end
for i = 1,10 do
rw.C1 = holdpos*cfn(0,.5,0)
lw.C1 = (holdpos2*cfn(0,-.5,0))*ang(0,0,M.D(30))
wait(.05)
rw.C1 = (holdpos*cfn(0,-.5,0))*ang(0,0,M.D(-30))
lw.C1 = holdpos2*cfn(0,.5,0)
wait(.05)
end
sticks:Remove() for _,v in pairs(fires) do v:Remove() end
lock.R(0) lock.L(0)
end
Workspace.ChildRemoved:connect(function(child)
if child == port then port = nil
elseif child == port2 then port2 = nil
end end)
function removeports()
if port then port:Remove() port = nil end
if port2 then port2:Remove() port2 = nil end
for i,v in pairs(Workspace:GetChildren()) do if v.Name == 'omakotikullankallis' then v:Remove() end end
end
function circle()
r = .5
lock.R(1)
for i = 0,90,10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
for i = 0,360,25 do
wait()
rw.C1 = holdpos*ang(M.Cos(M.D(-i))*r,0,M.Sin(M.D(-i))*r)
end
for i = 90,0,-10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
lock.R(0)
end
Workspace.ChildRemoved:connect(function(child) if child == port then port = nil elseif child == port2 then port2 = nil end end) --- Nill's portals if they dont exist
function bowl(mouse)
colorslide(e1,'Color','cur','Royal purple',.05)
dec.Parent = e1
light = T.P(1,2,1,'Royal purple',.8,false,false)
light.Touched:connect(function(hit) damage(hit.Parent,10000,false,1) end)
T.FM(light,'spike',.5,2,.5)
T.W(light,e1,0,0,-1,math.pi/2,0,0)
holding = true
posa = e1.Position
while holding do
wait()
lv = char.Head.CFrame.lookVector
pos3 = ((posa-mouse.hit.p).unit):Cross(lv)
e1w.C1 = cfn(.35,0,-.55)*ang(0,pos3.Y,0)
end
light:Remove()
colorslide(e1,'Color','cur','Really black',.05) e1w.C1 = cfn(.35,0,-.55)
dec.Parent = nil
end
sitbp = nil
function sit()
if sitbp == nil then
lock.R(2) lock.L(2)
sitbp = T.BP(torso,torso.Position)
for i = 1,90,5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position - v3n(0,i/(90),0)
end
elseif sitbp ~= nil then
for i = 90,1,-5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position + v3n(0,i/(90),0)
end
lock.R(-1) lock.L(-1)
sitbp:Remove() sitbp = nil
end
end
function freemyself()
for i,v in pairs(char:GetChildren()) do
for _,o in pairs(v:GetChildren()) do
for _,q in pairs({'BodyPosition','BodyForce','BodyVelocity','BodyGyro'}) do
if o:IsA(q) then o:Remove() end
end
if o:IsA("Part") then
o.Anchored = false end
end
end
sk = T.P(1,1,1,'Royal Purple',0,false,false)
T.W(sk,torso,0,0,0,0,0,0,sk)
msh = T.FM(sk,'skull',3,3,3)
for i = 0,1,.05 do wait() sk.Transparency = i end sk:Remove()
end
function breake()
welds = {}
bps = {}
possa = torso.Position
for i,v in pairs(torso:children()) do
if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
end
end
for _,v in pairs(char:children()) do
if v:IsA("BasePart") then v.CanCollide = true end
end
local hum = char.Humanoid
hum.Parent = nil
holding = true
while holding do wait() end
for i,v in pairs(welds) do
v.Parent = torso
v.Part1 = v.Part1
end
hum.Parent = char
end
klist = {
{'fa',function() rage() end},
{'qa',function() makeport1() end},
{'ea',function() makeport2() end},
{'ra',function() removeports() end},
{'ca',function(a) punch(a) end},
{'xa',function() sit() end},
{'za',function() freemyself() end},
{'va',function() hide() end},
{'ga',function() breake() end,''}
}
hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
hop.Selected:connect(function(mouse)
mouse.Button1Up:connect(function() holding = false end)
mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
mouse.KeyDown:connect(function(key) if attacking then return end
for i,v in pairs(klist) do
if key == v[1] then attacking = true v[2](mouse) attacking = false end
end
end)
mouse.Button1Down:connect(function() if attacking then return end attacking = true bowl(mouse) attacking = false end)
end)
torso = char.Torso
attacking = false
track = false
curcam = Workspace.CurrentCamera
name = 'KFM'
pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end)
m = Instance.new("Model",char) m.Name = "legetony"
cfn,ang = CFrame.new,CFrame.Angles
v3n = Vector3.new
rs = torso["Right Shoulder"]
ls = torso["Left Shoulder"]
rh = torso["Right Hip"]
lh = torso["Right Hip"]
neck = torso["Neck"]
rw,lw = nil,nil
rhw,lhw = nil,nil
local orgc1 = rs.C1
rarm = char["Right Arm"]
larm = char["Left Arm"]
rleg = char["Right Leg"]
lleg = char["Left Leg"]
normposr = cfn(1.5,.5,0)
normposl = cfn(-1.5,.5,0)
normposr2 = cfn(-.5,-1.5,0)
normposl2 = cfn(.5,-1.5,0)
normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
holdpos = normposr*ang(math.pi/2,0,0)
holdpos2 = normposl*ang(math.pi/2,0,0)
lock = {["R"] =
function(a)
if a == 1 then
rabrick = T.P(1,1,1,"White",1,false,false)
rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
T.W(rarm,rabrick,0,-.5,0,0,0,0)
elseif a == 2 then
rlbrick = T.P(1,1,1,"White",1,false,false)
rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
T.W(rleg,rlbrick,0,-.5,0,0,0,0)
elseif a == 0 then
rs.Parent = torso
rw.Parent = nil
rabrick:Destroy() rabrick = nil
elseif a == -1 then
rhw.Parent = nil
rh.Parent = torso
rlbrick:Destroy() rlbrick = nil
end
end
, ["L"] = function(a)
if a == 1 then
labrick = T.P(1,1,1,"White",1,false,false)
lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
T.W(larm,labrick,0,-.5,0,0,0,0)
elseif a == 2 then
llbrick = T.P(1,1,1,"White",1,false,false)
lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
T.W(lleg,llbrick,0,-.5,0,0,0,0)
elseif a == 0 then
ls.Parent = torso
lw.Parent = nil
labrick:Destroy() labrick = nil
elseif a == -1 then
lhw.Parent = nil
lh.Parent = torso
llbrick:Destroy() llbrick = nil
end
end}
------TOOOOOLS------
T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
if typee ~= nil then
c = Instance.new("WedgePart",m)
else
c = Instance.new("Part",m)
end
c.TopSurface,c.BottomSurface = 0,0
c.formFactor = "Custom"
c.Size = Vector3.new(x,y,z)
if color ~= "random" then
c.BrickColor = BrickColor.new(color)
else c.BrickColor = BrickColor:random() end
c.Transparency = transparency
c.CanCollide = cancollide
if anchored ~= nil then c.Anchored = anchored end
if parent ~= nil then c.Parent = parent end
return c
end
,
["C"] = function(func) coroutine.resume(coroutine.create(func)) end
,
["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
w = Instance.new("Motor",m)
if parent ~= nil then w.Parent = parent end
w.Part0,w.Part1 = part0,part1
w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
return w
end
,
["BG"] = function(parent)
local c = Instance.new("BodyGyro",parent)
c.P = 20e+003
c.cframe = parent.CFrame
c.maxTorque = Vector3.new(c.P,c.P,c.P)
return c
end
,
["BP"] = function(parent,position)
local bp = Instance.new("BodyPosition",parent)
bp.maxForce = Vector3.new()*math.huge
bp.position = position
return bp
end
,
["F"] = function(parent,size,heat,color,secondcolor,enabled)
f = Instance.new("Fire",parent)
f.Size = size
f.Heat = heat
if enabled ~= nil then f.Enabled = enabled end
if color ~= nil then f.Color = BrickColor.new(color).Color end
if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
return f
end
,
["FM"] = function(parent,meshid,x,y,z,meshtexture)
if meshid == "cylinder" then
mesh = Instance.new("CylinderMesh",parent)
mesh.Scale = Vector3.new(x,y,z)
return mesh
else
mesh = Instance.new("SpecialMesh",parent)
if meshid ~= "sphere" then
if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
mesh.MeshId = "rbxassetid://"..meshids[meshid]
end
else mesh.MeshType = 3 end
mesh.Scale = Vector3.new(x,y,z)
if meshtexture ~= nil then
if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
end
return mesh
end
end
,
["Track"] = function(obj,s,t,lt,color,fade)
coroutine.resume(coroutine.create(function()
while track do
old = obj.Position
wait()
new = obj.Position
mag = (old-new).magnitude
dist = (old+new)/2
local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
Instance.new("CylinderMesh",ray)
ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
if fade ~= nil then
delay(lt,function()
for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
else
game:GetService("Debris"):AddItem(ray,lt)
end
if color ~= nil then ray.BrickColor = BrickColor.new(color) end
end
end)) end
}
--------------------------------------------------
----------------DAMAGE FUNCTION--------------------
function damage(hit,amount,show,del,poikkeus)
for i,v in pairs(hit:GetChildren()) do
if v:IsA("Humanoid") and v.Parent ~= char then
amo = 0
function showa(p)
if show == true then
for i,o in pairs(p:GetChildren()) do
if o:IsA("BillboardGui") and o.Name == "satuttava" then
amo = amo+1
end end
local bbg = Instance.new("BillboardGui",p)
bbg.Adornee = p.Torso
bbg.Name = "satuttava"
bbg.Size = UDim2.new(2,0,2,0)
bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
local box = Instance.new("TextLabel",bbg)
box.Size = UDim2.new(1,0,1,0)
box.BackgroundColor = BrickColor.new("White")
box.Text = amount
box.BackgroundTransparency = .5
if amount == 0 then box.Text = "K.O" end
box.Position = UDim2.new(0,0,0,0)
box.TextScaled = true
game:GetService("Debris"):AddItem(bbg,.5)
end
end
function dame(q)
if poikkeus ~= nil then
for _,u in pairs(poikkeus) do
if q.Parent.Name ~= u then
showa(q)
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
end
end
elseif poikkeus == nil then
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
showa(q)
end
end
if del ~= nil then
local find = v.Parent:FindFirstChild("hitted")
if find == nil then
dame(v)
val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
game:GetService("Debris"):AddItem(val,del)
end
elseif del == nil then
dame(v)
end
end
end
end
-----------------------------------------------------------------
------MESHIDS---
meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
["ramen"] = 19380188}---some meshids
textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
-----------------
---MATH SHORTENINGS---
M = {["R"] = function(a,b) return math.random(a,b) end,
["Cos"] = function(a) return math.cos(a) end,
["Sin"] = function(a) return math.sin(a) end,
["D"] = function(a) return math.rad(a) end
}
for i,v in pairs(char:GetChildren()) do
if v:IsA("Clothing") or v:IsA("Hat") then v:Remove()
end end
col = char:FindFirstChild("Body Colors")
if col == nil then col = Instance.new("BodyColors",char) end
collist = {
{'LeftLegColor',"Dark stone grey"},
{'RightLegColor',"Dark stone grey"},
{'TorsoColor',"Dark stone grey"},
{'LeftArmColor',"Dark stone grey"},
{'RightArmColor',"Dark stone grey"},
}
for i,v in pairs(collist) do
col[v[1]] = BrickColor.new(v[2])
end
-------------------------------
shirt = Instance.new("Shirt", char)
shirt.Name = "Shirt"
pants = Instance.new("Pants", char)
pants.Name = "Pants"
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=279761668"
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=279765488"
-------------------------------------
bracs = Instance.new("Model",m)
for i,v in pairs({rarm,larm}) do
for i,v in pairs(bracs:children()) do if v.Name ~= 'a' then v.Material = 'Ice' end end
end
--------MAKING--------------------
h1 = T.P(1.5,1.5,1.5,'Dark stone grey',0,false,false)
h1.Material = "Fabric"
T.FM(h1,'sphere',1,1,1)
T.W(h1,char.Head,0,0,0,0,0,0)
e1 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e1,'sphere',1,1,1)
e1.Material = "Fabric"
e2 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e2,'sphere',1,1,1)
e2.Material = "Fabric"
e1w=T.W(e1,h1,.35,0,-.55,0,0,0) T.W(e2,h1,-.35,0,-.55,0,0,0)
e1w.Material = "Fabric"
dec = Instance.new("Decal")
dec.Face = 'Front'
dec.Texture = "http://www.roblox.com/asset/?id=0"
char.Head.Transparency = 1
-----------------------------------
function colorslide(obj,prop,scol,ecol,timme,override)
if scol == 'cur' then scol3 = obj.BrickColor.Color else
scol3 = BrickColor.new(scol).Color
end
ecol3 = BrickColor.new(ecol).Color
for i = 0,1,timme do
wait()
pos = v3n(scol3.r,scol3.g,scol3.b):Lerp(v3n(ecol3.r,ecol3.g,ecol3.b),i)
obj[prop] = Color3.new(pos.x,pos.y,pos.z)
end
end
function checkplayers(pos,radius,what)
tab = {}
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Model") and v ~= char then
for _,q in pairs(v:GetChildren()) do
if q:IsA("Humanoid") then
if (q.Torso.Position-pos).magnitude <= radius then
if what == 'char' then table.insert(tab,q.Parent)
elseif what == 'humanoid' then table.insert(tab,q)
end
end end end end end
return tab
end
function rage()
tyu = cfn(0,.2,-.5)
lock.R(1) lock.L(1)
neck.C0 = normposn
for i = 0,140,10 do
wait()
rw.C1 = (normposr*tyu)*ang(M.D(i),0,M.D(i/(140/-50)))
lw.C1 = (normposl*tyu)*ang(M.D(i),0,M.D(i/(140/50)))
neck.C0 = normposn*ang(M.D(i/(140/30)),0,0)
end
wait(1)
for i = 140,50,-20 do
wait()
rw.C1 = (normposr)*ang(M.D(-i),0,M.D(i))
lw.C1 = (normposl)*ang(M.D(-i),0,M.D(-i))
end
neck.C0 = normposn*ang(M.D(-30),0,0)
fire = T.F(torso,30,30,'Bright red','Magenta')
ef = T.P(1,1,1,'Really red',0,false,false)
ew = T.W(ef,torso,0,0,0,0,0,0,ef)
msh = T.FM(ef,'sphere',1,1,1)
for i = 0,20 do wait() ef.Transparency = i/20 msh.Scale = v3n(i,i,i)
T.C(function()
tabb = checkplayers(ef.Position,20,'char')
if #tabb > 0 then
for i,v in pairs(tabb) do damage(v,10,true,.2) end
end
end)
end
msh:Remove()
for i = 30,8,-1 do
wait() fire.Size = i
end
colorslide(fire,'Color','Bright red','Deep blue',.05)
lock.R(0) lock.L(0) neck.C0 = normposn
end
hop = Instance.new("HopperBin",p.Backpack)
hop.Name = name
holdpos = normposr*ang(math.pi/2,0,0)
port,port2,bol,boltime = nil,nil,false,1
function hide()
if char.Parent ~= curcam then
char.Parent = curcam
hop.Name = name..'(h)'
else char.Parent = Workspace
hop.Name = name
end
end
function makeport1()
if not port then --- Blue portal
circle()
port = Instance.new("Model",Workspace)
port.Name = 'omakotikullankallis'
ring = T.P(1,1,1,'Deep blue',0,false,true,port) T.FM(ring,'ring',4,4,1)
ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir = T.P(3.5,.1,3.5,ring.BrickColor.Name,.5,false,true,port) T.FM(mir,'cylinder',1,1,1)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
mir.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port2 and not bol then bol = true
hit.Parent:MoveTo(mir2.Position) wait(boltime) bol = false
end end) ---- On touch event for blue portal
elseif port then ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
end
end
function makeport2()
if not port2 then
circle()
port2 = Instance.new("Model",Workspace)
port2.Name = 'omakotikullankallis'
ring2 = T.P(1,1,1,'Fabric orange',0,false,true,port2) T.FM(ring2,'ring',4,4,1)
ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2 = T.P(3.5,.1,3.5,ring2.BrickColor.Name,.5,false,true,port2) T.FM(mir2,'cylinder',1,1,1)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
mir2.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port and not bol then bol = true
hit.Parent:MoveTo(mir.Position) wait(boltime) bol = false
end end) ---- On touch event for orange portal
elseif port2 then ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
end
end
holdpos2 = normposl*ang(math.pi/2,0,0)
function punch()
fires = {}
lock.R(1) lock.L(1)
for i,v in pairs(bracs:children()) do
if v.Name ~= 'a' then table.insert(fires,T.F(v,.5,.5,'White','Black')) end
end
sticks = Instance.new("Model",m)
rr = .5
for _,v in pairs({rarm,larm}) do
for _,pos in pairs({ {0,-rr}, {0,rr}, {rr,0}, {-rr,0} }) do
stick = T.P(.3,.3,2.5,'Really blue',.5,false,false,sticks)
stick.Touched:connect(function(hit) damage(hit.Parent,10000,true,.05) end)
T.W(stick,v,pos[1],-.6,pos[2],-math.pi/2,0,0)
end end
for i = 1,10 do
rw.C1 = holdpos*cfn(0,.5,0)
lw.C1 = (holdpos2*cfn(0,-.5,0))*ang(0,0,M.D(30))
wait(.05)
rw.C1 = (holdpos*cfn(0,-.5,0))*ang(0,0,M.D(-30))
lw.C1 = holdpos2*cfn(0,.5,0)
wait(.05)
end
sticks:Remove() for _,v in pairs(fires) do v:Remove() end
lock.R(0) lock.L(0)
end
Workspace.ChildRemoved:connect(function(child)
if child == port then port = nil
elseif child == port2 then port2 = nil
end end)
function removeports()
if port then port:Remove() port = nil end
if port2 then port2:Remove() port2 = nil end
for i,v in pairs(Workspace:GetChildren()) do if v.Name == 'omakotikullankallis' then v:Remove() end end
end
function circle()
r = .5
lock.R(1)
for i = 0,90,10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
for i = 0,360,25 do
wait()
rw.C1 = holdpos*ang(M.Cos(M.D(-i))*r,0,M.Sin(M.D(-i))*r)
end
for i = 90,0,-10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
lock.R(0)
end
Workspace.ChildRemoved:connect(function(child) if child == port then port = nil elseif child == port2 then port2 = nil end end) --- Nill's portals if they dont exist
function bowl(mouse)
colorslide(e1,'Color','cur','Royal purple',.05)
dec.Parent = e1
light = T.P(1,2,1,'Royal purple',.8,false,false)
light.Touched:connect(function(hit) damage(hit.Parent,10000,false,1) end)
T.FM(light,'spike',.5,2,.5)
T.W(light,e1,0,0,-1,math.pi/2,0,0)
holding = true
posa = e1.Position
while holding do
wait()
lv = char.Head.CFrame.lookVector
pos3 = ((posa-mouse.hit.p).unit):Cross(lv)
e1w.C1 = cfn(.35,0,-.55)*ang(0,pos3.Y,0)
end
light:Remove()
colorslide(e1,'Color','cur','Really black',.05) e1w.C1 = cfn(.35,0,-.55)
dec.Parent = nil
end
sitbp = nil
function sit()
if sitbp == nil then
lock.R(2) lock.L(2)
sitbp = T.BP(torso,torso.Position)
for i = 1,90,5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position - v3n(0,i/(90),0)
end
elseif sitbp ~= nil then
for i = 90,1,-5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position + v3n(0,i/(90),0)
end
lock.R(-1) lock.L(-1)
sitbp:Remove() sitbp = nil
end
end
function freemyself()
for i,v in pairs(char:GetChildren()) do
for _,o in pairs(v:GetChildren()) do
for _,q in pairs({'BodyPosition','BodyForce','BodyVelocity','BodyGyro'}) do
if o:IsA(q) then o:Remove() end
end
if o:IsA("Part") then
o.Anchored = false end
end
end
sk = T.P(1,1,1,'Royal Purple',0,false,false)
T.W(sk,torso,0,0,0,0,0,0,sk)
msh = T.FM(sk,'skull',3,3,3)
for i = 0,1,.05 do wait() sk.Transparency = i end sk:Remove()
end
function breake()
welds = {}
bps = {}
possa = torso.Position
for i,v in pairs(torso:children()) do
if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
end
end
for _,v in pairs(char:children()) do
if v:IsA("BasePart") then v.CanCollide = true end
end
local hum = char.Humanoid
hum.Parent = nil
holding = true
while holding do wait() end
for i,v in pairs(welds) do
v.Parent = torso
v.Part1 = v.Part1
end
hum.Parent = char
end
klist = {
{'fa',function() rage() end},
{'qa',function() makeport1() end},
{'ea',function() makeport2() end},
{'ra',function() removeports() end},
{'ca',function(a) punch(a) end},
{'xa',function() sit() end},
{'za',function() freemyself() end},
{'va',function() hide() end},
{'ga',function() breake() end,''}
}
hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
hop.Selected:connect(function(mouse)
mouse.Button1Up:connect(function() holding = false end)
mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
mouse.KeyDown:connect(function(key) if attacking then return end
for i,v in pairs(klist) do
if key == v[1] then attacking = true v[2](mouse) attacking = false end
end
end)
mouse.Button1Down:connect(function() if attacking then return end attacking = true bowl(mouse) attacking = false end)
end)
wait(2)
z = Instance.new("Sound", char)
z.SoundId = "rbxassetid://275564512"--303570180
z.Looped = true
z.Pitch = 1
z.Volume = 10
wait(.1)
z:Play()
----------------------------------------------------
p = game.Players.LocalPlayer
char = p.Character
des = false
fling = true
dot = false
falling = false
jump = true
--char.Shirt:Remove()
--for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
wait()--shirt = Instance.new("Shirt", char)
--shirt.Name = "Shirt"
--pants = Instance.new("Pants", char)
--pants.Name = "Pants"
--char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
--char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
tp = true
shoot = true
hum = char.Humanoid
punch = true
neckp = char.Torso.Neck.C0
neck = char.Torso.Neck
hum.MaxHealth = 999999999
wait()
hum.Health =hum.MaxHealth
des = false
root=char.HumanoidRootPart
torso = char.Torso
char.Head.face.Texture = "rbxassetid://0"
local ChatService = game:GetService("Chat")
local player = game.Players.LocalPlayer
lig = Instance.new("PointLight",player.Character.Torso)
lig.Color=Color3.new(255,0,0)
m=player:GetMouse()
bb = Instance.new("BillboardGui",player.Character.Head)
bb.Enabled = true
function newRay(start,face,range,wat)
local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
return rey,hit,pos
end
aa1={}
torso=game.Players.LocalPlayer.Character.Torso
local WorldUp = Vector3.new(0,1,0)
function look2(Vec1,Vec2)
local Orig = Vec1
Vec1 = Vec1+Vector3.new(0,1,0)
Vec2 = Vec2+Vector3.new(0,1,0)
local Forward = (Vec2-Vec1).unit
local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
local Right = Up:Cross(Forward).unit
Forward = -Forward
Right = -Right
return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function look(CFr,Vec2)
local A = Vector3.new(0,0,0)
local B = CFr:inverse()*Vec2
local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
if B.Z > 0 then
CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
elseif B.Z == 0 then
if B.Y > 0 then
CF = CFr*CFrame.Angles(math.pi/2,0,0)
elseif B.Y < 0 then
CF = CFr*CFrame.Angles(-math.pi/2,0,0)
else
CF = CFr
end
end
local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
local Up = Vector3.new(X,Y,Z)
local Forward = (Vec2-CFr.p).unit
local Right = Up:Cross(Forward)
Forward = -Forward
Right = -Right
return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
end
function simulate(j,d,m,r,t)
local joint = j
for i,v in ipairs(t) do
if v[1]:FindFirstChild("Weld") then
local stiff = m.CFrame.lookVector*0.03
if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
local pos = joint.p+(dir*(d*0.5))
--if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
local inv = v[1].Weld.Part0.CFrame
local rel1 = inv:inverse()*pos
local rel2 = inv:inverse()*(pos-(dir*dis))
local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
v[1].Weld.C0 = cf
v[2] = inv*cf
--v[1].CFrame = cf
end
end
end
for i=1,8 do
local p = Instance.new("Part",char)
p.Anchored = false
p.BrickColor = BrickColor.new("Dark stone grey")
p.CanCollide = false
p.FormFactor="Custom"
p.Material = "Fabric"
p.TopSurface = "SmoothNoOutlines"
p.BottomSurface = "SmoothNoOutlines"
p.RightSurface = "SmoothNoOutlines"
p.LeftSurface = "SmoothNoOutlines"
p.FrontSurface = "SmoothNoOutlines"
p.BackSurface = "SmoothNoOutlines"
p.Size=Vector3.new(2,.2,0.2)
p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
mesh = Instance.new("BlockMesh",p)
mesh.Scale = Vector3.new(1,1,4)
local w = Instance.new("Motor6D",p)
w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
w.Part1 = p
w.Name = "Weld"
--table.insert(aa1,p)
aa1[i] = {p,p.CFrame}
end
game:service"RunService".Stepped:connect(function()
simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
end)
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0,200,0,50)
bb.StudsOffset = Vector3.new(0,1,0)
gui=Instance.new("TextBox",bb)
gui.Text = "* "
gui.Size = UDim2.new(0,133,0,45)
gui.Position=UDim2.new(0,57,0,-40)
gui.TextColor3 = Color3.new(255,255,255)
gui.BackgroundColor3=Color3.new(0,0,0)
gui.TextWrapped = true
gui.TextScaled = true
gui.TextXAlignment = "Left"
gui.TextYAlignment = "Top"
gui.Visible = false
gui.BorderColor3 = Color3.new(0,0,0)
punch2 = true
gui1=Instance.new("TextButton",bb)
gui1.Position=UDim2.new(0,5,0,-43)
gui1.Size = UDim2.new(0,190,0,51)
gui1.TextColor3 = Color3.new(255,255,255)
gui1.BackgroundColor3=Color3.new(255,255,255)
jump2 = true
gui1.Visible = false
img = Instance.new("ImageLabel",bb)
img.Size = UDim2.new(0,46,0,47)
img.Position = UDim2.new(0,10,0,-41)
img.Image = "rbxassetid://447301252"
img.BorderColor3 = Color3.new(0,0,0)
img.Visible = false
soka = Instance.new("Sound",char)
soka.SoundId = "http://www.roblox.com/asset/?id = 0"
soka.Volume = 1
boom = Instance.new("Sound",char)
boom.SoundId = "http://www.roblox.com/asset/?id = 0"
boom.Volume = 1
boom2 = Instance.new("Sound",char)
boom2.SoundId = "http://www.roblox.com/asset/?id = 0"
boom2.Volume = 1
boom3 = Instance.new("Sound",char)
boom3.SoundId = "http://www.roblox.com/asset/?id = 0"
boom3.Volume = 1
tps = Instance.new("Sound",char)
tps.SoundId = "http://www.roblox.com/asset/?id = 0"
tps.Volume = 1
asd = Instance.new("Sound",char)
asd.SoundId = "http://www.roblox.com/asset/?id = 0"
asd.Volume =1
asd1 = Instance.new("Sound",char)
asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
asd2 = Instance.new("Sound",char)
asd2.SoundId = "http://www.roblox.com/asset/?id = 0"
asd2.Looped = true
asd2.Volume = 5
asd3 = Instance.new("Sound",char)
asd3.SoundId = "http://www.roblox.com/asset/?id = 0"
asd3.Looped = true
asd4 = Instance.new("Sound",char)
asd4.SoundId = "http://www.roblox.com/asset/?id = 0"
asd4.Looped = true
asd5 = Instance.new("Sound",char)
asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
asd5.Looped = true
gas = Instance.new("Sound",char)
gas.SoundId = "http://www.roblox.com/asset/?id = 0"
asd6 = Instance.new("Sound",char)
asd6.SoundId = "http://www.roblox.com/asset/?id = 0"
asd6.Looped = true
function play(play)
asd:Play()
wait(0.05)
--asd1:Play()
end
------------
-------------------------
function stream(origin,dir,length,size)
local parts = {}
for i = 1,length do
local p = Instance.new("Part",char)
p.Anchored = true
p.Transparency = 0.5
p.TopSurface = 0
p.BottomSurface = 0
p.CanCollide = false
p.BrickColor = BrickColor.new("Dark stone grey")
p.Size = Vector3.new(10,30,10) -- for now
p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
game:GetService("Debris"):AddItem(p,3)
end
Spawn(function()
while parts do
for i,v in pairs(parts) do
if v[1].Parent == char then
v[1].CFrame = v[1].CFrame*v[2]
else
parts = nil
break
end
end
wait(0.02)
end
end)
end
--[[-- listen for their chatting
player.Chatted:connect(function(message)
a = string.len(message)
gui.Text = ""
gui.Visible = true
gui1.Visible = true
des = false
img.Visible = true
print(a)
if dot == false then
gui.Text = ""
for i = 1,string.len(message) do
gui.Text =gui.Text..message:sub(i,i)
play()
end
end
des = true
end)]]--
m.KeyDown:connect(function(k)
if k == "g" then
asd2:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "r" then
asd4:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "q" then
asd3:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "z" then
img.Image = "rbxassetid://332766052"
end
end)
m.KeyDown:connect(function(k)
if k == "c" then
img.Image = "rbxassetid://447301252"
end
end)
m.KeyDown:connect(function(k)
if k == "b" then
asd6:Play()
end
end)
mouse = p:GetMouse()
m.KeyDown:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 100
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 50 then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 52 then
char.Head.face.Texture = "rbxassetid://444037452"
end
end)
m.KeyDown:connect(function(k)
if k:byte() == 51 then
char.Head.face.Texture = "rbxassetid://332768867"
end
end)
m.KeyUp:connect(function(k)
if k:byte() == 48 then
hum.WalkSpeed = 16
end
end)
p.Chatted:connect(function(m)
if m == "Okay." then
soka:Play()
end
end)
m.KeyDown:connect(function(k)
if k == "x" then
if des == true then
gui.Visible = false
gui.Text = "* "
gui1.Visible = false
img.Visible = false
end
end
end)
m.KeyDown:connect(function(key)
if key == "ja" then
if tp == true then
tp = false
tps:Play()
char.Head.face.Parent = game.Lighting
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
end
end
wait(0.5)
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
end
end
char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
char.HumanoidRootPart.Transparency = 1
game.Lighting.face.Parent = char.Head
wait(0.2)
tp = true
end
end
end)
m.KeyDown:connect(function(key)
if key == "ta" then
if punch2 == true then
punch2 = false
punch = false
local ChatService = game:GetService("Chat")
neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
ChatService:Chat(char.Head, "Mind if I get Serious?")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
wait(1)
local ChatService = game:GetService("Chat")
ChatService:Chat(char.Head, "SERIOUS PUNCH.")
neck.C0 = neckp
wait(0.6)
org = char.Torso["Left Shoulder"].C0
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
wait()
killbrick2 = Instance.new("Part",char)
killbrick2.Size = Vector3.new(80,80,9000)
killbrick2.Transparency = 1
killbrick2.CanCollide = true
wait(0.1)
killbrick2.CanCollide = false
killbrick2.Anchored = true
killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
killbrick2.Touched:connect(function(h)
local x = h.Parent:FindFirstChild("Humanoid")
if x then
if x.Parent.Name == game.Players.LocalPlayer.Name then
safe = true
else safe = false
end
if x then
if safe == false then
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
boom:Play()
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
wait(0.2)
x.Parent:BreakJoints()
wait()
safe = true
end
end
end
end)
local rng = Instance.new("Part", char)
rng.Anchored = true
rng.BrickColor = BrickColor.new("Dark stone grey")
rng.CanCollide = false
rng.FormFactor = 3
rng.Name = "Ring"
rng.Size = Vector3.new(1, 1, 1)
rng.Transparency = 0.8
rng.TopSurface = 0
rng.BottomSurface = 0
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng.Rotation = Vector3.new(math.pi/2,0,0)
rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm = Instance.new("SpecialMesh", rng)
rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm.Scale = Vector3.new(1, 1.3, 2)
local rng1 = Instance.new("Part", char)
rng1.Anchored = true
rng1.BrickColor = BrickColor.new("Dark stone grey")
rng1.CanCollide = false
rng1.FormFactor = 3
rng1.Name = "Ring"
rng1.Size = Vector3.new(1, 1, 1)
rng1.Transparency = 0.8
rng1.TopSurface = 0
rng1.BottomSurface = 0
rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm1 = Instance.new("SpecialMesh", rng1)
rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm1.Scale = Vector3.new(1, 1.3, 2)
local p = (torso.CFrame*CFrame.new(-20,0,3))
stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
local p = (torso.CFrame*CFrame.new(20,0,3))
stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
local rng2 = Instance.new("Part", char)
rng2.Anchored = true
rng2.BrickColor = BrickColor.new("Dark stone grey")
rng2.CanCollide = false
rng2.FormFactor = 3
rng2.Name = "Ring"
rng2.Size = Vector3.new(1, 1, 1)
rng2.Transparency = 0.8
rng2.TopSurface = 0
rng2.BottomSurface = 0
rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
local rngm2 = Instance.new("SpecialMesh", rng2)
rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
rngm2.Scale = Vector3.new(1, 1.3, 2)
wait(0.1)
boom3:Play()
coroutine.wrap(function()
for i = 1, 35, 0.5 do
rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
wait()
end
wait()
rng:Destroy()
rng1:Destroy()
rng2:Destroy()
killbrick2:Remove()
wait(0.5)
char.Torso["Left Shoulder"].C0 = org
wait(1)
punch2 = true
punch = true
wait()
end)()
end
wait(.1)
end
end)
----------------
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
m=Instance.new('Model',Character)
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character["Right Arm"]
RightLeg=Character["Right Leg"]
LS=Torso["Left Shoulder"]
LH=Torso["Left Hip"]
RS=Torso["Right Shoulder"]
RH=Torso["Right Hip"]
Face = Head.face
Neck=Torso.Neck
it=Instance.new
attacktype=1
vt=Vector3.new
cf=CFrame.new
euler=CFrame.fromEulerAnglesXYZ
angles=CFrame.Angles
cloaked=false
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
RootPart=Character.HumanoidRootPart
RootJoint=RootPart.RootJoint
RootCF=euler(-1.57,0,3.14)
attack = false
attackdebounce = false
deb=false
equipped=true
hand=false
MMouse=nil
combo=0
mana=0
trispeed=.2
attackmode='none'
local idle=0
local Anim="Idle"
local Effects={}
local gun=false
local shoot=false
player=nil
mana=0
cam = workspace.CurrentCamera
ZTarget = nil
RocketTarget = nil
mouse=Player:GetMouse()
--save shoulders
RSH, LSH=nil, nil
--welds
RW, LW=Instance.new("Weld"), Instance.new("Weld")
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
LH=Torso["Left Hip"]
RH=Torso["Right Hip"]
TorsoColor=Torso.BrickColor
function NoOutline(Part)
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
end
player=Player
ch=Character
RSH=ch.Torso["Right Shoulder"]
LSH=ch.Torso["Left Shoulder"]
--
RSH.Parent=nil
LSH.Parent=nil
--
RW.Name="Right Shoulder"
RW.Part0=ch.Torso
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
RW.C1=cf(0, 0.5, 0)
RW.Part1=ch["Right Arm"]
RW.Parent=ch.Torso
--
LW.Name="Left Shoulder"
LW.Part0=ch.Torso
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
LW.C1=cf(0, 0.5, 0)
LW.Part1=ch["Left Arm"]
LW.Parent=ch.Torso
function swait(num)
if num==0 or num==nil then
game:service'RunService'.Heartbeat:wait(0)
else
for i=0,num do
game:service'RunService'.Heartbeat:wait(0)
end
end
end
function nooutline(part)
part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
end
function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
local fp=it("Part")
fp.formFactor=formfactor
fp.Parent=parent
fp.Reflectance=reflectance
fp.Transparency=transparency
fp.CanCollide=false
fp.Locked=true
fp.BrickColor=BrickColor.new(tostring(brickcolor))
fp.Name=name
fp.Size=size
fp.Position=Character.Torso.Position
nooutline(fp)
fp.Material=material
fp:BreakJoints()
return fp
end
function mesh(Mesh,part,meshtype,meshid,offset,scale)
local mesh=it(Mesh)
mesh.Parent=part
if Mesh=="SpecialMesh" then
mesh.MeshType=meshtype
mesh.MeshId=meshid
end
mesh.Offset=offset
mesh.Scale=scale
return mesh
end
function weld(parent,part0,part1,c0,c1)
local weld=it("Weld")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
weld.C1=c1
return weld
end
local function CFrameFromTopBack(at, top, back)
local right = top:Cross(back)
return CFrame.new(at.x, at.y, at.z,
right.x, top.x, back.x,
right.y, top.y, back.y,
right.z, top.z, back.z)
end
function Triangle(a, b, c)
local edg1 = (c-a):Dot((b-a).unit)
local edg2 = (a-b):Dot((c-b).unit)
local edg3 = (b-c):Dot((a-c).unit)
if edg1 <= (b-a).magnitude and edg1 >= 0 then
a, b, c = a, b, c
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
a, b, c = b, c, a
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
a, b, c = c, a, b
else
assert(false, "unreachable")
end
local len1 = (c-a):Dot((b-a).unit)
local len2 = (b-a).magnitude - len1
local width = (a + (b-a).unit*len1 - c).magnitude
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
local list = {}
local TrailColor = ("Dark stone grey")
if len1 > 0.01 then
local w1 = Instance.new('WedgePart', m)
game:GetService("Debris"):AddItem(w1,5)
w1.Material = "Fabric"
w1.FormFactor = 'Custom'
w1.BrickColor = BrickColor.new(TrailColor)
w1.Transparency = 0
w1.Reflectance = 0
w1.Material = "Fabric"
w1.CanCollide = false
NoOutline(w1)
local sz = Vector3.new(0.2, width, len1)
w1.Size = sz
local sp = Instance.new("SpecialMesh",w1)
sp.MeshType = "Wedge"
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
w1:BreakJoints()
w1.Anchored = true
w1.Parent = workspace
w1.Transparency = 0.7
table.insert(Effects,{w1,"Disappear",.01})
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
table.insert(list,w1)
end
if len2 > 0.01 then
local w2 = Instance.new('WedgePart', m)
game:GetService("Debris"):AddItem(w2,5)
w2.Material = "Fabric"
w2.FormFactor = 'Custom'
w2.BrickColor = BrickColor.new(TrailColor)
w2.Transparency = 0
w2.Reflectance = 0
w2.Material = "Fabric"
w2.CanCollide = false
NoOutline(w2)
local sz = Vector3.new(0.2, width, len2)
w2.Size = sz
local sp = Instance.new("SpecialMesh",w2)
sp.MeshType = "Wedge"
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
w2:BreakJoints()
w2.Anchored = true
w2.Parent = workspace
w2.Transparency = 0.7
table.insert(Effects,{w2,"Disappear",.01})
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
table.insert(list,w2)
end
return unpack(list)
end
so = function(id,par,vol,pit)
coroutine.resume(coroutine.create(function()
local sou = Instance.new("Sound",par or workspace)
sou.Volume=vol
sou.Pitch=pit or 1
sou.SoundId=id
swait()
sou:play()
game:GetService("Debris"):AddItem(sou,6)
end))
end
function clerp(a,b,t)
local qa = {QuaternionFromCFrame(a)}
local qb = {QuaternionFromCFrame(b)}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1-t
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5/s
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
else
local i = 0
if m11 > m00 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00-m11-m22+1)
local recip = 0.5/s
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
elseif i == 1 then
local s = math.sqrt(m11-m22-m00+1)
local recip = 0.5/s
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
elseif i == 2 then
local s = math.sqrt(m22-m00-m11+1)
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w*xs, w*ys, w*zs
local xx = x*xs
local xy = x*ys
local xz = x*zs
local yy = y*ys
local yz = y*zs
local zz = z*zs
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
local startInterp, finishInterp;
if cosTheta >= 0.0001 then
if (1 - cosTheta) > 0.0001 then
local theta = math.acos(cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((1-t)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = 1-t
finishInterp = t
end
else
if (1+cosTheta) > 0.0001 then
local theta = math.acos(-cosTheta)
local invSinTheta = 1/math.sin(theta)
startInterp = math.sin((t-1)*theta)*invSinTheta
finishInterp = math.sin(t*theta)*invSinTheta
else
startInterp = t-1
finishInterp = t
end
end
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
end
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 99)), Ignore)
end
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
if hit.Parent==nil then
return
end
local h=hit.Parent:FindFirstChild("Humanoid")
for _,v in pairs(hit.Parent:children()) do
if v:IsA("Humanoid") then
h=v
end
end
if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
h=hit.Parent.Parent:FindFirstChild("Humanoid")
end
if hit.Parent.className=="Hat" then
hit=hit.Parent.Parent:findFirstChild("Head")
end
if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
--[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
return
end]]
-- hs(hit,1.2)
local c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=game:service("Players").LocalPlayer
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
local Damage=math.random(minim,maxim)
-- h:TakeDamage(Damage)
local blocked=false
local block=hit.Parent:findFirstChild("Block")
if block~=nil then
print(block.className)
if block.className=="NumberValue" then
if block.Value>0 then
blocked=true
if decreaseblock==nil then
block.Value=block.Value-1
end
end
end
if block.className=="IntValue" then
if block.Value>0 then
blocked=true
if decreaseblock~=nil then
block.Value=block.Value-1
end
end
end
end
if blocked==false then
-- h:TakeDamage(Damage)
h.Health=h.Health-Damage
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
else
h.Health=h.Health-(Damage/2)
ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
end
if Type=="Knockdown" then
local hum=hit.Parent.Humanoid
hum.PlatformStand=true
coroutine.resume(coroutine.create(function(HHumanoid)
swait(1)
HHumanoid.PlatformStand=false
end),hum)
local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
local bodvol=Instance.new("BodyVelocity")
bodvol.velocity=angle*knockback
bodvol.P=5000
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodvol.Parent=hit
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
rl.Parent=hit
game:GetService("Debris"):AddItem(bodvol,.5)
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Normal" then
local vp=Instance.new("BodyVelocity")
vp.P=500
vp.maxForce=Vector3.new(math.huge,0,math.huge)
-- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
if KnockbackType==1 then
vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
elseif KnockbackType==2 then
vp.velocity=Property.CFrame.lookVector*knockback
end
if knockback>0 then
vp.Parent=hit.Parent.Torso
end
game:GetService("Debris"):AddItem(vp,.5)
elseif Type=="Up" then
local bodyVelocity=Instance.new("BodyVelocity")
bodyVelocity.velocity=vt(0,60,0)
bodyVelocity.P=5000
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
bodyVelocity.Parent=hit
game:GetService("Debris"):AddItem(bodyVelocity,1)
local rl=Instance.new("BodyAngularVelocity")
rl.P=3000
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
rl.Parent=hit
game:GetService("Debris"):AddItem(rl,.5)
elseif Type=="Snare" then
local bp=Instance.new("BodyPosition")
bp.P=2000
bp.D=100
bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
bp.position=hit.Parent.Torso.Position
bp.Parent=hit.Parent.Torso
game:GetService("Debris"):AddItem(bp,1)
elseif Type=="Target" then
local Targetting = false
if Targetting==false then
ZTarget=hit.Parent.Torso
coroutine.resume(coroutine.create(function(Part)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
swait(5)
so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
end),ZTarget)
local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
local targetgui=Instance.new("BillboardGui")
targetgui.Parent=ZTarget
targetgui.Size=UDim2.new(10,100,10,100)
local targ=Instance.new("ImageLabel")
targ.Parent=targetgui
targ.BackgroundTransparency=1
targ.Image="rbxassetid://4834067"
targ.Size=UDim2.new(1,0,1,0)
cam.CameraType="Scriptable"
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
Targetting=true
RocketTarget=ZTarget
for i=1,Property do
--while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
swait()
end
--workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
end
Targetting=false
RocketTarget=nil
targetgui.Parent=nil
cam.CameraType="Custom"
end
end
local debounce=Instance.new("BoolValue")
debounce.Name="DebounceHit"
debounce.Parent=hit.Parent
debounce.Value=true
game:GetService("Debris"):AddItem(debounce,Delay)
c=Instance.new("ObjectValue")
c.Name="creator"
c.Value=Player
c.Parent=h
game:GetService("Debris"):AddItem(c,.5)
end
end
function ShowDamage(Pos, Text, Time, Color)
local Rate = (1 / 30)
local Pos = (Pos or Vector3.new(0, 0, 0))
local Text = (Text or "")
local Time = (Time or 2)
local Color = (Color or Color3.new(1, 0, 0))
local EffectPart = part("Custom",workspace,"Fabric",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
EffectPart.Anchored = true
local BillboardGui = Instance.new("BillboardGui")
BillboardGui.Size = UDim2.new(3, 0, 3, 0)
BillboardGui.Adornee = EffectPart
local TextLabel = Instance.new("TextLabel")
TextLabel.BackgroundTransparency = 1
TextLabel.Size = UDim2.new(1, 0, 1, 0)
TextLabel.Text = Text
TextLabel.TextColor3 = Color
TextLabel.TextScaled = true
TextLabel.Font = Enum.Font.ArialBold
TextLabel.Parent = BillboardGui
BillboardGui.Parent = EffectPart
game.Debris:AddItem(EffectPart, (Time + 0.1))
EffectPart.Parent = game:GetService("Workspace")
Delay(0, function()
local Frames = (Time / Rate)
for Frame = 1, Frames do
wait(Rate)
local Percent = (Frame / Frames)
EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
TextLabel.TextTransparency = Percent
end
if EffectPart and EffectPart.Parent then
EffectPart:Destroy()
end
end)
end
HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HandleA",Vector3.new(0.200000003, 0.924000025, 0.251999974))
HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0840759277, -0.00163650513, 0.993845463, 0.999998212, -1.10852261e-005, -0, 0, 1.09631201e-017, -0.999998212, 1.09064322e-005, 0.999996305, 1.38777878e-016))
mesh("BlockMesh",HandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
FakeHandleA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","FakeHandleA",Vector3.new(0.200000003, 0.420000017, 0.251999974))
FakeHandleAweld=weld(m,HandleA,FakeHandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.90734863e-006, -4.76837158e-007, 0.999998212, 2.13162126e-014, -5.3632084e-007, -2.13162126e-014, 0.999998212, -1.27329857e-016, 3.57546924e-007, -4.73488936e-019, 0.999996424))
mesh("BlockMesh",FakeHandleA,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
HitboxA=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HitboxA",Vector3.new(0.260399997, 2.26800036, 0.671999991))
HitboxAweld=weld(m,FakeHandleA,HitboxA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.01556396, 0.0198795795, 0.999996424, 1.79766672e-012, -1.26029063e-005, -1.79766672e-012, 0.999996424, -1.14722063e-016, 1.22454048e-005, -1.16638766e-016, 0.999992847))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.671827316, 0.313827038, 0.999993801, -3.54627962e-014, -8.19193701e-007, 4.97018401e-014, 0.99999404, -1.09530813e-013, 7.89339538e-007, 9.65395366e-014, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.503871918, 0.0200036764, 0.999996424, 5.32912303e-015, -2.68159965e-007, -5.32912473e-015, 0.999996424, -1.26083356e-016, -8.93851393e-008, -1.26327738e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.503999949))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.671840668, 0.019996047, 0.999986649, -2.4655126e-012, 4.32561137e-007, 2.59496005e-012, 0.999986768, -1.49009139e-007, 2.52821337e-007, 8.94055319e-008, 0.999984741))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.47001648, 0.0187937021, 0.999996424, 1.93773531e-007, -9.44143176e-005, -1.93700657e-007, 0.999996424, 7.7484583e-007, 9.40571117e-005, -7.74830198e-007, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 1, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.335999995))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.46961975, 0.0198013783, 0.999996424, 2.38440322e-007, -1.83236498e-005, -2.38423183e-007, 0.999996424, 9.53646634e-007, 1.79661693e-005, -9.53645667e-007, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.462000072, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.83972168, 0.0198941231, 0.999996424, 1.72305952e-012, -1.13515125e-005, -1.72305952e-012, 0.999996424, -1.15788623e-016, 1.09940074e-005, -1.15460199e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.42800009, 0.671999991))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.59558105, 0.0198942423, 0.999996424, 1.79766672e-012, -1.14408977e-005, -1.79766672e-012, 0.999996424, -1.1639756e-016, 1.10833907e-005, -1.1500975e-016, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.335924149, 0.0199792385, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.756420135, -0.277666092, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335924149, -0.0639793873, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756376266, -0.193712234, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.90734863e-006, 0.0200020075, 0.999994516, -4.8679409e-013, 1.78781193e-007, -4.44161797e-013, 0.99999392, -1.42889402e-016, -7.15082933e-007, -1.14757771e-016, 0.999988675))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.937992096, 0.137899399, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.728122711, 0.305858612, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.672348022, 0.0161781311, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.125961304, 0.0200021267, 0.999992847, -2.13160991e-014, -2.68156327e-007, 2.13160974e-014, 0.999992847, -1.25976285e-016, -4.46930244e-007, -2.53540519e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10586548, 0.221845627, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.728130341, 0.13794899, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840242386, 0.184112549, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335924149, 0.103946805, 0.999992847, 1.81186826e-013, -4.11162546e-006, -1.81186826e-013, 0.999992847, -7.58573273e-016, 3.39656435e-006, 2.54499572e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.7563591, -0.109758377, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, -1.10585403, 0.305786133, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.728031158, 0.221849442, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.15527344e-005, -0.67241478, -0.19370079, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.756313324, 0.0161876678, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.672306061, 0.184104919, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335899353, 0.0199739933, 0.999992847, 2.18489967e-013, -4.73727596e-006, -2.18489967e-013, 0.999992847, -7.57336287e-016, 4.02222031e-006, 2.53552589e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -1.1057682, 0.137836456, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.9379673, 0.305826187, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.812028885, 0.221828461, 0.999996424, -2.13161753e-014, 1.78773917e-007, -3.79196507e-007, 0.707181871, 0.707024157, -3.79278418e-007, -0.70702672, 0.707179308))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840332031, -0.193758011, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.644088745, 0.22183609, 0.99999547, -1.31308614e-012, 1.78738446e-007, -3.79217425e-007, 0.707180977, 0.707023621, -3.79301156e-007, -0.707025945, 0.707178891))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756282806, 0.184106827, 0.999994636, -2.13161381e-014, 1.78773007e-007, 5.05591743e-007, 0.707180023, -0.707022309, -5.05702701e-007, 0.707026124, 0.707176208))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.937936783, 0.221797943, 0.999991059, -2.13160618e-014, 1.78773007e-007, -7.58390797e-007, 0.707176268, 0.707018554, -7.58549049e-007, -0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.840261459, 0.016160965, 0.999991059, -2.13160618e-014, 1.78773007e-007, 7.5838625e-007, 0.707176268, -0.707018554, -7.58550868e-007, 0.707024872, 0.70716995))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.335899353, 0.103938103, 0.999992847, 2.29148081e-013, -4.9160335e-006, -2.29148081e-013, 0.999992847, -7.56970052e-016, 4.20097967e-006, 2.53277833e-016, 0.999985695))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, 0.125974655, 0.0200021267, 0.999992728, 2.21486258e-014, 1.78859409e-007, 7.54365239e-014, 0.999992132, -2.98020169e-008, -1.78682967e-007, -2.9802127e-008, 0.999985099))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000033, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.671825409, -0.27389431, 0.999993801, 1.20855067e-013, -2.82897417e-007, -1.17359681e-013, 0.99999404, -5.96041865e-008, 2.53045073e-007, 5.96042469e-008, 0.999992847))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.336000025, 0.335999936))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.22543144, 0.0199115276, 0.999995947, 1.79766672e-012, -1.49265943e-005, -1.79766672e-012, 0.999995947, -1.04389876e-016, 1.4569111e-005, -1.1508405e-016, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.461999953, 1, 1))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.14149475, 0.0199415684, 0.999996424, 1.79766672e-012, -1.2781531e-005, -1.79766672e-012, 0.999996424, -1.11779232e-016, 1.24240314e-005, -1.15038324e-016, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 0.840000212, 0.839999676))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.840000033, 0.671999991))
Wedgeweld=weld(m,FakeHandleA,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -2.72929573, 0.0198169947, 0.999996424, 3.1294465e-007, -1.93064552e-005, -3.12920946e-007, 0.999996424, 1.25165718e-006, 1.89489765e-005, -1.2516557e-006, 0.999992847))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HandleB",Vector3.new(0.200000003, 0.924000025, 0.251999974))
HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.115982056, 0.0891990662, 0.993835926, -0.999997854, -1.10417595e-005, 4.54747297e-013, 4.4408921e-016, -1.49011505e-008, 0.999997795, -1.09821558e-005, 0.999995708, -1.49011541e-008))
mesh("BlockMesh",HandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
FakeHandleB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","FakeHandleB",Vector3.new(0.200000003, 0.420000017, 0.251999974))
FakeHandleBweld=weld(m,HandleB,FakeHandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.047870636, 5.41210175e-005, 0.999996543, 7.45058131e-008, -5.81111635e-007, -7.45051949e-008, 0.999997199, -1.49019623e-008, 3.5760695e-007, -1.49009205e-008, 0.99999553))
mesh("BlockMesh",FakeHandleB,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
HitboxB=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,1,"Dark stone grey","HitboxB",Vector3.new(0.260399997, 2.26800036, 0.671999991))
HitboxBweld=weld(m,FakeHandleB,HitboxB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -2.01556969, 0.01980865, 0.999993443, 1.02318154e-012, -1.27701678e-005, 6.82121026e-013, 0.999994397, -2.98027985e-008, 1.22934016e-005, -2.98057792e-008, 0.999991059))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.671806335, 0.313799143, 0.99999249, -3.12912107e-007, 8.53831443e-006, 3.12901221e-007, 0.999993801, 1.22185497e-006, -9.2088394e-006, -1.28146849e-006, 0.999990761))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.503873825, 0.0199302435, 0.999991298, 7.03437308e-013, -4.47016646e-007, 7.10542736e-013, 0.999993205, -2.98063618e-008, -2.38406756e-007, -2.98045819e-008, 0.999990702))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.503999949))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.671850204, 0.0200046301, 0.999992192, -4.61934746e-007, 1.15483172e-005, 4.61917068e-007, 0.999993801, 1.43046918e-006, -1.22188476e-005, -1.49008054e-006, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.47002983, 0.0187981129, 0.999992311, 3.26139116e-012, -9.10005256e-005, 8.38440428e-013, 0.999993801, -2.98064791e-008, 9.0330177e-005, -2.98056761e-008, 0.999990582))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 1, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.17600012, 0.335999995))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.46959877, 0.0198251009, 0.999991536, 1.05870868e-012, -1.29638747e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.20996647e-005, -2.98093603e-008, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.462000072, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.839723587, 0.0198229551, 0.999991536, 9.45021839e-013, -1.17124828e-005, 7.88702437e-013, 0.999993205, -2.98063618e-008, 1.08482727e-005, -2.98093568e-008, 0.999990463))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 1.42800009, 0.671999991))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.59558678, 0.0198256969, 0.999991596, 1.00897068e-012, -1.13843653e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.08330742e-005, -2.9807449e-008, 0.999990523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.335920334, 0.0199792385, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -0.756378174, -0.277729034, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335920334, -0.0639791489, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.756343842, -0.193767548, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -7.62939453e-006, 0.0199067593, 0.999989629, -2.98013205e-008, 5.96000973e-008, 7.45057989e-008, 0.999991119, -2.98054701e-008, -8.64197318e-007, -2.98050864e-008, 0.999986231))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.938070297, 0.137874603, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.728212357, 0.305807114, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.672271729, 0.0161094666, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.125976563, 0.0199372768, 0.999988139, -1.04306544e-007, -2.23536517e-007, 1.04307773e-007, 0.999989748, -2.98051006e-008, -5.51243829e-007, -2.98054808e-008, 0.999983549))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -1.10592842, 0.221801758, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, -0.728153229, 0.137924194, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.84018898, 0.184049606, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.335920334, 0.103946328, 0.99998498, 1.77635684e-012, -4.42457076e-006, 1.20081722e-012, 0.999987602, -5.96116934e-008, 3.08357539e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335897446, -0.0639851093, 0.99998498, 1.83320026e-012, -4.87146372e-006, 1.17239551e-012, 0.999987602, -5.96116934e-008, 3.53046926e-006, -5.96116934e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.756332397, -0.109825134, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -1.10591888, 0.305747986, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -0.728061676, 0.221828461, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, -0.67234993, -0.193754196, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.756284714, 0.0161113739, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.672286987, 0.18406105, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, -0.335897446, 0.0199738741, 0.99998498, 1.85451654e-012, -5.05021944e-006, 1.15818466e-012, 0.999987602, -5.96116934e-008, 3.7092268e-006, -5.96116934e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10585022, 0.137811661, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000212, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.938016891, 0.30575943, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.812088013, 0.221776962, 0.999991596, 6.67910172e-013, 4.47207604e-008, -7.02402133e-007, 0.707179785, 0.707022667, -7.05294042e-007, -0.707024634, 0.707177639))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.252000004))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.840309143, -0.193778992, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.644163132, 0.22177124, 0.999991596, -1.63911096e-007, 4.47207675e-008, -4.63979092e-007, 0.707178771, 0.707022071, -4.51969669e-007, -0.70702374, 0.707177103))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.756244659, 0.184059143, 0.999989688, -4.47024036e-008, 1.19204742e-007, 8.07759989e-007, 0.707177877, -0.707020879, -5.99900943e-007, 0.707024038, 0.70717448))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999676))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.937994003, 0.221740723, 0.999986172, -4.47021336e-008, 2.97595744e-008, -8.06638866e-007, 0.707174122, 0.707016647, -1.27141891e-006, -0.707022905, 0.707167923))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.839999974, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.84022522, 0.0160942078, 0.999986172, -4.47021336e-008, 2.97595744e-008, 9.12016958e-007, 0.707174182, -0.707016647, -8.68045106e-007, 0.707022667, 0.707168221))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.420000017, 0.839999974))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.251999974, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.335897446, 0.103937507, 0.99998498, 1.87583282e-012, -5.22897699e-006, 1.15107923e-012, 0.999987602, -5.96116934e-008, 3.88798253e-006, -5.96116863e-008, 0.999981523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 1, 0.420000017))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.251999974))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.125947952, 0.019931674, 0.999988019, -7.45044133e-008, 1.19185643e-007, 7.45060262e-008, 0.99998939, -5.96073733e-008, -3.724208e-007, -5.96076077e-008, 0.999982655))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.839999974, 0.840000033, 1))
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.252000004, 0.200000003))
Partweld=weld(m,FakeHandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.671842575, -0.273898602, 0.999992251, 6.75015599e-013, 3.53156747e-006, 8.73967565e-013, 0.999993801, -8.93913352e-008, -4.2020838e-006, 2.97793719e-008, 0.999990523))
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.798000038, 1, 0.420000017))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.336000025, 0.335999936))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -2.22545815, 0.019826293, 0.999991477, -1.19207421e-007, -1.51692248e-005, 1.19209091e-007, 0.999993205, -2.98050331e-008, 1.44987343e-005, -2.9807719e-008, 0.999990404))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.461999953, 1, 1))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -2.1415081, 0.0198848248, 0.999991477, 1.07291953e-012, -1.30532799e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.21592684e-005, -2.98089127e-008, 0.999990523))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.504000008, 0.840000212, 0.839999676))
Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.Fabric,0.5,0,"Dark stone grey","Wedge",Vector3.new(0.200000003, 0.840000033, 0.671999991))
Wedgeweld=weld(m,FakeHandleB,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -2.72933006, 0.0198259354, 0.999991477, 1.04449782e-012, -1.20996147e-005, 7.10542736e-013, 0.999993205, -2.98063618e-008, 1.11906975e-005, -2.98092999e-008, 0.999990761))
mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 1, 1))
function attackone()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-70)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(-5),math.rad(60)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(20)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-150), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-40),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(6*i,math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711414',HitboxA,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxA.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxA.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30))*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.3)
end
scfr = nil
attack = false
end
function attacktwo()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(40))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(30))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711427',HitboxB,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxB.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxB.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-90)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-70), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-50),math.rad(-30))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
end
scfr = nil
attack = false
end
function attackthree()
attack = true
for i = 0,1,0.1 do
swait()
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(0), math.rad(-120), math.rad(-90)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
end
so('http://roblox.com/asset/?id=243711414',HitboxA,1,1)
so('http://roblox.com/asset/?id=243711427',HitboxB,1,1)
for i = 0,1,0.1 do
swait()
local blcf = HitboxA.CFrame*CFrame.new(0,.5,0)
if scfr and (HitboxA.Position-scfr.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr = blcf
elseif not scfr then
scfr = blcf
end
local blcf2 = HitboxB.CFrame*CFrame.new(0,.5,0)
if scfr2 and (HitboxB.Position-scfr2.p).magnitude > .1 then
local h = 5
local a,b = Triangle((scfr2*CFrame.new(0,h/2,0)).p,(scfr2*CFrame.new(0,-h/2,0)).p,(blcf2*CFrame.new(0,h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
local a,b = Triangle((blcf2*CFrame.new(0,h/2,0)).p,(blcf2*CFrame.new(0,-h/2,0)).p,(scfr2*CFrame.new(0,-h/2,0)).p)
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
scfr2 = blcf2
elseif not scfr2 then
scfr2 = blcf2
end
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30), math.rad(90)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-90)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(50)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(50)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3)
Torso.Velocity=Head.CFrame.lookVector*100
end
scfr = nil
scfr2 = nil
attack = false
end
mouse.Button1Down:connect(function()
if attack == false and attacktype == 1 then
attacktype = 2
attackone()
elseif attack == false and attacktype == 2 then
attacktype = 3
attacktwo()
elseif attack == false and attacktype == 3 then
attacktype = 1
attackthree()
end
end)
mouse.KeyDown:connect(function(k)
k=k:lower()
if attack == false and k == '' then
end
end)
local sine = 0
local change = 1
local val = 0
while true do
swait()
sine = sine + change
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
local velderp=RootPart.Velocity.y
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
if equipped==true or equipped==false then
if attack==false then
idle=idle+1
else
idle=0
end
if idle>=500 then
if attack==false then
end
end
if RootPart.Velocity.y > 1 and hitfloor==nil then
Anim="Jump"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
Anim="Fall"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
elseif torvel<1 and hitfloor~=nil then
Anim="Idle"
if attack==false then
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-.3)* angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-10),math.rad(50)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-130), math.rad(-100)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-.6,0)*angles(math.rad(0),math.rad(-50),math.rad(-30)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
end
elseif torvel>2 and hitfloor~=nil then
Anim="Walk"
if attack==false then
change=3
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(10)), 0.3)
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.3)
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
FakeHandleAweld.C0=clerp(FakeHandleAweld.C0,cf(0,0,0)*angles(math.rad(-180),math.rad(0),math.rad(0)),.3)
FakeHandleBweld.C0=clerp(FakeHandleBweld.C0,cf(0,0,0)*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
end
end
end
if #Effects>0 then
for e=1,#Effects do
if Effects[e]~=nil then
local Thing=Effects[e]
if Thing~=nil then
local Part=Thing[1]
local Mode=Thing[2]
local Delay=Thing[3]
local IncX=Thing[4]
local IncY=Thing[5]
local IncZ=Thing[6]
if Thing[1].Transparency<=1 then
if Thing[2]=="Block1" then
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Cylinder" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Blood" then
Mesh=Thing[7]
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Elec" then
Mesh=Thing[1].Mesh
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
elseif Thing[2]=="Disappear" then
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
end
else
Part.Parent=nil
table.remove(Effects,e)
end
end
end
end
end
end
------------------------------
p = game.Players.LocalPlayer
char = p.Character
torso = char.Torso
attacking = false
track = false
curcam = Workspace.CurrentCamera
name = 'KFM'
pcall(function() char:FindFirstChild("legetony"):Remove() char:FindFirstChild("Belt"):Remove() end)
m = Instance.new("Model",char) m.Name = "legetony"
cfn,ang = CFrame.new,CFrame.Angles
v3n = Vector3.new
rs = torso["Right Shoulder"]
ls = torso["Left Shoulder"]
rh = torso["Right Hip"]
lh = torso["Right Hip"]
neck = torso["Neck"]
rw,lw = nil,nil
rhw,lhw = nil,nil
local orgc1 = rs.C1
rarm = char["Right Arm"]
larm = char["Left Arm"]
rleg = char["Right Leg"]
lleg = char["Left Leg"]
normposr = cfn(1.5,.5,0)
normposl = cfn(-1.5,.5,0)
normposr2 = cfn(-.5,-1.5,0)
normposl2 = cfn(.5,-1.5,0)
normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
holdpos = normposr*ang(math.pi/2,0,0)
holdpos2 = normposl*ang(math.pi/2,0,0)
lock = {["R"] =
function(a)
if a == 1 then
rabrick = T.P(1,1,1,"White",1,false,false)
rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
T.W(rarm,rabrick,0,-.5,0,0,0,0)
elseif a == 2 then
rlbrick = T.P(1,1,1,"White",1,false,false)
rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
T.W(rleg,rlbrick,0,-.5,0,0,0,0)
elseif a == 0 then
rs.Parent = torso
rw.Parent = nil
rabrick:Destroy() rabrick = nil
elseif a == -1 then
rhw.Parent = nil
rh.Parent = torso
rlbrick:Destroy() rlbrick = nil
end
end
, ["L"] = function(a)
if a == 1 then
labrick = T.P(1,1,1,"White",1,false,false)
lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
T.W(larm,labrick,0,-.5,0,0,0,0)
elseif a == 2 then
llbrick = T.P(1,1,1,"White",1,false,false)
lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
T.W(lleg,llbrick,0,-.5,0,0,0,0)
elseif a == 0 then
ls.Parent = torso
lw.Parent = nil
labrick:Destroy() labrick = nil
elseif a == -1 then
lhw.Parent = nil
lh.Parent = torso
llbrick:Destroy() llbrick = nil
end
end}
------TOOOOOLS------
T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
if typee ~= nil then
c = Instance.new("WedgePart",m)
else
c = Instance.new("Part",m)
end
c.TopSurface,c.BottomSurface = 0,0
c.formFactor = "Custom"
c.Size = Vector3.new(x,y,z)
if color ~= "random" then
c.BrickColor = BrickColor.new(color)
else c.BrickColor = BrickColor:random() end
c.Transparency = transparency
c.CanCollide = cancollide
if anchored ~= nil then c.Anchored = anchored end
if parent ~= nil then c.Parent = parent end
return c
end
,
["C"] = function(func) coroutine.resume(coroutine.create(func)) end
,
["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
w = Instance.new("Motor",m)
if parent ~= nil then w.Parent = parent end
w.Part0,w.Part1 = part0,part1
w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
return w
end
,
["BG"] = function(parent)
local c = Instance.new("BodyGyro",parent)
c.P = 20e+003
c.cframe = parent.CFrame
c.maxTorque = Vector3.new(c.P,c.P,c.P)
return c
end
,
["BP"] = function(parent,position)
local bp = Instance.new("BodyPosition",parent)
bp.maxForce = Vector3.new()*math.huge
bp.position = position
return bp
end
,
["F"] = function(parent,size,heat,color,secondcolor,enabled)
f = Instance.new("Fire",parent)
f.Size = size
f.Heat = heat
if enabled ~= nil then f.Enabled = enabled end
if color ~= nil then f.Color = BrickColor.new(color).Color end
if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
return f
end
,
["FM"] = function(parent,meshid,x,y,z,meshtexture)
if meshid == "cylinder" then
mesh = Instance.new("CylinderMesh",parent)
mesh.Scale = Vector3.new(x,y,z)
return mesh
else
mesh = Instance.new("SpecialMesh",parent)
if meshid ~= "sphere" then
if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
mesh.MeshId = "rbxassetid://"..meshids[meshid]
end
else mesh.MeshType = 3 end
mesh.Scale = Vector3.new(x,y,z)
if meshtexture ~= nil then
if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
end
return mesh
end
end
,
["Track"] = function(obj,s,t,lt,color,fade)
coroutine.resume(coroutine.create(function()
while track do
old = obj.Position
wait()
new = obj.Position
mag = (old-new).magnitude
dist = (old+new)/2
local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
Instance.new("CylinderMesh",ray)
ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
if fade ~= nil then
delay(lt,function()
for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
else
game:GetService("Debris"):AddItem(ray,lt)
end
if color ~= nil then ray.BrickColor = BrickColor.new(color) end
end
end)) end
}
--------------------------------------------------
----------------DAMAGE FUNCTION--------------------
function damage(hit,amount,show,del,poikkeus)
for i,v in pairs(hit:GetChildren()) do
if v:IsA("Humanoid") and v.Parent ~= char then
amo = 0
function showa(p)
if show == true then
for i,o in pairs(p:GetChildren()) do
if o:IsA("BillboardGui") and o.Name == "satuttava" then
amo = amo+1
end end
local bbg = Instance.new("BillboardGui",p)
bbg.Adornee = p.Torso
bbg.Name = "satuttava"
bbg.Size = UDim2.new(2,0,2,0)
bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
local box = Instance.new("TextLabel",bbg)
box.Size = UDim2.new(1,0,1,0)
box.BackgroundColor = BrickColor.new("White")
box.Text = amount
box.BackgroundTransparency = .5
if amount == 0 then box.Text = "K.O" end
box.Position = UDim2.new(0,0,0,0)
box.TextScaled = true
game:GetService("Debris"):AddItem(bbg,.5)
end
end
function dame(q)
if poikkeus ~= nil then
for _,u in pairs(poikkeus) do
if q.Parent.Name ~= u then
showa(q)
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
end
end
elseif poikkeus == nil then
if amount == 0 then q.Parent:BreakJoints() end
q.Health = q.Health - amount
showa(q)
end
end
if del ~= nil then
local find = v.Parent:FindFirstChild("hitted")
if find == nil then
dame(v)
val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
game:GetService("Debris"):AddItem(val,del)
end
elseif del == nil then
dame(v)
end
end
end
end
-----------------------------------------------------------------
------MESHIDS---
meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
["ramen"] = 19380188}---some meshids
textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
-----------------
---MATH SHORTENINGS---
M = {["R"] = function(a,b) return math.random(a,b) end,
["Cos"] = function(a) return math.cos(a) end,
["Sin"] = function(a) return math.sin(a) end,
["D"] = function(a) return math.rad(a) end
}
for i,v in pairs(char:GetChildren()) do
if v:IsA("Clothing") or v:IsA("Hat") then v:Remove()
end end
col = char:FindFirstChild("Body Colors")
if col == nil then col = Instance.new("BodyColors",char) end
collist = {
{'LeftLegColor',"Dark stone grey"},
{'RightLegColor',"Dark stone grey"},
{'TorsoColor',"Dark stone grey"},
{'LeftArmColor',"Dark stone grey"},
{'RightArmColor',"Dark stone grey"},
}
for i,v in pairs(collist) do
col[v[1]] = BrickColor.new(v[2])
end
-------------------------------
shirt = Instance.new("Shirt", char)
shirt.Name = "Shirt"
pants = Instance.new("Pants", char)
pants.Name = "Pants"
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=279761668"
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=279765488"
-------------------------------------
bracs = Instance.new("Model",m)
for i,v in pairs({rarm,larm}) do
for i,v in pairs(bracs:children()) do if v.Name ~= 'a' then v.Material = 'Ice' end end
end
--------MAKING--------------------
h1 = T.P(1.5,1.5,1.5,'Dark stone grey',0,false,false)
h1.Material = "Fabric"
T.FM(h1,'sphere',1,1,1)
T.W(h1,char.Head,0,0,0,0,0,0)
e1 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e1,'sphere',1,1,1)
e1.Material = "Fabric"
e2 = T.P(.5,.5,.5,'White',0,false,false) T.FM(e2,'sphere',1,1,1)
e2.Material = "Fabric"
e1w=T.W(e1,h1,.35,0,-.55,0,0,0) T.W(e2,h1,-.35,0,-.55,0,0,0)
e1w.Material = "Fabric"
dec = Instance.new("Decal")
dec.Face = 'Front'
dec.Texture = "http://www.roblox.com/asset/?id=0"
char.Head.Transparency = 1
-----------------------------------
function colorslide(obj,prop,scol,ecol,timme,override)
if scol == 'cur' then scol3 = obj.BrickColor.Color else
scol3 = BrickColor.new(scol).Color
end
ecol3 = BrickColor.new(ecol).Color
for i = 0,1,timme do
wait()
pos = v3n(scol3.r,scol3.g,scol3.b):Lerp(v3n(ecol3.r,ecol3.g,ecol3.b),i)
obj[prop] = Color3.new(pos.x,pos.y,pos.z)
end
end
function checkplayers(pos,radius,what)
tab = {}
for i,v in pairs(Workspace:GetChildren()) do
if v:IsA("Model") and v ~= char then
for _,q in pairs(v:GetChildren()) do
if q:IsA("Humanoid") then
if (q.Torso.Position-pos).magnitude <= radius then
if what == 'char' then table.insert(tab,q.Parent)
elseif what == 'humanoid' then table.insert(tab,q)
end
end end end end end
return tab
end
function rage()
tyu = cfn(0,.2,-.5)
lock.R(1) lock.L(1)
neck.C0 = normposn
for i = 0,140,10 do
wait()
rw.C1 = (normposr*tyu)*ang(M.D(i),0,M.D(i/(140/-50)))
lw.C1 = (normposl*tyu)*ang(M.D(i),0,M.D(i/(140/50)))
neck.C0 = normposn*ang(M.D(i/(140/30)),0,0)
end
wait(1)
for i = 140,50,-20 do
wait()
rw.C1 = (normposr)*ang(M.D(-i),0,M.D(i))
lw.C1 = (normposl)*ang(M.D(-i),0,M.D(-i))
end
neck.C0 = normposn*ang(M.D(-30),0,0)
fire = T.F(torso,30,30,'Bright red','Magenta')
ef = T.P(1,1,1,'Really red',0,false,false)
ew = T.W(ef,torso,0,0,0,0,0,0,ef)
msh = T.FM(ef,'sphere',1,1,1)
for i = 0,20 do wait() ef.Transparency = i/20 msh.Scale = v3n(i,i,i)
T.C(function()
tabb = checkplayers(ef.Position,20,'char')
if #tabb > 0 then
for i,v in pairs(tabb) do damage(v,10,true,.2) end
end
end)
end
msh:Remove()
for i = 30,8,-1 do
wait() fire.Size = i
end
colorslide(fire,'Color','Bright red','Deep blue',.05)
lock.R(0) lock.L(0) neck.C0 = normposn
end
hop = Instance.new("HopperBin",p.Backpack)
hop.Name = name
holdpos = normposr*ang(math.pi/2,0,0)
port,port2,bol,boltime = nil,nil,false,1
function hide()
if char.Parent ~= curcam then
char.Parent = curcam
hop.Name = name..'(h)'
else char.Parent = Workspace
hop.Name = name
end
end
function makeport1()
if not port then --- Blue portal
circle()
port = Instance.new("Model",Workspace)
port.Name = 'omakotikullankallis'
ring = T.P(1,1,1,'Deep blue',0,false,true,port) T.FM(ring,'ring',4,4,1)
ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir = T.P(3.5,.1,3.5,ring.BrickColor.Name,.5,false,true,port) T.FM(mir,'cylinder',1,1,1)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
mir.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port2 and not bol then bol = true
hit.Parent:MoveTo(mir2.Position) wait(boltime) bol = false
end end) ---- On touch event for blue portal
elseif port then ring.CFrame = torso.CFrame * cfn(0,0,-4)
mir.CFrame = ring.CFrame*ang(math.pi/2,0,0)
end
end
function makeport2()
if not port2 then
circle()
port2 = Instance.new("Model",Workspace)
port2.Name = 'omakotikullankallis'
ring2 = T.P(1,1,1,'Fabric orange',0,false,true,port2) T.FM(ring2,'ring',4,4,1)
ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2 = T.P(3.5,.1,3.5,ring2.BrickColor.Name,.5,false,true,port2) T.FM(mir2,'cylinder',1,1,1)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
mir2.Touched:connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil and hum.Parent == char and port and not bol then bol = true
hit.Parent:MoveTo(mir.Position) wait(boltime) bol = false
end end) ---- On touch event for orange portal
elseif port2 then ring2.CFrame = torso.CFrame * cfn(0,0,-4)
mir2.CFrame = ring2.CFrame*ang(math.pi/2,0,0)
end
end
holdpos2 = normposl*ang(math.pi/2,0,0)
function punch()
fires = {}
lock.R(1) lock.L(1)
for i,v in pairs(bracs:children()) do
if v.Name ~= 'a' then table.insert(fires,T.F(v,.5,.5,'White','Black')) end
end
sticks = Instance.new("Model",m)
rr = .5
for _,v in pairs({rarm,larm}) do
for _,pos in pairs({ {0,-rr}, {0,rr}, {rr,0}, {-rr,0} }) do
stick = T.P(.3,.3,2.5,'Really blue',.5,false,false,sticks)
stick.Touched:connect(function(hit) damage(hit.Parent,10000,true,.05) end)
T.W(stick,v,pos[1],-.6,pos[2],-math.pi/2,0,0)
end end
for i = 1,10 do
rw.C1 = holdpos*cfn(0,.5,0)
lw.C1 = (holdpos2*cfn(0,-.5,0))*ang(0,0,M.D(30))
wait(.05)
rw.C1 = (holdpos*cfn(0,-.5,0))*ang(0,0,M.D(-30))
lw.C1 = holdpos2*cfn(0,.5,0)
wait(.05)
end
sticks:Remove() for _,v in pairs(fires) do v:Remove() end
lock.R(0) lock.L(0)
end
Workspace.ChildRemoved:connect(function(child)
if child == port then port = nil
elseif child == port2 then port2 = nil
end end)
function removeports()
if port then port:Remove() port = nil end
if port2 then port2:Remove() port2 = nil end
for i,v in pairs(Workspace:GetChildren()) do if v.Name == 'omakotikullankallis' then v:Remove() end end
end
function circle()
r = .5
lock.R(1)
for i = 0,90,10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
for i = 0,360,25 do
wait()
rw.C1 = holdpos*ang(M.Cos(M.D(-i))*r,0,M.Sin(M.D(-i))*r)
end
for i = 90,0,-10 do wait() rw.C1 = normposr*ang(M.D(i),0,0) end
lock.R(0)
end
Workspace.ChildRemoved:connect(function(child) if child == port then port = nil elseif child == port2 then port2 = nil end end) --- Nill's portals if they dont exist
function bowl(mouse)
colorslide(e1,'Color','cur','Royal purple',.05)
dec.Parent = e1
light = T.P(1,2,1,'Royal purple',.8,false,false)
light.Touched:connect(function(hit) damage(hit.Parent,10000,false,1) end)
T.FM(light,'spike',.5,2,.5)
T.W(light,e1,0,0,-1,math.pi/2,0,0)
holding = true
posa = e1.Position
while holding do
wait()
lv = char.Head.CFrame.lookVector
pos3 = ((posa-mouse.hit.p).unit):Cross(lv)
e1w.C1 = cfn(.35,0,-.55)*ang(0,pos3.Y,0)
end
light:Remove()
colorslide(e1,'Color','cur','Really black',.05) e1w.C1 = cfn(.35,0,-.55)
dec.Parent = nil
end
sitbp = nil
function sit()
if sitbp == nil then
lock.R(2) lock.L(2)
sitbp = T.BP(torso,torso.Position)
for i = 1,90,5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position - v3n(0,i/(90),0)
end
elseif sitbp ~= nil then
for i = 90,1,-5 do
wait()
rhw.C1 = normposr2*ang(M.D(i),0,M.D(i/(90/-30)))
lhw.C1 = normposl2*ang(M.D(i),0,M.D(i/(90/30)))
sitbp.position = torso.Position + v3n(0,i/(90),0)
end
lock.R(-1) lock.L(-1)
sitbp:Remove() sitbp = nil
end
end
function freemyself()
for i,v in pairs(char:GetChildren()) do
for _,o in pairs(v:GetChildren()) do
for _,q in pairs({'BodyPosition','BodyForce','BodyVelocity','BodyGyro'}) do
if o:IsA(q) then o:Remove() end
end
if o:IsA("Part") then
o.Anchored = false end
end
end
sk = T.P(1,1,1,'Royal Purple',0,false,false)
T.W(sk,torso,0,0,0,0,0,0,sk)
msh = T.FM(sk,'skull',3,3,3)
for i = 0,1,.05 do wait() sk.Transparency = i end sk:Remove()
end
function breake()
welds = {}
bps = {}
possa = torso.Position
for i,v in pairs(torso:children()) do
if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
end
end
for _,v in pairs(char:children()) do
if v:IsA("BasePart") then v.CanCollide = true end
end
local hum = char.Humanoid
hum.Parent = nil
holding = true
while holding do wait() end
for i,v in pairs(welds) do
v.Parent = torso
v.Part1 = v.Part1
end
hum.Parent = char
end
klist = {
{'fa',function() rage() end},
{'qa',function() makeport1() end},
{'ea',function() makeport2() end},
{'ra',function() removeports() end},
{'ca',function(a) punch(a) end},
{'xa',function() sit() end},
{'za',function() freemyself() end},
{'va',function() hide() end},
{'ga',function() breake() end,''}
}
hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
hop.Selected:connect(function(mouse)
mouse.Button1Up:connect(function() holding = false end)
mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
mouse.KeyDown:connect(function(key) if attacking then return end
for i,v in pairs(klist) do
if key == v[1] then attacking = true v[2](mouse) attacking = false end
end
end)
mouse.Button1Down:connect(function() if attacking then return end attacking = true bowl(mouse) attacking = false end)
end) |
--[[--------------------------------------------------------------------
PhanxChat
Reduces chat frame clutter and enhances chat frame functionality.
Copyright (c) 2006-2018 Phanx <addons@phanx.net>. All rights reserved.
https://www.wowinterface.com/downloads/info6323-PhanxChat.html
https://www.curseforge.com/wow/addons/phanxchat
https://github.com/phanx-wow/PhanxChat
----------------------------------------------------------------------]]
local _, PhanxChat = ...
local C, S, L = {}, {}, {}
local LOCALE = GetLocale()
PhanxChat.ChannelNames, PhanxChat.ShortStrings, PhanxChat.L = C, S, L
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "Conversation"
C.General = "General"
C.LocalDefense = "LocalDefense"
C.LookingForGroup = "LookingForGroup"
C.Trade = "Trade"
C.WorldDefense = "WorldDefense"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "C"
S.General = "G"
S.LocalDefense = "LD"
S.LookingForGroup = "LFG"
S.Trade = "T"
S.WorldDefense = "WD"
S.Guild = "g"
S.InstanceChat = "i"
S.InstanceChatLeader = "I"
S.Officer = "o"
S.Party = "p"
S.PartyGuide = "P"
S.PartyLeader = "P"
S.Raid = "r"
S.RaidLeader = "R"
S.RaidWarning = "W"
S.Say = "s"
S.WhisperIncoming = "w"
S.WhisperOutgoing = "@"
S.Yell = "y"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Battle"
-- Options Panel
L.All = "All"
L.Default = "Default"
L.EnableArrows = "Enable arrow keys"
L.EnableArrows_Desc = "Enable arrow keys in the chat edit box."
L.EnableResizeEdges = "Enable resize edges"
L.EnableResizeEdges_Desc = "Enable resize controls at all edges of chat frames, instead of only the bottom right corner."
L.EnableSticky = "Sticky chat"
L.EnableSticky_Desc = "Set which chat types should be sticky."
L.FadeTime = "Fade time"
L.FadeTime_Desc = "Set the time, in minutes, to wait before fading chat text. A setting of 0 will disable fading."
L.FontSize = "Font size"
L.FontSize_Desc = "Set the font size for all chat frames."
L.FontSize_Note = "Note that this is just a shortcut to configuring each chat frame individually through the Blizzard chat options."
L.HideButtons = "Hide buttons"
L.HideButtons_Desc = "Hide the chat frame menu and scroll buttons."
L.HideFlash = "Hide tab flash"
L.HideFlash_Desc = "Disable the flashing effect on chat tabs that receive new messages."
L.HideNotices = "Hide notices"
L.HideNotices_Desc = "Hide channel notification messages."
L.HidePetCombatLog = "Disable pet battle log"
L.HidePetCombatLog_Desc = "Prevent the chat frame from opening a combat log for pet battles."
L.HideRepeats = "Hide repeats"
L.HideRepeats_Desc = "Hide repeated messages in public channels."
L.HideTextures = "Hide extra textures"
L.HideTextures_Desc = "Hide the extra textures on chat tabs and chat edit boxes added in patch 3.3.5."
L.LinkURLs = "Link URLs"
L.LinkURLs_Desc = "Transform URLs in chat into clickable links for easy copying."
L.LockTabs = "Lock docked tabs"
L.LockTabs_Desc = "Prevent docked chat tabs from being dragged unless the Shift key is down."
L.MoveEditBox = "Move edit boxes"
L.MoveEditBox_Desc = "Move chat edit boxes to the top their respective chat frames."
L.None = "None"
L.OptionLocked = "This option is locked by PhanxChat. Use the %q option in PhanxChat instead."
L.OptionLockedConditional = "This option is locked by PhanxChat. If you wish to change it, you must first disable the %q option in PhanxChat."
L.RemoveRealmNames = "Remove realm names"
L.RemoveRealmNames_Desc = "Shorten player names by removing realm names."
L.ReplaceRealNames = "Replace real names"
L.ReplaceRealNames_Desc = "Replace Real ID names and BattleTags with WoW character names when possible."
L.ShortenChannelNames = "Short channel names"
L.ShortenChannelNames_Desc = "Shorten channel names and chat strings."
L.ShortenRealNames = "Shorten real names"
L.ShortenRealNames_Desc = "Choose how to shorten Real ID names, if at all."
L.ShortenRealNames_UseBattleTag = "Replace with BattleTag"
L.ShortenRealNames_UseFirstName = "Show first name only"
L.ShortenRealNames_UseFullName = "Keep full name"
L.ShowClassColors = "Show class colors"
L.ShowClassColors_Desc = "Show class colors in all channels."
L.Whisper_BadTarget = "You can't whisper that target!"
L.Whisper_NoTarget = "You don't have a target to whisper!"
L.WhoStatus_Battlenet = "%s is currently in the Battle.net Desktop App."
L.WhoStatus_Offline = "%s is currently offline."
L.WhoStatus_PlayingOtherGame = "%s is currently playing %s."
------------------------------------------------------------------------
-- German
-- Contributors: acer, bigx2, pas06, staratnight, Tumbleweed_DSA
-- Last updated: 2015-12-09
------------------------------------------------------------------------
if LOCALE == "deDE" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "Chat"
C.General = "Allgemein"
C.LocalDefense = "LokaleVerteidigung"
C.LookingForGroup = "SucheNachGruppe"
C.Trade = "Handel"
C.WorldDefense = "WeltVerteidigung"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "C"
S.General = "A"
S.LocalDefense = "LV"
S.LookingForGroup = "LFG"
S.Trade = "H"
S.WorldDefense = "GV"
S.Guild = "G"
S.InstanceChat = "I"
S.InstanceChatLeader = "IF"
S.Officer = "O"
S.Party = "G"
S.PartyGuide = "GL"
S.PartyLeader = "GL"
S.Raid = "SZ"
S.RaidLeader = "SZL"
S.RaidWarning = "SZW"
S.Say = "S"
S.WhisperIncoming = "W"
S.WhisperOutgoing = "@"
S.Yell = "S"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Kampf"
-- Options Panel
L.All = "Alle"
L.Default = "Standard"
L.EnableArrows = "Pfeiltasten aktivieren"
L.EnableArrows_Desc = "Aktiviert die Pfeiltasten im Eingabefeld des Chats."
L.EnableResizeEdges = "An allen Ecken veränderbar aktivieren"
L.EnableResizeEdges_Desc = "Aktivieren, um die Größe des Chatfenster an allen Ecken zu verändern, anstatt nur in der unteren rechten Ecke."
L.EnableSticky = "Channel merken"
L.EnableSticky_Desc = "Festlegen, welche Channels gemerkt werden sollen."
L.FadeTime = "Ausblenden des Textes"
L.FadeTime_Desc = "Zeit bis zum Ausblenden des Textes in Minuten (0 = deaktiviert)."
L.FontSize = "Schriftgröße"
L.FontSize_Desc = "Schriftgröße für alle Chatfenster festlegen."
L.FontSize_Note = "Beachte, dass dies nur eine Kurzform zum Konfigurieren jedes einzelnen Chatfensters durch die Blizzard-Chatoptionen ist."
L.HideButtons = "Buttons verbergen"
L.HideButtons_Desc = "Verbirgt das Chatfenstermenü und die Scroll-Buttons."
L.HideFlash = "Blinken der Tabs verbergen"
L.HideFlash_Desc = "Deaktiviert das Blinken der Chat-Tabs, bei denen eine neue Nachricht erhalten wurde."
L.HideNotices = "Meldungen verbergen"
L.HideNotices_Desc = "Channel-Meldungen verbergen"
L.HidePetCombatLog = "Haustierkampflog deaktivieren"
L.HidePetCombatLog_Desc = "Verhindert, dass ein neues Kampflogfenster für Haustierkämpfe geöffnet wird."
L.HideRepeats = "Wiederholungen verbergen"
L.HideRepeats_Desc = "Nachrichten, die in öffentlichen Channels wiederholt werden, verbergen."
L.HideTextures = "Extra-Texturen verbergen"
L.HideTextures_Desc = "Verbirgt Extra-Texturen der Chat-Tabs und dem Chat-Eingabefeld, die in Patch 3.3.5 hinzugefügt wurden."
L.LinkURLs = "URLs verlinken"
L.LinkURLs_Desc = "URLs im Chat für einfaches Kopieren anklickbar machen."
L.LockTabs = "Angedockte Tabs sperren"
L.LockTabs_Desc = "Verhindert, dass angedockte Tabs verschoben werden. Zum Verschieben die ALT-Taste gedrückt halten."
L.MoveEditBox = "Eingabefeld verschieben"
L.MoveEditBox_Desc = "Das Eingabefeld über dem Chatfenster anzeigen."
L.None = "Keine"
L.OptionLocked = "Diese Option ist von PhanxChat gesperrt. Benutze stattdessen die %q Option in PhanxChat."
L.OptionLockedConditional = "Diese Option ist von PhanxChat gesperrt. Wenn du sie ändern möchtest, musst du zunächst die Option %q in PhanxChat deaktivieren."
L.RemoveRealmNames = "Servernamen entfernen"
L.RemoveRealmNames_Desc = "Kürze die Spielernamen, indem der Servername entfernt wird."
L.ReplaceRealNames = "Realnamen ersetzen"
L.ReplaceRealNames_Desc = "Ersetzt, wenn möglich, die Real-ID-Namen und BattleTags mit den WoW-Charakternamen."
L.ShortenChannelNames = "Channelnamen abkürzen"
L.ShortenChannelNames_Desc = "Abkürzen der Channelnamen und Chat-Bezeichnungen."
L.ShortenRealNames = "Realnamen kürzen"
L.ShortenRealNames_Desc = "Wähle, wie Real-ID-Namen gekürzt werden."
L.ShortenRealNames_UseBattleTag = "Mit dem BattleTag ersetzen"
L.ShortenRealNames_UseFirstName = "Nur den Vornamen anzeigen"
L.ShortenRealNames_UseFullName = "Den vollständigen Namen beibehalten"
L.ShowClassColors = "Klassenfarben anzeigen"
L.ShowClassColors_Desc = "Klassenfarben in allen Chatkanälen anzeigen."
L.Whisper_BadTarget = "Du kannst dieses Ziel nicht anflüstern!"
L.Whisper_NoTarget = "Du hast kein Ziel zum anflüstern!"
L.WhoStatus_Battlenet = "%s befindet sich zur Zeit in der Battle.net-Software."
L.WhoStatus_Offline = "%s ist zur Zeit offline."
L.WhoStatus_PlayingOtherGame = "%s spielt zur Zeit %s."
return end
------------------------------------------------------------------------
-- Spanish
------------------------------------------------------------------------
if LOCALE == "esES" or LOCALE == "esMX" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "Conversación"
C.General = "General"
C.LocalDefense = "DefensaLocal"
C.LookingForGroup = "BuscarGrupo"
C.Trade = "Comercio"
C.WorldDefense = "DefensaGeneral"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "D"
S.General = "G"
S.LocalDefense = "DL"
S.LookingForGroup = "BDG"
S.Trade = "C"
S.WorldDefense = "DG"
S.Guild = "H"
S.InstanceChat = "e"
S.InstanceChatLeader = "E"
S.Officer = "O"
S.Party = "g"
S.PartyGuide = "G"
S.PartyLeader = "G"
S.Raid = "b"
S.RaidLeader = "B"
S.RaidWarning = "A"
S.Say = "d"
S.WhisperIncoming = "S"
S.WhisperOutgoing = "@"
S.Yell = "Gr"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Duelo"
-- Options Panel
L.All = "Todos"
L.Default = "Predeterminados"
L.EnableArrows = "Activar teclas de flecha"
L.EnableArrows_Desc = "Activar las teclas de flecha en el cuadro de escritura."
L.EnableResizeEdges = "Usar bordes para cambiar tamaño"
L.EnableResizeEdges_Desc = "Cambiar el tamaño la ventana de chat usando cualquiera de los bordes, en lugar de sólo la esquina inferior derecha."
L.EnableSticky = "Canales adhesivos"
L.EnableSticky_Desc = "Seleccionar cuál de los canales son adhesivos."
L.FadeTime = "Tiempo de desaparición"
L.FadeTime_Desc = "Desaparecer el texto en la ventana de chat después de estos minutos. Ajustado a 0 para para desactivar la desaparición."
L.FontSize = "Tamaño de fuente"
L.FontSize_Desc = "Ajustar el tamaño de fuente para todas las ventanas de chat."
L.FontSize_Note = "Observe que esto es simplemente un acceso rápido para configurar todas las ventanas de chat por separado en las opciones de chat del juego."
L.HideButtons = "Ocultar botones"
L.HideButtons_Desc = "Ocultar el botón de menú de chat y los botones de desplazamiento."
L.HideFlash = "Ocultar flash en pestaña"
L.HideFlash_Desc = "Ocultar el flash en las pestañas que reciben nuevos mensajes."
L.HideNotices = "Ocultar anuncios"
L.HideNotices_Desc = "Ocultar anuncios de canal."
L.HidePetCombatLog = "Desactivar registro de combate de mascotes"
L.HidePetCombatLog_Desc = "Evitar que se abren un nuevo registro de combate para los duelos de mascotas."
L.HideRepeats = "Ocultar repeticiones"
L.HideRepeats_Desc = "Ocultar mensajes repetidos en los canales públicos."
L.HideTextures = "Ocultar texturas extras"
L.HideTextures_Desc = "Ocultar las texturas extras en las pestañas y el cuadro de escritura, que han añadido en el Parche 3.3.5."
L.LinkURLs = "Enlazar URLs"
L.LinkURLs_Desc = "Cambiar a enlanes los URLs en mensajes de chat, para copiar fácilmente."
L.LockTabs = "Bloquear pestañas"
L.LockTabs_Desc = "Evitar arrastrar las pestañas de chat a menos que pulsas la tecla Mayús."
L.MoveEditBox = "Mover cuadro de escritura"
L.MoveEditBox_Desc = "Mover el cuadro de escritura a la parte superior de la ventana de chat."
L.None = "Ningunos"
L.OptionLocked = "Esta opción está bloqueado por PhanxChat. Use la opción %q de PhanxChat en vez."
L.OptionLockedConditional = "Esta opción está bloqueado por PhanxChat. Para cambiarlo, primero desactive la opción %q de PhanxChat."
L.RemoveRealmNames = "Eliminar nombres de reinos"
L.RemoveRealmNames_Desc = "Eliminar de los nombres de personajes los nombres de reinos."
L.ReplaceRealNames = "Reemplazar nombres reales"
L.ReplaceRealNames_Desc = "Reemplazar con los nombres de personajes los BattleTags y los nombres de amigos con ID real."
L.ShortenChannelNames = "Acortar nombres de canales"
L.ShortenChannelNames_Desc = "Acortar los nombres de los canales de chat."
L.ShortenRealNames = "Acortar nombres reales"
L.ShortenRealNames_Desc = "Seleccionar cómo acortar los nombres reales, o no."
L.ShortenRealNames_UseBattleTag = "Reemplazar con BattleTag"
L.ShortenRealNames_UseFirstName = "Sólo el nombre de pila"
L.ShortenRealNames_UseFullName = "Mantenga el nombre completo"
L.ShowClassColors = "Colores de clase"
L.ShowClassColors_Desc = "Mostrar colores de clase en todas las canales."
L.Whisper_BadTarget = "No es posible susurrar a ese objetivo!"
L.Whisper_NoTarget = "No es posible susurrar a ningún objetivo!"
L.WhoStatus_Battlenet = "%s está en la Battle.net Desktop App."
L.WhoStatus_Offline = "%s está desconectado."
L.WhoStatus_PlayingOtherGame = "%s está jugando a %s."
return end
------------------------------------------------------------------------
-- French
-- Contributors: aktaurus, braincell, L0relei
-- Last updated: 2015-04-08
------------------------------------------------------------------------
if LOCALE == "frFR" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "Conversation"
C.General = "Général"
C.LocalDefense = "DéfenseLocale"
C.LookingForGroup = "RechercheDeGroupe"
C.Trade = "Commerce"
C.WorldDefense = "DéfenseUniverselle"
-- Abbreviated Channel Names
-- These should be one- or two-character abbreviations.
S.Conversation = "C"
S.General = "G"
S.LocalDefense = "DL"
S.LookingForGroup = "RG"
S.Trade = "C"
S.WorldDefense = "DM"
S.Guild = "G"
S.InstanceChat = "I"
S.InstanceChatLeader = "CI"
S.Officer = "O"
S.Party = "G"
S.PartyGuide = "CG"
S.PartyLeader = "CG"
S.Raid = "R"
S.RaidLeader = "CR"
S.RaidWarning = "AR"
S.Say = "D"
S.WhisperIncoming = "De"
S.WhisperOutgoing = "À"
S.Yell = "C"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Combat"
-- Options Panel
L.All = "Tous"
L.Default = "Défaut"
L.EnableArrows = "Autoriser les touches fléchées"
L.EnableArrows_Desc = "Autoriser l'utilisation des touches fléchées dans la fenêtre de chat."
L.EnableResizeEdges = "Améliorer le redimensionnement"
L.EnableResizeEdges_Desc = "Autoriser le redimensionnement grâce à tous les coins de la fenêtre de chat, au lieu du seul coin bas droit."
L.EnableSticky = "Canal mémorisé"
L.EnableSticky_Desc = "Sélectionner les types de canaux mémorisés."
L.FadeTime = "Temps d'estompage"
L.FadeTime_Desc = "Régler le temps, en minutes, à attendre avant l'estompage du texte. Une valeur de 0 désactivera l'estompage."
L.FontSize = "Taille de police"
L.FontSize_Desc = "Régler la taille de police pour toutes les fenêtres de chat."
L.FontSize_Note = "Notez que ceci est juste un raccourci pour configurer les fenêtres de chat via les options de Blizzard."
L.HideButtons = "Masquer les boutons"
L.HideButtons_Desc = "Masquer le menu de la fenêtre de chat et les boutons de défilement."
L.HideFlash = "Masquer le flash des onglets"
L.HideFlash_Desc = "Désactiver l'effet de flash des onglets qui ont un nouveau message."
L.HideNotices = "Masquer les avertissements"
L.HideNotices_Desc = "Masquer les messages de notification de changement de canal."
L.HidePetCombatLog = "Désactiver le journal de combat des familiers"
L.HidePetCombatLog_Desc = "Empêche la fenêtre de discussion d'ouvrir un journal de combat pour les combats de familiers."
L.HideRepeats = "Masquer les spams"
L.HideRepeats_Desc = "Masquer les message spammés sur les canaux publics."
L.HideTextures = "Masquer les textures supplémentaires"
L.HideTextures_Desc = "Masquer les textures supplémentaires des onglets et de la fenêtre d'édition ajoutées avec la 3.3.5."
L.LinkURLs = "Liens URL"
L.LinkURLs_Desc = "Transformer les URL dans la fenêtre de chat en liens cliquables pour les copier."
L.LockTabs = "Verrouiller les onglets"
L.LockTabs_Desc = "Enpêcher de déplacer les onglets sans appuyer sur la touche shift."
L.MoveEditBox = "Déplacer la fenêtre d'édition"
L.MoveEditBox_Desc = "Déplacer les fenêtres d'édition en haut de leurs fenêtres de chat respectives."
L.None = "Aucun"
L.OptionLocked = "Cette option est verrouillée par PhanxChat. Utilisez l'option %q dans PhanxChat à la place."
L.OptionLockedConditional = "Cette option est verrouillée par PhanxChat. Si vous souhaitez la changer, vous d'abord désactiver l'option %q dans PhanxChat."
L.RemoveRealmNames = "Ôter les noms de serveurs"
L.RemoveRealmNames_Desc = "Raccourcir les noms des joueurs en ôtant les noms de serveurs."
L.ReplaceRealNames = "Remplacer les noms réels"
L.ReplaceRealNames_Desc = "Remplacer le nom réel par le nom de personnage."
L.ShortenChannelNames = "Noms de canaux courts"
L.ShortenChannelNames_Desc = "Raccourcir les noms de canaux et de chat."
L.ShortenRealNames = "Noms réels courts"
L.ShortenRealNames_Desc = "Choisis comment raccourcir le Real ID."
L.ShortenRealNames_UseBattleTag = "Remplace par le BattleTag"
L.ShortenRealNames_UseFirstName = "Affiche seulement le prénom"
L.ShortenRealNames_UseFullName = "Garde le nom complet"
L.ShowClassColors = "Afficher les couleurs de classe"
L.ShowClassColors_Desc = "Afficher les couleurs de classe dans tous les canaux."
L.Whisper_BadTarget = "Vous ne pouvez pas chuchoter vers cette cible!"
L.Whisper_NoTarget = "Vous n'avez pas de cible pour chuchoter!"
L.WhoStatus_Battlenet = "%s est sur l'application Battle.net."
L.WhoStatus_Offline = "%s est déconnecté."
L.WhoStatus_PlayingOtherGame = "%s joue à %s."
return end
------------------------------------------------------------------------
-- Italian
-- Contributors: alar
-- Lad updated: 2015-03-17
------------------------------------------------------------------------
if LOCALE == "itIT" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "Conversazione"
C.General = "Generale"
C.LocalDefense = "DifesaLocale"
C.LookingForGroup = "CercaGruppo"
C.Trade = "Commercio"
C.WorldDefense = "DifesaMondiale"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "BN"
S.General = "G"
S.LocalDefense = "DL"
S.LookingForGroup = "CG"
S.Trade = "C"
S.WorldDefense = "DM"
S.Guild = "G"
S.InstanceChat = "i"
S.InstanceChatLeader = "Ci"
S.Officer = "Uf"
S.Party = "Gr"
S.PartyGuide = "GS"
S.PartyLeader = "CG"
S.Raid = "I"
S.RaidLeader = "CI"
S.RaidWarning = "AI"
S.Say = "D"
S.WhisperIncoming = "Sd"
S.WhisperOutgoing = "Sa"
S.Yell = "Ur"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Scontro"
-- Options Panel
--L.All = "All"
--L.Default = "Default"
L.EnableArrows = "Abilita Tasti Freccia"
--L.EnableArrows_Desc = "Enable arrow keys in the chat edit box."
--L.EnableResizeEdges = "Enable resize edges"
--L.EnableResizeEdges_Desc = "Enable resize controls at all edges of chat frames, instead of only the bottom right corner."
--L.EnableSticky = "Sticky chat"
--L.EnableSticky_Desc = "Set which chat types should be sticky."
--L.FadeTime = "Fade time"
--L.FadeTime_Desc = "Set the time, in minutes, to wait before fading chat text. A setting of 0 will disable fading."
--L.FontSize = "Font size"
--L.FontSize_Desc = "Set the font size for all chat frames."
--L.FontSize_Note = "Note that this is just a shortcut to configuring each chat frame individually through the Blizzard chat options."
--L.HideButtons = "Hide buttons"
--L.HideButtons_Desc = "Hide the chat frame menu and scroll buttons."
--L.HideFlash = "Hide tab flash"
--L.HideFlash_Desc = "Disable the flashing effect on chat tabs that receive new messages."
--L.HideNotices = "Hide notices"
--L.HideNotices_Desc = "Hide channel notification messages."
--L.HidePetCombatLog = "Disable pet battle log"
--L.HidePetCombatLog_Desc = "Prevent the chat frame from opening a combat log for pet battles."
--L.HideRepeats = "Hide repeats"
--L.HideRepeats_Desc = "Hide repeated messages in public channels."
--L.HideTextures = "Hide extra textures"
--L.HideTextures_Desc = "Hide the extra textures on chat tabs and chat edit boxes added in patch 3.3.5."
--L.LinkURLs = "Link URLs"
--L.LinkURLs_Desc = "Transform URLs in chat into clickable links for easy copying."
--L.LockTabs = "Lock docked tabs"
--L.LockTabs_Desc = "Prevent docked chat tabs from being dragged unless the Shift key is down."
--L.MoveEditBox = "Move edit boxes"
--L.MoveEditBox_Desc = "Move chat edit boxes to the top their respective chat frames."
--L.None = "None"
--L.OptionLocked = "This option is locked by PhanxChat. Use the %q option in PhanxChat instead."
--L.OptionLockedConditional = "This option is locked by PhanxChat. If you wish to change it, you must first disable the %q option in PhanxChat."
--L.RemoveRealmNames = "Remove realm names"
--L.RemoveRealmNames_Desc = "Shorten player names by removing realm names."
--L.ReplaceRealNames = "Replace real names"
--L.ReplaceRealNames_Desc = "Replace Real ID names and BattleTags with WoW character names when possible."
--L.ShortenChannelNames = "Short channel names"
--L.ShortenChannelNames_Desc = "Shorten channel names and chat strings."
--L.ShortenRealNames = "Shorten real names"
--L.ShortenRealNames_Desc = "Choose how to shorten Real ID names, if at all."
--L.ShortenRealNames_UseBattleTag = "Replace with BattleTag"
--L.ShortenRealNames_UseFirstName = "Show first name only"
--L.ShortenRealNames_UseFullName = "Keep full name"
--L.ShowClassColors = "Show class colors"
--L.ShowClassColors_Desc = "Show class colors in all channels."
--L.Whisper_BadTarget = "You can't whisper that target!"
--L.Whisper_NoTarget = "You don't have a target to whisper!"
--L.WhoStatus_Battlenet = "%s is currently in the Battle.net Desktop App."
--L.WhoStatus_Offline = "%s is currently offline."
--L.WhoStatus_PlayingOtherGame = "%s is currently playing %s."
return end
------------------------------------------------------------------------
-- Portuguese
-- Contributors: AxellSlade, mgaedke, Tercioo
------------------------------------------------------------------------
if LOCALE == "ptBR" then
C.Conversation = "Conversa"
C.General = "Geral"
C.LocalDefense = "DefesaLocal"
C.LookingForGroup = "ProcurandoGrupo"
C.Trade = "Comércio"
C.WorldDefense = "DefesaGlobal"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "C"
S.General = "Ge"
S.LocalDefense = "DL"
S.LookingForGroup = "PG"
S.Trade = "Co"
S.WorldDefense = "DG"
S.Guild = "Gd"
S.InstanceChat = "I"
S.InstanceChatLeader = "LI"
S.Officer = "O"
S.Party = "G"
S.PartyGuide = "LG"
S.PartyLeader = "LG"
S.Raid = "R"
S.RaidLeader = "LR"
S.RaidWarning = "AR"
S.Say = "D"
S.WhisperIncoming = "d"
S.WhisperOutgoing = "p"
S.Yell = "Gr"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Confronto"
-- Options Panel
L.All = "Todos"
L.Default = "Padrão"
L.EnableArrows = "Ativar teclas de seta"
L.EnableArrows_Desc = "Ativar as teclas de seta na caixa de entrada de mensagens de bate-papo."
L.EnableResizeEdges = "Bordas redimensionamento"
L.EnableResizeEdges_Desc = "Redimensionar a janela de bate-papo usando qualquer borda, em vez de apenas o canto direito inferior."
L.EnableSticky = "Canais fixos"
L.EnableSticky_Desc = "Definir quais os tipos de bate-papo deve ser fixa."
L.FadeTime = "Tempo para desvanecer"
L.FadeTime_Desc = "Definir o tempo, em minutos, para esperar antes de desvanecer mensagens de bate-papo. Uma configuração de 0 desativa a desvanecer."
L.FontSize = "Tamanho do texto"
L.FontSize_Desc = "Definir o tamanho da fonte para todas as janelas de bate-papo."
L.FontSize_Note = "Note que este é apenas um atalho para a configuração de cada janela de bate-papo individualmente com as opções da Blizzard."
L.HideButtons = "Ocultar botões"
L.HideButtons_Desc = "Ocultar o botão de menu e botões de rolagem de bate-papo."
L.HideFlash = "Ocultar clarão guia"
L.HideFlash_Desc = "Não clarão das guias de bate-papo que receber novas mensagens."
L.HideNotices = "Ocultar avisos"
L.HideNotices_Desc = "Ocultar mensagens de notificação de canais de bate-papo."
L.HidePetCombatLog = "Desabilita registro de batalha de mascote"
L.HidePetCombatLog_Desc = "Previne o quadro de chat de abrir o registro de combate das batalhas de mascote."
L.HideRepeats = "Ocultar repetições"
L.HideRepeats_Desc = "Ocultar mensagens repetidas nos canais públicos de bate-papo."
L.HideTextures = "Ocultar texturas extras"
L.HideTextures_Desc = "Ocultar as texturas extras em guias de bate-papo e caixas de entrada de mensagem adicionados no patch 3.3.5."
L.LinkURLs = "URLs ligação"
L.LinkURLs_Desc = "Transformar URLs no bate-papo em hyperlinks clicáveis para facilitar a cópia."
L.LockTabs = "Travar guias acopladas"
L.LockTabs_Desc = "Só permitem arrastar guias acoplado de bate-papo quando a tecla Shift é pressionada."
L.MoveEditBox = "Mover caixas mensagens"
L.MoveEditBox_Desc = "Mover caixas de entrada de mensagens de bate-papo para o topo da sua respectice janelas de chat."
L.None = "Nenhum"
L.OptionLocked = "Esta opção está bloqueado por PhanxChat. Use a opção %q em PhanxChat em vez."
L.OptionLockedConditional = "Esta opção está bloqueado por PhanxChat. Se você deseja mudá-lo, você deve primeiro desativar a opção %q em PhanxChat."
L.RemoveRealmNames = "Remover nomes de reinos"
L.RemoveRealmNames_Desc = "Encurtar os nomes dos jogadores através da remoção de nomes de reinos."
L.ReplaceRealNames = "Substituir nomes reais"
L.ReplaceRealNames_Desc = "Substituir nomes Real ID com nomes de personagens."
L.ShortenChannelNames = "Curto nomes canais"
L.ShortenChannelNames_Desc = "Encurtar os nomes dos canais de bate-papo."
L.ShortenRealNames = "Abreviar nomes verdadeiros"
L.ShortenRealNames_Desc = "Escolha o método para diminuir o tamanho dos nomes da Real ID."
L.ShortenRealNames_UseBattleTag = "Substituir pela BattleTag"
L.ShortenRealNames_UseFirstName = "Mostrar apenas o primeiro nome"
L.ShortenRealNames_UseFullName = "Manter o nome completo"
L.ShowClassColors = "Cores das classes"
L.ShowClassColors_Desc = "Mostrar cores das classes em todos os canais."
L.Whisper_BadTarget = "Você não pode sussurrar este alvo!"
L.Whisper_NoTarget = "Você não possui um alvo para sussurrar!"
L.WhoStatus_Battlenet = "%s está no aplicativo da Battle.net."
L.WhoStatus_Offline = "%s não está online."
L.WhoStatus_PlayingOtherGame = "%s está jogando %s."
return end
------------------------------------------------------------------------
-- Russian
-- Contributors: hungry2, Yafis
------------------------------------------------------------------------
if LOCALE == "ruRU" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "Разговор"
C.General = "Общий"
C.LocalDefense = "Оборона"
C.LookingForGroup = "Поиск спутников"
C.Trade = "Торговля"
C.WorldDefense = "ОборонаГлобальный"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "Ра"
S.General = "О"
S.LocalDefense = "ОЛ"
S.LookingForGroup = "ПС"
S.Trade = "Т"
S.WorldDefense = "ОГ"
S.Guild = "Г"
S.InstanceChat = "П"
S.InstanceChatLeader = "ЛП"
S.Officer = "Оф"
S.Party = "Гр"
S.PartyGuide = "ГрЛ"
S.PartyLeader = "ГрЛ"
S.Raid = "Р"
S.RaidLeader = "РЛ"
S.RaidWarning = "РВ"
S.Say = "С"
S.WhisperIncoming = "Ш"
S.WhisperOutgoing = "@"
S.Yell = "К"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = "Битва"
-- Options Panel
L.All = "Все"
L.Default = "По умолчанию"
L.EnableArrows = "Включить стрелки"
L.EnableArrows_Desc = "Использовать стрелки курсора в окне редактирования сообщения."
L.EnableResizeEdges = "Включить рамку размера"
L.EnableResizeEdges_Desc = "Включить рамку изменения размера окна чата, вместо только нижнего правого угла."
L.EnableSticky = "Запоминать последний ввод"
L.EnableSticky_Desc = "Установить какие типы чата должны запоминать последний ввод, быть \"липкими\"."
L.FadeTime = "Время угасания"
L.FadeTime_Desc = "Установить время в минутах перед угасанием чата. Установив значение в 0 вы отмените угасание."
L.FontSize = "Размер шрифта"
L.FontSize_Desc = "Установить размер шрифта для всех окон чата."
L.FontSize_Note = "Заметьте, что это просто настраивает каждую вкладку индивидуально, как вы могли бы сделать обычным способом, через управление чатом в меню."
L.HideButtons = "Скрыть кнопки"
L.HideButtons_Desc = "Скрыть кнопку \"Общение\" и кнопки прокрутки."
L.HideFlash = "Скрыть мигание вкладок"
L.HideFlash_Desc = "Отключить мигание вкладок с новыми сообщениями."
L.HideNotices = "Скрыть уведомления"
L.HideNotices_Desc = "Скрывать информационные сообщения канала."
--L.HidePetCombatLog = "Disable pet battle log"
--L.HidePetCombatLog_Desc = "Prevent the chat frame from opening a combat log for pet battles."
L.HideRepeats = "Скрыть повторы"
L.HideRepeats_Desc = "Скрывать повторяющиеся сообщения в общих каналах."
L.HideTextures = "Скрыть текстуры"
L.HideTextures_Desc = "Скрыть дополнительные текстуры вкладок и окна ввода сообщения, добавленныe а патче 3.3.5."
L.LinkURLs = "Копирование ссылок"
L.LinkURLs_Desc = "Превратить ссылки в чате в кликабельные для простоты копирования."
L.LockTabs = "Зафиксировать вкладки"
L.LockTabs_Desc = "Запретить перетаскивание зафиксированных вкладок без зажатого Shift."
L.MoveEditBox = "Переместить окно ввода"
L.MoveEditBox_Desc = "Переместить окно ввода наверх окна чата."
L.None = "Никакие"
L.OptionLocked = "Эта опция заблокирована PhanxChat. Используйте опцию %q в PhanxChat."
L.OptionLockedConditional = "Эта опция заблокирована в PhanxChat. Если вы хотите включить ее то вы должны сначала отключить опцию %q в PhanxChat."
L.RemoveRealmNames = "Удалять название игрового мира"
L.RemoveRealmNames_Desc = "Укоротить имена игроков удалив название игрового мира."
L.ReplaceRealNames = "Заменить реальное имя"
L.ReplaceRealNames_Desc = "Заменять Real ID имена на имена персонажей."
L.ShortenChannelNames = "Короткие имена каналов"
L.ShortenChannelNames_Desc = "Сокращать имена каналов и строчки чата."
L.ShortenRealNames = "Сократить реальные имена"
--L.ShortenRealNames_Desc = "Choose how to shorten Real ID names, if at all."
L.ShortenRealNames_UseBattleTag = "Заменить BattleTag"
L.ShortenRealNames_UseFirstName = "Показывать только имя"
L.ShortenRealNames_UseFullName = "Сохранять полное имя"
L.ShowClassColors = "Отображать цвета классов"
L.ShowClassColors_Desc = "Отображать цвет классов во всех каналах."
L.Whisper_BadTarget = "Вы не можете прошептать цели!"
L.Whisper_NoTarget = "У вас нет цели для шепота!"
L.WhoStatus_Battlenet = "%s находиться в клиенте Battle.net."
L.WhoStatus_Offline = "%s игрок оффлайн."
L.WhoStatus_PlayingOtherGame = "%s в данный момент играет %s."
return end
------------------------------------------------------------------------
-- Korean
-- Contributors: talkswind
------------------------------------------------------------------------
if LOCALE == "koKR" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "대화"
C.General = "공개"
C.LocalDefense = "수비"
C.LookingForGroup = "파티찾기"
C.Trade = "거래"
C.WorldDefense = "전쟁"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "대화"
S.General = "공"
S.LocalDefense = "수"
S.LookingForGroup = "파찾"
S.Trade = "거"
S.WorldDefense = "쟁"
S.Guild = "길"
S.InstanceChat = "인던"
S.InstanceChatLeader = "인던장"
S.Officer = "관"
S.Party = "파"
S.PartyGuide = "파장"
S.PartyLeader = "파장"
S.Raid = "공"
S.RaidLeader = "공대"
S.RaidWarning = "공경"
S.Say = "일"
S.WhisperIncoming = "귓받"
S.WhisperOutgoing = "귓전"
S.Yell = "외"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = PET_BATTLE_COMBAT_LOG -- default is ok
-- Options Panel
L.All = "모두"
L.Default = "기본값"
L.EnableArrows = "화살표 키 활성화"
L.EnableArrows_Desc = "대화 입력 박스에서 화살표 키를 활성화합니다."
L.EnableResizeEdges = "구석 크기 조절 활성화"
L.EnableResizeEdges_Desc = "하단 오른쪽 모서리에 한정 된 것이 아닌, 모든 대화창 구석에서의 크기 조절을 활성화합니다."
L.EnableSticky = "채널 고정"
L.EnableSticky_Desc = "어떤 유형의 채널을 고정할 것인지를 설정합니다."
L.FadeTime = "사라짐 시간"
L.FadeTime_Desc = "대화 메시지가 사라지기 전에 기다려야 할 분단위 시간을 설정합니다. 이것을 0으로 설정하면 사라짐 기능을 비활성화하게 됩니다."
L.FontSize = "글꼴 크기"
L.FontSize_Desc = "대화창 모두에 적용할 글꼴 크기를 설정합니다."
L.FontSize_Note = "이것은 블리자드 대화창 옵션을 통해 각각의 대화창을 개별적으로 설정하기 위한 하나의 지름길이란 점에 유의하십시요."
L.HideButtons = "버튼 숨김"
L.HideButtons_Desc = "대화창 메뉴와 스크롤 버튼을 숨깁니다."
L.HideFlash = "탭 번쩍임 숨김"
L.HideFlash_Desc = "새로운 메시지를 받은 경우에 대화창 탭에서의 번쩍임 효과를 비활성화합니다."
L.HideNotices = "알림 메시지 숨김"
L.HideNotices_Desc = "채널 알림 메시지를 숨깁니다."
--L.HidePetCombatLog = "Disable pet battle log"
--L.HidePetCombatLog_Desc = "Prevent the chat frame from opening a combat log for pet battles."
L.HideRepeats = "반복 메시지 숨김"
L.HideRepeats_Desc = "공용 채널에서 반복되는 메시지를 숨깁니다."
L.HideTextures = "별도의 텍스쳐 숨김"
L.HideTextures_Desc = "3.3.5. 패치에서 대화창 탭과 편집 박스에 추가된 별도의 텍스쳐를 숨깁니다."
L.LinkURLs = "URL 링크"
L.LinkURLs_Desc = "대화 메시지에서 쉬운 복사를 위해 클릭이 가능한 링크로 URL을 변환합니다."
L.LockTabs = "고정된 탭 잠금"
L.LockTabs_Desc = "고정된 대화창 탭을 Shift 키를 누르지 않고도 잡아 끌 수 있는 것을 방지합니다."
L.MoveEditBox = "대화 입력 박스 이동"
L.MoveEditBox_Desc = "대화 입력 박스를 그것의 각각의 대화창의 상단으로 이동합니다."
L.None = "없음"
--L.OptionLocked = "This option is locked by PhanxChat. Use the %q option in PhanxChat instead."
--L.OptionLockedConditional = "This option is locked by PhanxChat. If you wish to change it, you must first disable the %q option in PhanxChat."
--L.RemoveRealmNames = "Remove realm names"
--L.RemoveRealmNames_Desc = "Shorten player names by removing realm names."
L.ReplaceRealNames = "서버 이름 대체"
L.ReplaceRealNames_Desc = "캐릭터 이름으로 실제 ID 이름을 대체합니다."
L.ShortenChannelNames = "채널 이름 줄임"
L.ShortenChannelNames_Desc = "채널 이름과 대화 구문열을 줄입니다."
--L.ShortenRealNames = "Shorten real names"
--L.ShortenRealNames_Desc = "Choose how to shorten Real ID names, if at all."
--L.ShortenRealNames_UseBattleTag = "Replace with BattleTag"
--L.ShortenRealNames_UseFirstName = "Show first name only"
--L.ShortenRealNames_UseFullName = "Keep full name"
--L.ShowClassColors = "Show class colors"
--L.ShowClassColors_Desc = "Show class colors in all channels."
--L.Whisper_BadTarget = "You can't whisper that target!"
--L.Whisper_NoTarget = "You don't have a target to whisper!"
--L.WhoStatus_Battlenet = "%s is currently in the Battle.net Desktop App."
--L.WhoStatus_Offline = "%s is currently offline."
--L.WhoStatus_PlayingOtherGame = "%s is currently playing %s."
return end
------------------------------------------------------------------------
-- Simplified Chinese
-- Contributors: bone_cures, tss1398383123
-- Last updated: 2015-01-05
------------------------------------------------------------------------
if LOCALE == "zhCN" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "对话"
C.General = "综合"
C.LocalDefense = "本地防务"
C.LookingForGroup = "寻求组队"
C.Trade = "交易"
C.WorldDefense = "世界防务"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "话"
S.General = "综"
S.LocalDefense = "本"
S.LookingForGroup = "寻"
S.Trade = "交"
S.WorldDefense = "世"
S.Guild = "公"
S.InstanceChat = "副本"
S.InstanceChatLeader = "副本首"
S.Officer = "官"
S.Party = "队"
S.PartyGuide = "领队"
S.PartyLeader = "队首"
S.Raid = "团"
S.RaidLeader = "领"
S.RaidWarning = "团警"
S.Say = "说"
S.WhisperIncoming = "密自"
S.WhisperOutgoing = "密往"
S.Yell = "喊"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = PET_BATTLE_COMBAT_LOG -- default is ok
-- Options Panel
L.All = "所有"
L.Default = "默认"
L.EnableArrows = "输入框中使用方向键"
L.EnableArrows_Desc = "允许在输入框中使用方向键。"
L.EnableResizeEdges = "开启边缘调整"
L.EnableResizeEdges_Desc = "开启聊天框边缘调整,而不只是在右下角调整。"
L.EnableSticky = "保持聊天频道与类型"
L.EnableSticky_Desc = "设定哪一聊天输出频道将被保持。"
L.FadeTime = "渐隐时间"
L.FadeTime_Desc = "设置文本消失时间,设为0将不消失。"
L.FontSize = "字体大小"
L.FontSize_Desc = "为所有聊天框设置字体大小。"
L.FontSize_Note = "注意,这只是链接到暴雪每个单独的聊天框设置的快捷方式。"
L.HideButtons = "隐藏按钮"
L.HideButtons_Desc = "隐藏聊天框菜单和滚动按钮。"
L.HideFlash = "隐藏标签闪烁"
L.HideFlash_Desc = "禁用聊天框收到消息后标签的闪烁效果。"
L.HideNotices = "隐藏警告"
L.HideNotices_Desc = "隐藏聊天框内的警告信息。"
L.HidePetCombatLog = "禁用宠物战斗纪录"
L.HidePetCombatLog_Desc = "阻止聊天框为一场宠物战斗开启战斗纪录。"
L.HideRepeats = "屏蔽重复信息"
L.HideRepeats_Desc = "屏蔽公共频道中的重复刷屏信息。"
L.HideTextures = "隐藏额外材质"
L.HideTextures_Desc = "隐藏在3.3.5中为聊天框标签和聊天输入框额外加入的材质。"
L.LinkURLs = "URL链接快速复制"
L.LinkURLs_Desc = "被点击的URL内容将被递交到聊天输入框以便复制。"
L.LockTabs = "隐藏附着标签"
L.LockTabs_Desc = "锁定已附着的聊天标签(按住Shift移动)。"
L.MoveEditBox = "移动聊天输入框"
L.MoveEditBox_Desc = "移动聊天输入框到该信息框顶部。"
L.None = "无"
L.OptionLocked = "此选项已被 PhanxChat 锁定。使用 PhanxChat 的 %q 选项代替。"
L.OptionLockedConditional = "此选项被 PhanxChat 锁定。如果你想改变设置,必须先在 PhanxChat 里禁用 %q 选项。"
L.RemoveRealmNames = "移除服务器名"
L.RemoveRealmNames_Desc = "移除玩家服务器名来缩短名字长度。"
L.ReplaceRealNames = "替换玩家实名"
L.ReplaceRealNames_Desc = "以玩家角色名替换显示战网实名。"
L.ShortenChannelNames = "缩短频道名"
L.ShortenChannelNames_Desc = "缩短频道名和聊天类型名。"
L.ShortenRealNames = "缩短玩家实名"
L.ShortenRealNames_Desc = "如果可行,选择如何去缩短玩家实名。"
L.ShortenRealNames_UseBattleTag = "用战网昵称代替"
L.ShortenRealNames_UseFirstName = "只显示角色名"
L.ShortenRealNames_UseFullName = "保持全名"
L.ShowClassColors = "显示职业颜色"
L.ShowClassColors_Desc = "在所有频道显示职业颜色。"
L.Whisper_BadTarget = "你无法密语此目标!"
L.Whisper_NoTarget = "你无法在没有目标时密语!"
L.WhoStatus_Battlenet = "%s 战网桌面客户端在线。"
L.WhoStatus_Offline = "%s 离线。"
L.WhoStatus_PlayingOtherGame = "%s 在线 %s。"
return end
------------------------------------------------------------------------
-- Traditional Chinese
-- Contributors: BNSSNB, yunrong
------------------------------------------------------------------------
if LOCALE == "zhTW" then
-- Channel Names
-- Must match the default channel names shown in your game client.
C.Conversation = "對話"
C.General = "綜合"
C.LocalDefense = "本地防務"
C.LookingForGroup = "尋求組隊"
C.Trade = "交易"
C.WorldDefense = "世界防務"
-- Short Channel Names
-- Use the shortest abbreviations that make sense in your language.
S.Conversation = "話"
S.General = "綜"
S.LocalDefense = "本"
S.LookingForGroup = "尋"
S.Trade = "交"
S.WorldDefense = "世"
S.Guild = "公"
S.InstanceChat = "副"
S.InstanceChatLeader = "領"
S.Officer = "官"
S.Party = "隊"
S.PartyGuide = "領"
S.PartyLeader = "領"
S.Raid = "團"
S.RaidLeader = "領"
S.RaidWarning = "警"
S.Say = "說"
S.WhisperIncoming = "自"
S.WhisperOutgoing = "往"
S.Yell = "喊"
-- Miscellaneous
S.PET_BATTLE_COMBAT_LOG = PET_BATTLE_COMBAT_LOG -- default is ok
-- Options Panel
L.All = "所有"
L.Default = "預設"
L.EnableArrows = "輸入框中使用方向鍵"
L.EnableArrows_Desc = "允許在輸入框中使用方向鍵。"
L.EnableResizeEdges = "開啟邊緣調整"
L.EnableResizeEdges_Desc = "開啟聊天框邊緣調整,而不只是在右下角調整。"
L.EnableSticky = "保持聊天頻道與類型"
L.EnableSticky_Desc = "設定哪一聊天輸出頻道將被保持。"
L.FadeTime = "漸隱時間"
L.FadeTime_Desc = "設置文字消失時間,以分為單位,設為0將不消失。"
L.FontSize = "字體大小"
L.FontSize_Desc = "為所有聊天框設置字體大小。"
L.FontSize_Note = "注意,這只是連結到暴雪每個單獨的聊天框設置的快捷方式。"
L.HideButtons = "隱藏按鈕"
L.HideButtons_Desc = "隱藏聊天視窗選單和滾動按鈕。"
L.HideFlash = "隱藏標籤閃爍"
L.HideFlash_Desc = "禁用聊天框收到消息後標籤的閃爍效果。"
L.HideNotices = "隱藏警告"
L.HideNotices_Desc = "隱藏聊天框內的警告訊息。"
--L.HidePetCombatLog = "Disable pet battle log"
--L.HidePetCombatLog_Desc = "Prevent the chat frame from opening a combat log for pet battles."
L.HideRepeats = "隱藏重複訊息"
L.HideRepeats_Desc = "隱藏公共頻道中的重複刷頻訊息。"
L.HideTextures = "隱藏額外材質"
L.HideTextures_Desc = "隱藏在3.3.5中為聊天框標籤和聊天輸入框額外加入的材質。"
L.LinkURLs = "URL連結快速複製"
L.LinkURLs_Desc = "轉換聊天中的URL為可點擊的連結以便複製。"
L.LockTabs = "鎖定附著標籤"
L.LockTabs_Desc = "鎖定已附著的聊天標籤(按住Shift移動)。"
L.MoveEditBox = "移動聊天輸入框"
L.MoveEditBox_Desc = "移動聊天輸入框到該訊息框頂部。"
L.None = "無"
L.OptionLocked = "此選項已由PhanxChat鎖定。使用PhanxChat中的 %q 選項來替代。"
L.OptionLockedConditional = "此選項已由PhanxChat鎖定。如果你想要改動,你必須先取消PhanxChat中 %q 的選項。"
L.RemoveRealmNames = "移除伺服器名稱"
L.RemoveRealmNames_Desc = "移除伺服器名稱以縮短玩家名稱。"
L.ReplaceRealNames = "替換玩家實名"
L.ReplaceRealNames_Desc = "以玩家角色名取代顯示戰網ID。"
L.ShortenChannelNames = "縮短頻道名"
L.ShortenChannelNames_Desc = "縮短頻道名和聊天類型名。"
L.ShortenRealNames = "縮短玩家實名"
L.ShortenRealNames_Desc = "選擇如何縮短玩家實名,如果是所有。"
L.ShortenRealNames_UseBattleTag = "替換為BattleTag"
L.ShortenRealNames_UseFirstName = "僅顯示姓"
L.ShortenRealNames_UseFullName = "保留全名"
L.ShowClassColors = "顯示職業顏色"
L.ShowClassColors_Desc = "顯示職業顏色在所有頻道。"
L.Whisper_BadTarget = "你無法密語目標! "
L.Whisper_NoTarget = "你沒有目標可密語!"
--L.WhoStatus_Battlenet = "%s is currently in the Battle.net Desktop App."
L.WhoStatus_Offline = "%s 目前為離線。"
L.WhoStatus_PlayingOtherGame = "%s 目前正在玩 %s。"
return end
|
pagination = pagination or {}
pagination.DEFAULT_PER_PAGE = 8
pagination.INTERACTIVE_TIME = 480
pagination.EMOJI_LEFT_ARROW = "⬅"
pagination.EMOJI_RIGHT_ARROW = "➡"
pagination.EMOJI_CROSS = "❌"
function pagination.create(channel, options)
local can_edit = channel:supports_feature(bot.FEATURES.Edit)
local can_react = channel:supports_feature(bot.FEATURES.React)
local interactive = can_edit and can_react
local num_pages = (options.pages and #options.pages or 0)
local num_data = (options.data and #options.data or 0)
local per_page = options.per_page or pagination.DEFAULT_PER_PAGE
local tot_pages = num_pages
if options.data then
tot_pages = tot_pages + math.ceil(#options.data / per_page)
end
local start_page = math.min(math.max(options.page and tonumber(options.page) or 1, 1), tot_pages)
local ctx = {channel = channel, page_num = start_page}
local create_content = function()
local page_num = ctx.page_num
local page = nil
if page_num > num_pages or num_pages == 0 then
local data_page = page_num - num_pages - 1
local offset = (data_page * per_page) + 1
local data_end = offset + per_page - 1
ctx.offset = offset
local data = {table.unpack(options.data, offset, data_end)}
page = options.render_data(ctx, data)
else
page = options.pages[page_num](ctx)
end
return (options.title and options.title .. "\n" or "") .. page.content .. "\nPage "..ctx.page_num.."/"..tot_pages
end
local msg = channel:send(create_content()):await()
if interactive and msg then
async.spawn(function()
bot.reaction_hooks[msg.id] = function(msg, reactor, reaction, removed)
if reactor.uid == options.caller.uid or bot.has_role_or_higher("admin", reactor.role) then
if reaction == pagination.EMOJI_LEFT_ARROW or reaction == pagination.EMOJI_RIGHT_ARROW then
local offset = reaction == pagination.EMOJI_RIGHT_ARROW and 1 or -1
ctx.page_num = math.min(math.max(ctx.page_num + offset, 1), tot_pages)
msg:edit(create_content()):await()
elseif reaction == pagination.EMOJI_CROSS then
msg:delete():await()
end
end
end
msg:react(pagination.EMOJI_LEFT_ARROW):await()
msg:react(pagination.EMOJI_RIGHT_ARROW):await()
msg:react(pagination.EMOJI_CROSS):await()
async.delay(pagination.INTERACTIVE_TIME):await()
bot.reaction_hooks[msg.id] = nil
end)
end
return msg
end
|
workspace "Orca"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include "Orca/3rdParty/glfw"
include "Orca/3rdParty/glad"
include "Orca/3rdParty/imgui"
project "Orca"
location "Orca"
kind "SharedLib"
language "C++"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
pchheader "OrcaPCH.h"
pchsource "Orca/src/OrcaPCH.cpp"
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/3rdParty/glm/glm/**.inl",
"%{prj.name}/3rdParty/glm/glm/**.hpp"
}
links
{
"glfw",
"glad",
"imgui",
"opengl32.lib"
}
includedirs
{
"%{prj.name}/3rdParty/spdlog/include",
"%{prj.name}/3rdParty/glfw/include",
"%{prj.name}/3rdParty/glad/include",
"%{prj.name}/3rdParty/imgui",
"%{prj.name}/3rdParty/glm/glm",
"%{prj.name}/src"
}
filter "system:windows"
cppdialect "C++17"
staticruntime "Off"
systemversion "latest"
defines
{
"OC_PLATFORM_WINDOWS",
"OC_BUILD_DLL",
}
postbuildcommands
{
("{COPY} %{cfg.buildtarget.relpath} ../bin/" .. outputdir .. "/Sandbox")
}
filter "configurations:Debug"
defines "OC_DEBUG"
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines "OC_RELEASE"
runtime "Release"
optimize "On"
filter "configurations:Dist"
defines "OC_DIST"
runtime "Release"
optimize "On"
project "Sandbox"
location "Sandbox"
kind "ConsoleApp"
language "C++"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs
{
"Orca/3rdParty/spdlog/include",
"Orca/3rdParty/imgui",
"Orca/3rdParty/glfw/include",
"Orca/3rdParty/glad/include",
"Orca/3rdParty/glm/glm",
"Orca/src"
}
links
{
"Orca",
"imgui"
}
filter "system:windows"
cppdialect "C++17"
staticruntime "Off"
systemversion "10.0.17763.0"
defines
{
"OC_PLATFORM_WINDOWS"
}
filter "configurations:Debug"
defines "OC_DEBUG"
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines "OC_RELEASE"
runtime "Release"
optimize "On"
filter "configurations:Dist"
defines "OC_DIST"
runtime "Release"
optimize "On"
|
local log = { }
log.file = nil
log.level = 'trace'
local modes = {
'trace',
'debug',
'info',
'warn',
'error',
'fatal',
}
local levels = {}
local origin = os.time() - os.clock()
local function os_date(fmt)
local ti, tf = math.modf(origin + os.clock())
return os.date(fmt, ti):gsub('{ms}', ('%03d'):format(math.floor(tf*1000)))
end
local function round(x, increment)
increment = increment or 1
x = x / increment
return (x > 0 and math.floor(x + 0.5) or math.ceil(x - 0.5)) * increment
end
local function packstring(...)
local t = {}
for i = 1, select('#', ...) do
local x = select(i, ...)
if math.type(x) == 'float' then
x = round(x, 0.01)
end
t[#t + 1] = tostring(x)
end
return table.concat(t, ' ')
end
local function filename(info)
local s = info.source
if log.root and s:sub(1,1) == "@" then
s = s:gsub("\\", "/")
if log.root == s:sub(2, 1+#log.root) then
return s:sub(3+#log.root)
end
end
return info.short_src
end
if log.root then
log.root = log.root:gsub("\\", "/")
end
for i, name in ipairs(modes) do
levels[name] = i
log[name] = function(...)
if i < levels[log.level] then
return
end
if not log.file then
return
end
local info = debug.getinfo(2, 'Sl')
local msg = ('[%s][%s:%3d][%-5s]%s\n'):format(
os_date('%Y-%m-%d %H:%M:%S:{ms}'),
filename(info),
info.currentline,
name:upper(),
packstring(...)
)
local fp = assert(io.open(log.file, 'a'))
fp:write(msg)
fp:close()
end
end
return log
|
-- Generated by protobuf; do not edit
local module = {}
local protobuf = require 'protobuf'
module.ENUM = protobuf.EnumDescriptor()
module.ENUM_SOMETHING_ENUM = protobuf.EnumValueDescriptor()
module.ENUM_SOMETHING_ELSE_ENUM = protobuf.EnumValueDescriptor()
module.ENUM_ANOTHER_THING_ENUM = protobuf.EnumValueDescriptor()
module.SCALARTYPES = protobuf.Descriptor()
module.SCALARTYPES_DOUBLE_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_INT32_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_INT64_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_UINT32_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_UINT64_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_SINT32_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_SINT64_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_FIXED32_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_FIXED64_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_SFIXED32_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_SFIXED64_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_BOOL_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_STRING_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_BYTES_FIELD = protobuf.FieldDescriptor()
module.SCALARTYPES_FLOAT_FIELD = protobuf.FieldDescriptor()
module.ENUMS = protobuf.Descriptor()
module.ENUMS_ENUM_FIELD = protobuf.FieldDescriptor()
module.EXTENDED = protobuf.Descriptor()
module.EXTENSION = protobuf.Descriptor()
module.EXTENSION_VALUE_FIELD = protobuf.FieldDescriptor()
module.EXTENSION_EXTS_FIELD = protobuf.FieldDescriptor()
module.EMBEDDED = protobuf.Descriptor()
module.EMBEDDED_VALUE_FIELD = protobuf.FieldDescriptor()
module.EMBED = protobuf.Descriptor()
module.EMBED_EMBEDDED_FIELD = protobuf.FieldDescriptor()
module.MULTIREPEATED = protobuf.Descriptor()
module.MULTIREPEATED_VALUES_FIELD = protobuf.FieldDescriptor()
module.REPEATEDVALUES = protobuf.Descriptor()
module.REPEATEDVALUES_FLOATVALUES_FIELD = protobuf.FieldDescriptor()
module.REPEATEDVALUES_DOUBLEVALUES_FIELD = protobuf.FieldDescriptor()
module.REPEATEDVALUES_INT32VALUES_FIELD = protobuf.FieldDescriptor()
module.ENUM_SOMETHING_ENUM.name = 'SOMETHING'
module.ENUM_SOMETHING_ENUM.index = 0
module.ENUM_SOMETHING_ENUM.number = 0
module.ENUM_SOMETHING_ELSE_ENUM.name = 'SOMETHING_ELSE'
module.ENUM_SOMETHING_ELSE_ENUM.index = 1
module.ENUM_SOMETHING_ELSE_ENUM.number = 1
module.ENUM_ANOTHER_THING_ENUM.name = 'ANOTHER_THING'
module.ENUM_ANOTHER_THING_ENUM.index = 2
module.ENUM_ANOTHER_THING_ENUM.number = 2
module.ENUM.name = 'Enum'
module.ENUM.full_name = '.Enum'
module.ENUM.values = {module.ENUM_SOMETHING_ENUM,module.ENUM_SOMETHING_ELSE_ENUM,module.ENUM_ANOTHER_THING_ENUM}
module.SCALARTYPES_DOUBLE_FIELD.name = 'double'
module.SCALARTYPES_DOUBLE_FIELD.full_name = '.ScalarTypes.double'
module.SCALARTYPES_DOUBLE_FIELD.number = 1
module.SCALARTYPES_DOUBLE_FIELD.index = 0
module.SCALARTYPES_DOUBLE_FIELD.label = 1
module.SCALARTYPES_DOUBLE_FIELD.has_default_value = false
module.SCALARTYPES_DOUBLE_FIELD.default_value = 0.0
module.SCALARTYPES_DOUBLE_FIELD.type = 1
module.SCALARTYPES_DOUBLE_FIELD.cpp_type = 5
module.SCALARTYPES_INT32_FIELD.name = 'int32'
module.SCALARTYPES_INT32_FIELD.full_name = '.ScalarTypes.int32'
module.SCALARTYPES_INT32_FIELD.number = 2
module.SCALARTYPES_INT32_FIELD.index = 1
module.SCALARTYPES_INT32_FIELD.label = 1
module.SCALARTYPES_INT32_FIELD.has_default_value = false
module.SCALARTYPES_INT32_FIELD.default_value = 0
module.SCALARTYPES_INT32_FIELD.type = 5
module.SCALARTYPES_INT32_FIELD.cpp_type = 1
module.SCALARTYPES_INT64_FIELD.name = 'int64'
module.SCALARTYPES_INT64_FIELD.full_name = '.ScalarTypes.int64'
module.SCALARTYPES_INT64_FIELD.number = 3
module.SCALARTYPES_INT64_FIELD.index = 2
module.SCALARTYPES_INT64_FIELD.label = 1
module.SCALARTYPES_INT64_FIELD.has_default_value = false
module.SCALARTYPES_INT64_FIELD.default_value = 0
module.SCALARTYPES_INT64_FIELD.type = 3
module.SCALARTYPES_INT64_FIELD.cpp_type = 2
module.SCALARTYPES_UINT32_FIELD.name = 'uint32'
module.SCALARTYPES_UINT32_FIELD.full_name = '.ScalarTypes.uint32'
module.SCALARTYPES_UINT32_FIELD.number = 4
module.SCALARTYPES_UINT32_FIELD.index = 3
module.SCALARTYPES_UINT32_FIELD.label = 1
module.SCALARTYPES_UINT32_FIELD.has_default_value = false
module.SCALARTYPES_UINT32_FIELD.default_value = 0
module.SCALARTYPES_UINT32_FIELD.type = 13
module.SCALARTYPES_UINT32_FIELD.cpp_type = 3
module.SCALARTYPES_UINT64_FIELD.name = 'uint64'
module.SCALARTYPES_UINT64_FIELD.full_name = '.ScalarTypes.uint64'
module.SCALARTYPES_UINT64_FIELD.number = 5
module.SCALARTYPES_UINT64_FIELD.index = 4
module.SCALARTYPES_UINT64_FIELD.label = 1
module.SCALARTYPES_UINT64_FIELD.has_default_value = false
module.SCALARTYPES_UINT64_FIELD.default_value = 0
module.SCALARTYPES_UINT64_FIELD.type = 4
module.SCALARTYPES_UINT64_FIELD.cpp_type = 4
module.SCALARTYPES_SINT32_FIELD.name = 'sint32'
module.SCALARTYPES_SINT32_FIELD.full_name = '.ScalarTypes.sint32'
module.SCALARTYPES_SINT32_FIELD.number = 6
module.SCALARTYPES_SINT32_FIELD.index = 5
module.SCALARTYPES_SINT32_FIELD.label = 1
module.SCALARTYPES_SINT32_FIELD.has_default_value = false
module.SCALARTYPES_SINT32_FIELD.default_value = 0
module.SCALARTYPES_SINT32_FIELD.type = 17
module.SCALARTYPES_SINT32_FIELD.cpp_type = 1
module.SCALARTYPES_SINT64_FIELD.name = 'sint64'
module.SCALARTYPES_SINT64_FIELD.full_name = '.ScalarTypes.sint64'
module.SCALARTYPES_SINT64_FIELD.number = 7
module.SCALARTYPES_SINT64_FIELD.index = 6
module.SCALARTYPES_SINT64_FIELD.label = 1
module.SCALARTYPES_SINT64_FIELD.has_default_value = false
module.SCALARTYPES_SINT64_FIELD.default_value = 0
module.SCALARTYPES_SINT64_FIELD.type = 18
module.SCALARTYPES_SINT64_FIELD.cpp_type = 2
module.SCALARTYPES_FIXED32_FIELD.name = 'fixed32'
module.SCALARTYPES_FIXED32_FIELD.full_name = '.ScalarTypes.fixed32'
module.SCALARTYPES_FIXED32_FIELD.number = 8
module.SCALARTYPES_FIXED32_FIELD.index = 7
module.SCALARTYPES_FIXED32_FIELD.label = 1
module.SCALARTYPES_FIXED32_FIELD.has_default_value = false
module.SCALARTYPES_FIXED32_FIELD.default_value = 0
module.SCALARTYPES_FIXED32_FIELD.type = 7
module.SCALARTYPES_FIXED32_FIELD.cpp_type = 3
module.SCALARTYPES_FIXED64_FIELD.name = 'fixed64'
module.SCALARTYPES_FIXED64_FIELD.full_name = '.ScalarTypes.fixed64'
module.SCALARTYPES_FIXED64_FIELD.number = 9
module.SCALARTYPES_FIXED64_FIELD.index = 8
module.SCALARTYPES_FIXED64_FIELD.label = 1
module.SCALARTYPES_FIXED64_FIELD.has_default_value = false
module.SCALARTYPES_FIXED64_FIELD.default_value = 0
module.SCALARTYPES_FIXED64_FIELD.type = 6
module.SCALARTYPES_FIXED64_FIELD.cpp_type = 4
module.SCALARTYPES_SFIXED32_FIELD.name = 'sfixed32'
module.SCALARTYPES_SFIXED32_FIELD.full_name = '.ScalarTypes.sfixed32'
module.SCALARTYPES_SFIXED32_FIELD.number = 10
module.SCALARTYPES_SFIXED32_FIELD.index = 9
module.SCALARTYPES_SFIXED32_FIELD.label = 1
module.SCALARTYPES_SFIXED32_FIELD.has_default_value = false
module.SCALARTYPES_SFIXED32_FIELD.default_value = 0
module.SCALARTYPES_SFIXED32_FIELD.type = 15
module.SCALARTYPES_SFIXED32_FIELD.cpp_type = 1
module.SCALARTYPES_SFIXED64_FIELD.name = 'sfixed64'
module.SCALARTYPES_SFIXED64_FIELD.full_name = '.ScalarTypes.sfixed64'
module.SCALARTYPES_SFIXED64_FIELD.number = 11
module.SCALARTYPES_SFIXED64_FIELD.index = 10
module.SCALARTYPES_SFIXED64_FIELD.label = 1
module.SCALARTYPES_SFIXED64_FIELD.has_default_value = false
module.SCALARTYPES_SFIXED64_FIELD.default_value = 0
module.SCALARTYPES_SFIXED64_FIELD.type = 16
module.SCALARTYPES_SFIXED64_FIELD.cpp_type = 2
module.SCALARTYPES_BOOL_FIELD.name = 'bool'
module.SCALARTYPES_BOOL_FIELD.full_name = '.ScalarTypes.bool'
module.SCALARTYPES_BOOL_FIELD.number = 12
module.SCALARTYPES_BOOL_FIELD.index = 11
module.SCALARTYPES_BOOL_FIELD.label = 1
module.SCALARTYPES_BOOL_FIELD.has_default_value = false
module.SCALARTYPES_BOOL_FIELD.default_value = false
module.SCALARTYPES_BOOL_FIELD.type = 8
module.SCALARTYPES_BOOL_FIELD.cpp_type = 7
module.SCALARTYPES_STRING_FIELD.name = 'string'
module.SCALARTYPES_STRING_FIELD.full_name = '.ScalarTypes.string'
module.SCALARTYPES_STRING_FIELD.number = 13
module.SCALARTYPES_STRING_FIELD.index = 12
module.SCALARTYPES_STRING_FIELD.label = 1
module.SCALARTYPES_STRING_FIELD.has_default_value = false
module.SCALARTYPES_STRING_FIELD.default_value = ''
module.SCALARTYPES_STRING_FIELD.type = 9
module.SCALARTYPES_STRING_FIELD.cpp_type = 9
module.SCALARTYPES_BYTES_FIELD.name = 'bytes'
module.SCALARTYPES_BYTES_FIELD.full_name = '.ScalarTypes.bytes'
module.SCALARTYPES_BYTES_FIELD.number = 14
module.SCALARTYPES_BYTES_FIELD.index = 13
module.SCALARTYPES_BYTES_FIELD.label = 1
module.SCALARTYPES_BYTES_FIELD.has_default_value = false
module.SCALARTYPES_BYTES_FIELD.default_value = ''
module.SCALARTYPES_BYTES_FIELD.type = 12
module.SCALARTYPES_BYTES_FIELD.cpp_type = 9
module.SCALARTYPES_FLOAT_FIELD.name = 'float'
module.SCALARTYPES_FLOAT_FIELD.full_name = '.ScalarTypes.float'
module.SCALARTYPES_FLOAT_FIELD.number = 15
module.SCALARTYPES_FLOAT_FIELD.index = 14
module.SCALARTYPES_FLOAT_FIELD.label = 1
module.SCALARTYPES_FLOAT_FIELD.has_default_value = false
module.SCALARTYPES_FLOAT_FIELD.default_value = 0.0
module.SCALARTYPES_FLOAT_FIELD.type = 2
module.SCALARTYPES_FLOAT_FIELD.cpp_type = 6
module.SCALARTYPES.name = 'ScalarTypes'
module.SCALARTYPES.full_name = '.ScalarTypes'
module.SCALARTYPES.nested_types = {}
module.SCALARTYPES.enum_types = {}
module.SCALARTYPES.fields = {module.SCALARTYPES_DOUBLE_FIELD, module.SCALARTYPES_INT32_FIELD, module.SCALARTYPES_INT64_FIELD, module.SCALARTYPES_UINT32_FIELD, module.SCALARTYPES_UINT64_FIELD, module.SCALARTYPES_SINT32_FIELD, module.SCALARTYPES_SINT64_FIELD, module.SCALARTYPES_FIXED32_FIELD, module.SCALARTYPES_FIXED64_FIELD, module.SCALARTYPES_SFIXED32_FIELD, module.SCALARTYPES_SFIXED64_FIELD, module.SCALARTYPES_BOOL_FIELD, module.SCALARTYPES_STRING_FIELD, module.SCALARTYPES_BYTES_FIELD, module.SCALARTYPES_FLOAT_FIELD}
module.SCALARTYPES.is_extendable = false
module.SCALARTYPES.extensions = {}
module.ENUMS_ENUM_FIELD.name = 'enum'
module.ENUMS_ENUM_FIELD.full_name = '.Enums.enum'
module.ENUMS_ENUM_FIELD.number = 1
module.ENUMS_ENUM_FIELD.index = 0
module.ENUMS_ENUM_FIELD.label = 1
module.ENUMS_ENUM_FIELD.has_default_value = true
module.ENUMS_ENUM_FIELD.default_value = module.ENUM_ANOTHER_THING_ENUM.number
module.ENUMS_ENUM_FIELD.enum_type = module.ENUM
module.ENUMS_ENUM_FIELD.type = 14
module.ENUMS_ENUM_FIELD.cpp_type = 8
module.ENUMS.name = 'Enums'
module.ENUMS.full_name = '.Enums'
module.ENUMS.nested_types = {}
module.ENUMS.enum_types = {}
module.ENUMS.fields = {module.ENUMS_ENUM_FIELD}
module.ENUMS.is_extendable = false
module.ENUMS.extensions = {}
module.EXTENDED.name = 'Extended'
module.EXTENDED.full_name = '.Extended'
module.EXTENDED.nested_types = {}
module.EXTENDED.enum_types = {}
module.EXTENDED.fields = {}
module.EXTENDED.is_extendable = true
module.EXTENDED.extensions = {}
module.EXTENSION_VALUE_FIELD.name = 'value'
module.EXTENSION_VALUE_FIELD.full_name = '.Extension.value'
module.EXTENSION_VALUE_FIELD.number = 1
module.EXTENSION_VALUE_FIELD.index = 0
module.EXTENSION_VALUE_FIELD.label = 2
module.EXTENSION_VALUE_FIELD.has_default_value = false
module.EXTENSION_VALUE_FIELD.default_value = ''
module.EXTENSION_VALUE_FIELD.type = 9
module.EXTENSION_VALUE_FIELD.cpp_type = 9
module.EXTENSION_EXTS_FIELD.name = 'exts'
module.EXTENSION_EXTS_FIELD.full_name = '.Extension.exts'
module.EXTENSION_EXTS_FIELD.number = 10
module.EXTENSION_EXTS_FIELD.index = 0
module.EXTENSION_EXTS_FIELD.label = 3
module.EXTENSION_EXTS_FIELD.has_default_value = false
module.EXTENSION_EXTS_FIELD.default_value = {}
module.EXTENSION_EXTS_FIELD.message_type = module.EXTENSION
module.EXTENSION_EXTS_FIELD.type = 11
module.EXTENSION_EXTS_FIELD.cpp_type = 10
module.EXTENSION.name = 'Extension'
module.EXTENSION.full_name = '.Extension'
module.EXTENSION.nested_types = {}
module.EXTENSION.enum_types = {}
module.EXTENSION.fields = {module.EXTENSION_VALUE_FIELD}
module.EXTENSION.is_extendable = false
module.EXTENSION.extensions = {module.EXTENSION_EXTS_FIELD}
module.EMBEDDED_VALUE_FIELD.name = 'value'
module.EMBEDDED_VALUE_FIELD.full_name = '.Embedded.value'
module.EMBEDDED_VALUE_FIELD.number = 1
module.EMBEDDED_VALUE_FIELD.index = 0
module.EMBEDDED_VALUE_FIELD.label = 2
module.EMBEDDED_VALUE_FIELD.has_default_value = false
module.EMBEDDED_VALUE_FIELD.default_value = ''
module.EMBEDDED_VALUE_FIELD.type = 9
module.EMBEDDED_VALUE_FIELD.cpp_type = 9
module.EMBEDDED.name = 'Embedded'
module.EMBEDDED.full_name = '.Embedded'
module.EMBEDDED.nested_types = {}
module.EMBEDDED.enum_types = {}
module.EMBEDDED.fields = {module.EMBEDDED_VALUE_FIELD}
module.EMBEDDED.is_extendable = false
module.EMBEDDED.extensions = {}
module.EMBED_EMBEDDED_FIELD.name = 'embedded'
module.EMBED_EMBEDDED_FIELD.full_name = '.Embed.embedded'
module.EMBED_EMBEDDED_FIELD.number = 1
module.EMBED_EMBEDDED_FIELD.index = 0
module.EMBED_EMBEDDED_FIELD.label = 2
module.EMBED_EMBEDDED_FIELD.has_default_value = false
module.EMBED_EMBEDDED_FIELD.default_value = nil
module.EMBED_EMBEDDED_FIELD.message_type = module.EMBEDDED
module.EMBED_EMBEDDED_FIELD.type = 11
module.EMBED_EMBEDDED_FIELD.cpp_type = 10
module.EMBED.name = 'Embed'
module.EMBED.full_name = '.Embed'
module.EMBED.nested_types = {}
module.EMBED.enum_types = {}
module.EMBED.fields = {module.EMBED_EMBEDDED_FIELD}
module.EMBED.is_extendable = false
module.EMBED.extensions = {}
module.MULTIREPEATED_VALUES_FIELD.name = 'values'
module.MULTIREPEATED_VALUES_FIELD.full_name = '.MultiRepeated.values'
module.MULTIREPEATED_VALUES_FIELD.number = 1
module.MULTIREPEATED_VALUES_FIELD.index = 0
module.MULTIREPEATED_VALUES_FIELD.label = 3
module.MULTIREPEATED_VALUES_FIELD.has_default_value = false
module.MULTIREPEATED_VALUES_FIELD.default_value = {}
module.MULTIREPEATED_VALUES_FIELD.message_type = module.REPEATEDVALUES
module.MULTIREPEATED_VALUES_FIELD.type = 11
module.MULTIREPEATED_VALUES_FIELD.cpp_type = 10
module.MULTIREPEATED.name = 'MultiRepeated'
module.MULTIREPEATED.full_name = '.MultiRepeated'
module.MULTIREPEATED.nested_types = {}
module.MULTIREPEATED.enum_types = {}
module.MULTIREPEATED.fields = {module.MULTIREPEATED_VALUES_FIELD}
module.MULTIREPEATED.is_extendable = false
module.MULTIREPEATED.extensions = {}
module.REPEATEDVALUES_FLOATVALUES_FIELD.name = 'floatValues'
module.REPEATEDVALUES_FLOATVALUES_FIELD.full_name = '.RepeatedValues.floatValues'
module.REPEATEDVALUES_FLOATVALUES_FIELD.number = 1
module.REPEATEDVALUES_FLOATVALUES_FIELD.index = 0
module.REPEATEDVALUES_FLOATVALUES_FIELD.label = 3
module.REPEATEDVALUES_FLOATVALUES_FIELD.has_default_value = false
module.REPEATEDVALUES_FLOATVALUES_FIELD.default_value = {}
module.REPEATEDVALUES_FLOATVALUES_FIELD.type = 2
module.REPEATEDVALUES_FLOATVALUES_FIELD.cpp_type = 6
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.name = 'doubleValues'
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.full_name = '.RepeatedValues.doubleValues'
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.number = 2
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.index = 1
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.label = 3
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.has_default_value = false
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.default_value = {}
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.type = 1
module.REPEATEDVALUES_DOUBLEVALUES_FIELD.cpp_type = 5
module.REPEATEDVALUES_INT32VALUES_FIELD.name = 'int32Values'
module.REPEATEDVALUES_INT32VALUES_FIELD.full_name = '.RepeatedValues.int32Values'
module.REPEATEDVALUES_INT32VALUES_FIELD.number = 3
module.REPEATEDVALUES_INT32VALUES_FIELD.index = 2
module.REPEATEDVALUES_INT32VALUES_FIELD.label = 3
module.REPEATEDVALUES_INT32VALUES_FIELD.has_default_value = false
module.REPEATEDVALUES_INT32VALUES_FIELD.default_value = {}
module.REPEATEDVALUES_INT32VALUES_FIELD.type = 5
module.REPEATEDVALUES_INT32VALUES_FIELD.cpp_type = 1
module.REPEATEDVALUES.name = 'RepeatedValues'
module.REPEATEDVALUES.full_name = '.RepeatedValues'
module.REPEATEDVALUES.nested_types = {}
module.REPEATEDVALUES.enum_types = {}
module.REPEATEDVALUES.fields = {module.REPEATEDVALUES_FLOATVALUES_FIELD, module.REPEATEDVALUES_DOUBLEVALUES_FIELD, module.REPEATEDVALUES_INT32VALUES_FIELD}
module.REPEATEDVALUES.is_extendable = false
module.REPEATEDVALUES.extensions = {}
module.Embed = protobuf.Message(module.EMBED)
module.Embedded = protobuf.Message(module.EMBEDDED)
module.Enum = {}
module.Enum.ANOTHER_THING = 2
module.Enum.SOMETHING = 0
module.Enum.SOMETHING_ELSE = 1
module.Enums = protobuf.Message(module.ENUMS)
module.Extended = protobuf.Message(module.EXTENDED)
module.Extension = protobuf.Message(module.EXTENSION)
module.MultiRepeated = protobuf.Message(module.MULTIREPEATED)
module.RepeatedValues = protobuf.Message(module.REPEATEDVALUES)
module.ScalarTypes = protobuf.Message(module.SCALARTYPES)
module.Extended.RegisterExtension(module.EXTENSION_EXTS_FIELD)
module.MESSAGE_TYPES = {'ScalarTypes','Enums','Extended','Extension','Embedded','Embed','MultiRepeated','RepeatedValues'}
module.ENUM_TYPES = {'Enum'}
return module
|
uac.permission = uac.permission or {
list = {}
}
local permission_list = uac.permission.list
function uac.permission.Add(name, description)
if permission_list[name] ~= nil then
return
end
local permission = {name = name, description = description}
local index = table.insert(permission_list, permission)
permission.index = index
permission_list[name] = permission
end
function uac.permission.GetID(name)
local permission = permission_list[name]
return permission ~= nil and permission.index or nil
end
function uac.permission.GetName(id)
local permission = permission_list[id]
return permission ~= nil and permission.name or nil
end
-- default permissions
uac.permission.Add("superadmin", "Gives users the status of Super Admin (for addons that use Garry's stuff)")
uac.permission.Add("admin", "Gives users the status of Admin (for addons that use Garry's stuff)")
|
---
-- Slider.lua - UI slider component
--
local Utils = require(script.Parent.Utils)
local UserInput = game:GetService("UserInputService")
local Slider = {}
Slider.__index = Slider
function Slider.new(parent, notifyOnRelease)
local self = setmetatable({}, Slider)
local slider = Instance.new("Frame")
slider.Active = true
slider.BorderSizePixel = 0
slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
slider.Size = UDim2.fromScale(1, 1)
slider.Parent = parent
local indicator = Instance.new("Frame")
indicator.AnchorPoint = Vector2.new(0.5, 0.5)
indicator.Size = UDim2.fromScale(0.03, 1.5)
indicator.BackgroundColor3 = Color3.fromRGB(87, 104, 201)
indicator.Parent = slider
Utils.corner(indicator, UDim.new(0.5, 0))
self.Slider = slider
self.Indicator = indicator
self.Position = 0
self._mouseDown = false
slider.InputBegan:Connect(function(input)
if
input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch
then
self:_update(input)
if self.HandleInput and not notifyOnRelease then
self:HandleInput(input)
end
self._mouseDown = true
end
end)
UserInput.InputChanged:Connect(function(input)
if
(input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch)
and self._mouseDown
then
self:_update(input)
if self.HandleInput and not notifyOnRelease then
self:HandleInput(input)
end
end
end)
slider.InputEnded:Connect(function(input)
if
input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch
then
self._mouseDown = false
if notifyOnRelease then
self:HandleInput(input)
end
end
end)
self:setPosition(0)
return self
end
function Slider:setPosition(pos, force)
if self._mouseDown and not force then
return
end
self.Position = pos
self.Indicator.Position = UDim2.fromScale(pos, 0.5)
end
function Slider:_update(input)
local x = (input.Position.X - self.Slider.AbsolutePosition.X) / self.Slider.AbsoluteSize.X
x = math.max(math.min(x, 1), 0)
self:setPosition(x, true)
end
return Slider
|
local tbTable = GameMain:GetMod("MagicHelper")
local tbMagic = tbTable:GetMagic("TTMG_6_2")
function tbMagic:Init()
end
function tbMagic:EnableCheck(npc)
return true
end
function tbMagic:TargetCheck(key, t)
if t.ThingType == CS.XiaWorld.g_emThingType.Npc then
return true
else
return false
end
end
function tbMagic:MagicEnter(IDs, IsThing)
end
function tbMagic:MagicStep(dt, duration)
self:SetProgress(duration / self.magic.Param1)
if duration >= self.magic.Param1 then
return 1
end
return 0
end
function tbMagic:MagicLeave(success)
if success then
if self.bind then
if npc.LuaHelper:CheckFeature("GodBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_1")
elseif npc.LuaHelper:CheckFeature("StinkyBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_2")
elseif npc.LuaHelper:CheckFeature("KingofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_3")
elseif npc.LuaHelper:CheckFeature("SpaceofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_4")
elseif npc.LuaHelper:CheckFeature("SunofBody") or npc.LuaHelper:CheckFeature("MoonofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_5")
elseif npc.LuaHelper:CheckFeature("YuanofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_6")
elseif npc.LuaHelper:CheckFeature("GodchaosofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_7")
elseif npc.LuaHelper:CheckFeature("TyaoofBody") or npc.LuaHelper:CheckFeature("YSofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_8")
elseif npc.LuaHelper:CheckFeature("LHfBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_9")
elseif npc.LuaHelper:CheckFeature("HMKfBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_10")
elseif npc.LuaHelper:CheckFeature("GHfBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_11")
elseif npc.LuaHelper:CheckFeature("TSfBody") or npc.LuaHelper:CheckFeature("FSfBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_12")
elseif npc.LuaHelper:CheckFeature("XKfBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_13")
elseif npc.LuaHelper:CheckFeature("ZTofBody") then
self.bind.LuaHelper:TriggerStory("TTMG_6_2_14")
else
self.bind.LuaHelper:TriggerStory("TTMG_6_2")
end
end
end
end
function tbMagic:OnGetSaveData()
end
function tbMagic:OnLoadData(tbData, IDs, IsThing)
self.targetId = IDs[0]
end |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local Clockwork = Clockwork;
local IsValid = IsValid;
local Color = Color;
local type = type;
local table = table;
local gui = gui;
local vgui = vgui;
--[[
@codebase Client
@details Provides an interface to the client-side character system.
@field stored A table containing a list of stored characters.
@field whitelisted A table containing a list of whitelisted factions.
@field creationPanels A table containing a list of creation panels.
--]]
Clockwork.character = Clockwork.kernel:NewLibrary("Character");
Clockwork.character.stored = Clockwork.character.stored or {};
Clockwork.character.whitelisted = Clockwork.character.whitelisted or {};
Clockwork.character.creationPanels = Clockwork.character.creationPanels or {};
--[[
@codebase Client
@details Register a new creation panel.
@param {String} The friendly name of the creation process.
@param {String} The name of the VGUI panel to use.
@param {Function} A callback to get the visibility of the process. Return false to hide.
--]]
function Clockwork.character:RegisterCreationPanel(friendlyName, vguiName, index, Condition)
if (index) then
for k, v in pairs(Clockwork.character.creationPanels) do
if (v.index >= index) then
v.index = v.index + 1;
end;
end;
end;
table.insert(Clockwork.character.creationPanels, index or #Clockwork.character.creationPanels + 1, {
index = index or #Clockwork.character.creationPanels + 1,
vguiName = vguiName,
Condition = Condition,
friendlyName = friendlyName
});
end;
--[[
@codebase Client
@details Used to remove a character creation panel from use.
--]]
function Clockwork.character:RemoveCreationPanel(name)
local removed = false;
local index;
for k, v in pairs(self.creationPanels) do
if (name == v.vguiName or name == v.friendlyName) then
index = v.index;
removed = true;
table.remove(self.creationPanels, k);
end;
end;
if (removed == true) then
for k, v in pairs(Clockwork.character.creationPanels) do
if (v.index >= index) then
v.index = v.index - 1;
end;
end;
end;
end;
--[[
@codebase Client
@details Get the previous creation panel.
@returns {Table} The previous creation panel info.
--]]
function Clockwork.character:GetPreviousCreationPanel()
local info = self:GetCreationInfo();
local index = info.index - 1;
while (self.creationPanels[index]) do
local panelInfo = self.creationPanels[index];
if (!panelInfo.Condition
or panelInfo.Condition(info)) then
return panelInfo;
end;
index = index - 1;
end;
end;
--[[
@codebase Client
@details Get the next creation panel.
@returns {Table} The next creation panel info.
--]]
function Clockwork.character:GetNextCreationPanel()
local info = self:GetCreationInfo();
local index = info.index + 1;
while (self.creationPanels[index]) do
local panelInfo = self.creationPanels[index];
if (!panelInfo.Condition
or panelInfo.Condition(info)) then
return panelInfo;
end;
index = index + 1;
end;
end;
--[[
@codebase Client
@details Reset the active character creation info.
--]]
function Clockwork.character:ResetCreationInfo()
self:GetPanel().info = {index = 0};
end;
--[[
@codebase Client
@details Get the active character creation info.
@returns {Table} The active character creation info.
--]]
function Clockwork.character:GetCreationInfo()
return self:GetPanel().info;
end;
--[[
@codebase Client
@details Get the creation progress as a percentage.
@returns Float A percentage of the creation progress.
--]]
function Clockwork.character:GetCreationProgress()
return (100 / #self:GetCreationPanels(true)) * self:GetCreationInfo().index;
end;
--[[
@codebase Client
@details A function to get whether the creation process is active.
@returns {Unknown}
--]]
function Clockwork.character:IsCreationProcessActive()
local activePanel = self:GetActivePanel();
if (activePanel and activePanel.isCreationProcess) then
return true;
else
return false;
end;
end;
--[[
@codebase Client
@details A function to open the previous character creation panel.
@returns {Unknown}
--]]
function Clockwork.character:OpenPreviousCreationPanel()
local previousPanel = self:GetPreviousCreationPanel();
local activePanel = self:GetActivePanel();
local panel = self:GetPanel();
local info = self:GetCreationInfo();
if (info.index > 0 and activePanel and activePanel.OnPrevious
and activePanel:OnPrevious() == false) then
return;
end;
if (previousPanel) then
info.index = previousPanel.index;
panel:OpenPanel(previousPanel.vguiName, info);
end;
end;
--[[
@codebase Client
@details A function to open the next character creation panel.
@returns {Unknown}
--]]
function Clockwork.character:OpenNextCreationPanel()
local activePanel = self:GetActivePanel();
local nextPanel = self:GetNextCreationPanel();
local panel = self:GetPanel();
local info = self:GetCreationInfo();
if (info.index > 0 and activePanel and activePanel.OnNext
and activePanel:OnNext() == false) then
return;
end;
if (!nextPanel) then
Clockwork.plugin:Call(
"PlayerAdjustCharacterCreationInfo", self:GetActivePanel(), info
);
Clockwork.datastream:Start("CreateCharacter", info);
else
info.index = nextPanel.index;
panel:OpenPanel(nextPanel.vguiName, info);
end;
end;
--[[
@codebase Client
@details A function to get the creation panels.
@param {Unknown} Missing description for availableOnly.
@returns {Unknown}
--]]
function Clockwork.character:GetCreationPanels(availableOnly)
if (availableOnly) then
local info = self:GetCreationInfo();
local availablePanels = {};
for k, v in ipairs(self.creationPanels) do
if (!v.Condition or v.Condition(info)) then
table.insert(availablePanels, v);
end;
end;
return availablePanels;
end;
return self.creationPanels;
end;
--[[
@codebase Client
@details A function to get the active panel.
@returns {Unknown}
--]]
function Clockwork.character:GetActivePanel()
if (IsValid(self.activePanel)) then
return self.activePanel;
end;
end;
--[[
@codebase Client
@details A function to set whether the character panel is loading.
@param {Unknown} Missing description for loading.
@returns {Unknown}
--]]
function Clockwork.character:SetPanelLoading(loading)
self.loading = loading;
end;
--[[
@codebase Client
@details A function to get whether the character panel is loading.
@returns {Unknown}
--]]
function Clockwork.character:IsPanelLoading()
return self.isLoading;
end;
--[[
@codebase Client
@details A function to get the character panel list.
@returns {Unknown}
--]]
function Clockwork.character:GetPanelList()
local panel = self:GetActivePanel();
if (panel and panel.isCharacterList) then
return panel;
end;
end;
--[[
@codebase Client
@details A function to get the whitelisted factions.
@returns {Unknown}
--]]
function Clockwork.character:GetWhitelisted()
return self.whitelisted;
end;
--[[
@codebase Client
@details A function to get whether the local player is whitelisted for a faction.
@param {Unknown} Missing description for faction.
@returns {Unknown}
--]]
function Clockwork.character:IsWhitelisted(faction)
return table.HasValue(self:GetWhitelisted(), faction);
end;
--[[
@codebase Client
@details A function to get the local player's characters.
@returns {Unknown}
--]]
function Clockwork.character:GetAll()
return self.stored;
end;
--[[
@codebase Client
@details A function to get the character fault.
@returns {Unknown}
--]]
function Clockwork.character:GetFault()
return self.fault;
end;
--[[
@codebase Client
@details A function to set the character fault.
@param {Unknown} Missing description for fault.
@returns {Unknown}
--]]
function Clockwork.character:SetFault(fault)
if (fault) then
Clockwork.kernel:AddCinematicText(fault, Color(255, 255, 255, 255), 32, 6, Clockwork.option:GetFont("menu_text_tiny"), true);
end;
self.fault = fault;
end;
--[[
@codebase Client
@details A function to get the character panel.
@returns {Unknown}
--]]
function Clockwork.character:GetPanel()
return self.panel;
end;
--[[
@codebase Client
@details A function to fade in the navigation.
@returns {Unknown}
--]]
function Clockwork.character:FadeInNavigation()
if (IsValid(self.panel)) then
self.panel:FadeInNavigation();
end;
end;
--[[
@codebase Client
@details A function to refresh the character panel list.
@returns {Unknown}
--]]
function Clockwork.character:RefreshPanelList()
local factionScreens = {};
local factionList = {};
local panelList = self:GetPanelList();
if (panelList) then
panelList:Clear();
for k, v in pairs(self:GetAll()) do
local faction = Clockwork.plugin:Call("GetPlayerCharacterScreenFaction", v);
if (!factionScreens[faction]) then factionScreens[faction] = {}; end;
factionScreens[faction][#factionScreens[faction] + 1] = v;
end;
for k, v in pairs(factionScreens) do
table.sort(v, function(a, b)
return Clockwork.plugin:Call("CharacterScreenSortFactionCharacters", k, a, b);
end);
factionList[#factionList + 1] = {name = k, characters = v};
end;
table.sort(factionList, function(a, b)
return a.name < b.name;
end);
for k, v in pairs(factionList) do
for k2, v2 in pairs(v.characters) do
panelList.customData = {
name = v2.name,
model = v2.model,
banned = v2.banned,
faction = v.name,
details = v2.details,
charTable = v2,
characterID = v2.characterID
};
v2.panel = vgui.Create("cwCharacterPanel", panelList);
if (IsValid(v2.panel)) then
panelList:AddPanel(v2.panel);
end;
end;
end;
end;
end;
--[[
@codebase Client
@details A function to get whether the character panel is open.
@returns {Unknown}
--]]
function Clockwork.character:IsPanelOpen()
return self.isOpen;
end;
--[[
@codebase Client
@details A function to set the character panel to the main menu.
@returns {Unknown}
--]]
function Clockwork.character:SetPanelMainMenu()
local panel = self:GetPanel();
if (panel) then
panel:ReturnToMainMenu();
end;
end;
--[[
@codebase Client
@details A function to set whether the character panel is polling.
@param {Unknown} Missing description for polling.
@returns {Unknown}
--]]
function Clockwork.character:SetPanelPolling(polling)
self.isPolling = polling;
end;
--[[
@codebase Client
@details A function to get whether the character panel is polling.
@returns {Unknown}
--]]
function Clockwork.character:IsPanelPolling()
return self.isPolling;
end;
--[[
@codebase Client
@details A function to get whether the character menu is reset.
@returns {Unknown}
--]]
function Clockwork.character:IsMenuReset()
return self.isMenuReset;
end;
--[[
@codebase Client
@details A function to set whether the character panel is open.
@param {Unknown} Missing description for open.
@param {Unknown} Missing description for bReset.
@returns {Unknown}
--]]
function Clockwork.character:SetPanelOpen(open, bReset)
local panel = self:GetPanel();
if (!open) then
if (!bReset) then
self.isOpen = false;
else
self.isOpen = true;
end;
if (panel) then
panel:SetVisible(self:IsPanelOpen());
end;
elseif (panel) then
panel:SetVisible(true);
panel.createTime = SysTime();
self.isOpen = true;
else
self:SetPanelPolling(true);
end;
gui.EnableScreenClicker(self:IsPanelOpen());
end;
--[[
@codebase Client
@details A function to add a character.
@param {Unknown} Missing description for characterID.
@param {Unknown} Missing description for data.
@returns {Unknown}
--]]
function Clockwork.character:Add(characterID, data)
self.stored[characterID] = data;
end; |
--This is a program for testing LIKO-12 API.
if tostring((...) or false) == "-?" then
printUsage("testapi","A WIP Program for testing LIKO-12 API, Used by the developer.")
return
end
local sw, sh = screenSize()
local tw, th = termSize()
--Wait for any keypress or screen touch.
local function waitrelease()
for event in pullEvent do
if event == "keyreleased" then return end
end
end
local function wait()
for event,a in pullEvent do
if event == "keypressed" then waitrelease() return a == "escape" end
if event == "touchpressed" then return end
end
end
local events
--Reset the events system
local function reset()
events = {}
events.touchpressed = function() textinput(true) end
end
--Start the events loop
local function loop()
for event, a,b,c,d,e,f in pullEvent do
if events[event] then
if events[event](a,b,c,d,e,f,g,h) then break end
end
if event == "keypressed" then
if a == "escape" then
waitrelease()
return true
elseif a == "return" then
return
end
end
end
end
local tests = {}
local function add(func) table.insert(tests,func) end
-----------------------------------------------------------------------------------------
--==Intro==--
local function _intro()
print("This is a program for testing LIKO-12 api functionality")
end
add(_intro)
--==Formatted Print==--
local function _fprint()
print("This is a formatted print, the text should wrap, and the background shouldn't be drawn automatically.\n this is a new line.\r this is a carraige return.\nPress any key to change the align.",0,0,sw,"left")
if wait() then return true end
clear()
print("This is a formatted print, the text should wrap, and the background shouldn't be drawn automatically.\n this is a new line.\r this is a carraige return.\nPress any key to change the align.",0,0,sw,"center")
if wait() then return true end
clear()
print("This is a formatted print, the text should wrap, and the background shouldn't be drawn automatically.\n this is a new line.\r this is a carraige return.",0,0,sw,"right")
end
add(_fprint)
--==Formatted Print Type Writer Effect==--
local function _fprinttw()
local text = "This is a type writer effect used to test formatted print responds, also here's a \n newline, and here's a \r carraige return, blah blah blah."
local len = text:len()
local pos = 1
local align = "left"
reset()
function events.update(dt)
-- Update
pos = pos + dt*10
-- Draw
clear()
print(text:sub(1,math.floor(pos)),0,0,sw,align)
if math.floor(pos) > len then return true end
end
if loop() then return end
pos, align = 1, "center"
if loop() then return end
pos, align = 1, "right"
if loop() then return end
end
add(_fprinttw)
--==Normal Printing==--
local function _nprint()
print("Normal printing, this text must flow out of the screen very easily",0,0,false)
end
add(_nprint)
--==Terminal Printing==--
local function _tprint()
color(0)
printCursor(false,false,7)
print("This is terminal printing, the text here must wrap automatically and have a white background fill, the text is also black, and this is a \n new line, and this is a \r carraige return, blah blah blah blah blah blah blah !@#$@^$@#^&@^@#$@^&*()_&$")
print("This is another print")
print("This is a careless print",false,true)
end
add(_tprint)
--====--
--[[local function _()
end
add(_)]]
-----------------------------------------------------------------------------------------
for id, test in ipairs(tests) do
clear() --Clear the screen
pal() palt() --Reset the palettes
cam() --Reset the camera
printCursor(0,0,0) --Reset the print cursor
color(7) --Set the color to white
if test() then return end
printCursor(tw-1,th-2,0)
color(9) print("[Press any key to continue]",false)
if wait() then return end
end
clear() --Clear the screen
pal() palt() --Reset the palettes
cam() --Reset the camera
printCursor(0,0,0) --Reset the print cursor
color(7) --Set the color to white |
--graphics
if settings.startup["moreshinybobs-gfx-alien-artifact"] and settings.startup["moreshinybobs-gfx-alien-artifact"].value == true then
--alien artifact
require("gfx-alien-artifact")
end
if settings.startup["moreshinybobs-gfx-ammo"] and settings.startup["moreshinybobs-gfx-ammo"].value == true then
--ammo
require("gfx-ammo")
end
if settings.startup["moreshinybobs-gfx-chests"] and settings.startup["moreshinybobs-gfx-chests"].value == true then
--chests
require("gfx-chests")
end
if settings.startup["moreshinybobs-gfx-circuit"] and settings.startup["moreshinybobs-gfx-circuit"].value == true then
--circuit
require("gfx-circuit")
end
if settings.startup["moreshinybobs-gfx-equipment"] and settings.startup["moreshinybobs-gfx-equipment"].value == true then
--equipment
require("gfx-equipment")
end
if settings.startup["moreshinybobs-gfx-greenhouses"] and settings.startup["moreshinybobs-gfx-greenhouses"].value == true then
--greenhouses
require("gfx-greenhouses")
end
if settings.startup["moreshinybobs-gfx-intermediates"] and settings.startup["moreshinybobs-gfx-intermediates"].value == true then
--intermediates
require("gfx-intermediates")
end
if settings.startup["moreshinybobs-gfx-modules"] and settings.startup["moreshinybobs-gfx-modules"].value == true then
--modules
require("gfx-modules")
end
if settings.startup["moreshinybobs-gfx-ores"] and settings.startup["moreshinybobs-gfx-ores"].value == true then
--ores
require("gfx-ores")
end
if settings.startup["moreshinybobs-gfx-plates"] and settings.startup["moreshinybobs-gfx-plates"].value == true then
--plates
require("gfx-plates")
end
if settings.startup["moreshinybobs-gfx-pumps"] and settings.startup["moreshinybobs-gfx-pumps"].value == true then
--pumps
require("gfx-pumps")
end
if settings.startup["moreshinybobs-gfx-warfare"] and settings.startup["moreshinybobs-gfx-warfare"].value == true then
--warfare
require("gfx-warfare")
require("gfx-armor")
end |
local CSGSecurity = {{{{{ {}, {}, {} }}}}}
Objects = {
createObject ( 16000, 109.6, 1024, 12.7 ),
createObject ( 6959, 77.6, 1031.5, 25.4, 0, 90, 0 ),
createObject ( 6959, 77.6, 1071.5, 25.4, 0, 90, 0 ),
createObject ( 6959, 77.8, 1093.6, 25.4, 0, 90, 0 ),
createObject ( 6959, 142.2, 1031.7, 25.4, 0, 90, 0 ),
createObject ( 6959, 142.2, 1071.7, 25.4, 0, 90, 0 ),
createObject ( 6959, 122.2, 1011.7, 25.4, 0, 90, 270 ),
createObject ( 6959, 97.5, 1011.7, 25.4, 0, 90, 90 ),
createObject ( 6959, 98.2, 1031.5, 46.1 ),
createObject ( 6959, 121.5, 1031.7, 46 ),
createObject ( 6959, 121.5, 1071.7, 46 ),
createObject ( 6959, 121.5, 1093.5, 46.1, 0, 0, 180 ),
createObject ( 6959, 98.3, 1071.5, 45.9, 0, 0, 180 ),
createObject ( 6959, 98.5, 1093.6, 46, 0, 0, 180 ),
createObject ( 6959, 97.7, 1113.6, 25.4, 0, 90, 90 ),
createObject ( 6959, 122.3, 1113.4, 25.4, 0, 90, 270 ),
createObject ( 6959, 142.2, 1102.3, 34.6, 0, 90, 0 ),
createObject ( 987, 142.2, 1101.4, 22.8, 0, 0, 90 ),
createObject ( 987, 142.10001, 1090.1, 22.8, 0, 0, 90 ),
createObject ( 987, 142.10001, 1090.1, 28, 0, 0, 90 ),
createObject ( 987, 142.10001, 1090.1, 33.3, 0, 0, 90 ),
createObject ( 987, 142.10001, 1090.1, 39.3, 0, 0, 90 ),
createObject ( 987, 142.10001, 1102.1, 39.3, 0, 0, 90 ),
createObject ( 987, 142.10001, 1102.1, 33.3, 0, 0, 90 ),
createObject ( 987, 142.10001, 1102.1, 27.8, 0, 0, 90 ),
createObject ( 6959, 98.8, 1093.6, 12.88, 0, 0, 179.995 ),
createObject ( 6959, 98.3, 1054.3, 12.901, 0, 0, 179.995 ),
createObject ( 6959, 98.5, 1032.2, 12.7, 0, 0, 180 ),
createObject ( 6959, 121.5, 1031.7, 12.9, 0, 0, 179.995 ),
createObject ( 6959, 121.5, 1070.1, 12.9, 0, 0, 179.995 ),
createObject ( 6959, 121.5, 1093.7, 12.8, 0, 0, 180 ),
createObject ( 3452, 122, 1060.4, 18.6, 0, 0, 180 ),
createObject ( 3452, 92.4, 1060.4, 18.6, 0, 0, 180 ),
createObject ( 6959, 97.5, 1051.5, -4.7, 0, 90, 90 ),
createObject ( 6959, 122.1, 1051.4, -4.7, 0, 90, 90 ),
createObject ( 3095, 137.60001, 1055.9, 15.7, 0, 14, 270 ),
createObject ( 3095, 137.60001, 1063.4, 17.8, 0, 17.497, 270 ),
createObject ( 3095, 137.59961, 1060.9004, 12.9, 90, 0, 0 ),
createObject ( 970, 136.60001, 1063.1, 16.8, 0, 0, 270 ),
createObject ( 970, 136.59961, 1065.7002, 16.8, 0, 0, 270 ),
createObject ( 970, 140, 1051.4, 16.5, 0, 0, 180 ),
createObject ( 970, 135.89999, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 131.8, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 127.6, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 123.5, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 119.4, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 115.2, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 111.1, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 107, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 102.9, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 98.8, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 94.7, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 90.6, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 86.5, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 82.4, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 970, 79.8, 1051.4, 16.5, 0, 0, 179.995 ),
createObject ( 3095, 132.2, 1068.4, 15.7, 90, 0, 0 ),
createObject ( 3095, 132.2, 1068.9, 16.2, 90, 0, 0 ),
createObject ( 3095, 123.2, 1068.9, 16.2, 90, 0, 0 ),
createObject ( 3095, 114.2, 1068.9, 16.2, 90, 0, 0 ),
createObject ( 3095, 105.2, 1068.9, 16.2, 90, 0, 0 ),
createObject ( 3095, 96.2, 1068.9, 16.2, 90, 0, 0 ),
createObject ( 3095, 87.5, 1068.9, 16.2, 90, 0, 0 ),
createObject ( 3095, 82.1, 1068.89, 16.2, 90, 0, 0 ),
createObject ( 1437, 141.60001, 1048.6, 12.9, 339, 0, 0 ),
}
for index, object in ipairs ( Objects ) do
setElementDoubleSided ( object, true )
setObjectBreakable(object, false)
end |
local pathjoin = require('pathjoin')
local Channel = require('containers/abstract/Channel')
local Message = require('containers/Message')
local WeakCache = require('iterables/WeakCache')
local SecondaryCache = require('iterables/SecondaryCache')
local Resolver = require('client/Resolver')
local fs = require('fs')
local splitPath = pathjoin.splitPath
local insert, remove, concat = table.insert, table.remove, table.concat
local format = string.format
local readFileSync = fs.readFileSync
local TextChannel, get = require('class')('TextChannel', Channel)
function TextChannel:__init(data, parent)
Channel.__init(self, data, parent)
self._messages = WeakCache({}, Message, self)
end
function TextChannel:getMessage(id)
id = Resolver.messageId(id)
local message = self._messages:get(id)
if message then
return message
else
local data, err = self.client._api:getChannelMessage(self._id, id)
if data then
return self._messages:_insert(data)
else
return nil, err
end
end
end
function TextChannel:getFirstMessage()
local data, err = self.client._api:getChannelMessages(self._id, {after = self._id, limit = 1})
if data then
if data[1] then
return self._messages:_insert(data[1])
else
return nil, 'Channel has no messages'
end
else
return nil, err
end
end
function TextChannel:getLastMessage()
local data, err = self.client._api:getChannelMessages(self._id, {limit = 1})
if data then
if data[1] then
return self._messages:_insert(data[1])
else
return nil, 'Channel has no messages'
end
else
return nil, err
end
end
local function getMessages(self, query)
local data, err = self.client._api:getChannelMessages(self._id, query)
if data then
return SecondaryCache(data, self._messages)
else
return nil, err
end
end
function TextChannel:getMessages(limit)
return getMessages(self, limit and {limit = limit})
end
function TextChannel:getMessagesAfter(id, limit)
id = Resolver.messageId(id)
return getMessages(self, {after = id, limit = limit})
end
function TextChannel:getMessagesBefore(id, limit)
id = Resolver.messageId(id)
return getMessages(self, {before = id, limit = limit})
end
function TextChannel:getMessagesAround(id, limit)
id = Resolver.messageId(id)
return getMessages(self, {around = id, limit = limit})
end
function TextChannel:getPinnedMessages()
local data, err = self.client._api:getPinnedMessages(self._id)
if data then
return SecondaryCache(data, self._messages)
else
return nil, err
end
end
function TextChannel:broadcastTyping()
local data, err = self.client._api:triggerTypingIndicator(self._id)
if data then
return true
else
return false, err
end
end
local function parseFile(obj, files)
if type(obj) == 'string' then
local data, err = readFileSync(obj)
if not data then
return nil, err
end
files = files or {}
insert(files, {remove(splitPath(obj)), data})
elseif type(obj) == 'table' and type(obj[1]) == 'string' and type(obj[2]) == 'string' then
files = files or {}
insert(files, obj)
else
return nil, 'Invalid file object: ' .. tostring(obj)
end
return files
end
local function parseMention(obj, mentions)
if type(obj) == 'table' and obj.mentionString then
mentions = mentions or {}
insert(mentions, obj.mentionString)
else
return nil, 'Unmentionable object: ' .. tostring(obj)
end
return mentions
end
function TextChannel:send(content)
local data, err
if type(content) == 'table' then
local tbl = content
content = tbl.content
if type(tbl.code) == 'string' then
content = format('```%s\n%s\n```', tbl.code, content)
elseif tbl.code == true then
content = format('```\n%s\n```', content)
end
local mentions
if tbl.mention then
mentions, err = parseMention(tbl.mention)
if err then
return nil, err
end
end
if type(tbl.mentions) == 'table' then
for _, mention in ipairs(tbl.mentions) do
mentions, err = parseMention(mention, mentions)
if err then
return nil, err
end
end
end
if mentions then
insert(mentions, content)
content = concat(mentions, ' ')
end
local files
if tbl.file then
files, err = parseFile(tbl.file)
if err then
return nil, err
end
end
if type(tbl.files) == 'table' then
for _, file in ipairs(tbl.files) do
files, err = parseFile(file, files)
if err then
return nil, err
end
end
end
data, err = self.client._api:createMessage(self._id, {
content = content,
tts = tbl.tts,
nonce = tbl.nonce,
embed = tbl.embed,
}, files)
else
data, err = self.client._api:createMessage(self._id, {content = content})
end
if data then
return self._messages:_insert(data)
else
return nil, err
end
end
function TextChannel:sendf(content, ...)
local data, err = self.client._api:createMessage(self._id, {content = format(content, ...)})
if data then
return self._messages:_insert(data)
else
return nil, err
end
end
function get.messages(self)
return self._messages
end
return TextChannel
|
print("Hello from lua")
return 1 + 2
|
DiffviewGlobal = {}
--[[
Debug Levels:
0: NOTHING
1: NORMAL
10: RENDERING
--]]
DiffviewGlobal.debug_level = tonumber(os.getenv("DEBUG_DIFFVIEW")) or 0
local arg_parser = require("diffview.arg_parser")
local lib = require("diffview.lib")
local config = require("diffview.config")
local colors = require("diffview.colors")
local utils = require("diffview.utils")
local M = {}
---@type FlagValueMap
local flag_value_completion = arg_parser.FlagValueMap()
flag_value_completion:put({ "u", "untracked-files" }, { "true", "normal", "all", "false", "no" })
flag_value_completion:put({ "cached", "staged" }, { "true", "false" })
flag_value_completion:put({ "imply-local" }, { "true", "false" })
flag_value_completion:put({ "C" }, {})
function M.setup(user_config)
config.setup(user_config or {})
end
function M.init()
colors.setup()
end
function M.open(...)
local view = lib.diffview_open(utils.tbl_pack(...))
if view then
view:open()
end
end
function M.file_history(...)
local view = lib.file_history(utils.tbl_pack(...))
if view then
view:open()
end
end
function M.close(tabpage)
if tabpage then
vim.schedule(function()
lib.dispose_stray_views()
end)
return
end
local view = lib.get_current_view()
if view then
view:close()
lib.dispose_view(view)
end
end
local function filter_completion(arg_lead, items)
return vim.tbl_filter(function(item)
return item:match(utils.pattern_esc(arg_lead))
end, items)
end
function M.completion(arg_lead, cmd_line, cur_pos)
local args, argidx, divideridx = arg_parser.scan_ex_args(cmd_line, cur_pos)
local fpath = (
vim.bo.buftype == ""
and vim.fn.filereadable(vim.fn.expand("%"))
and vim.fn.expand("%:p:h")
or "."
)
local git_dir = require("diffview.git.utils").git_dir(fpath)
local git_root = require("diffview.git.utils").toplevel(fpath)
local has_rev_arg = false
for i = 2, math.min(#args, divideridx) do
if args[i]:sub(1, 1) ~= "-" and i ~= argidx then
has_rev_arg = true
goto continue
end
end
::continue::
if argidx >= divideridx then
return vim.fn.getcompletion(arg_lead, "file", 0)
elseif not has_rev_arg and arg_lead:sub(1, 1) ~= "-" and git_dir and git_root then
-- stylua: ignore start
local targets = {
"HEAD", "FETCH_HEAD", "ORIG_HEAD", "MERGE_HEAD",
"REBASE_HEAD", "CHERRY_PICK_HEAD", "REVERT_HEAD"
}
local heads = vim.tbl_filter(
function(name) return vim.tbl_contains(targets, name) end,
vim.tbl_map(
function(v) return vim.fn.fnamemodify(v, ":t") end,
vim.fn.glob(git_dir .. "/*", false, true)
)
)
-- stylua: ignore end
local cmd = "git -C " .. vim.fn.shellescape(git_root) .. " "
local revs = vim.fn.systemlist(cmd .. "rev-parse --symbolic --branches --tags --remotes")
local stashes = vim.fn.systemlist(cmd .. "stash list --pretty=format:%gd")
return filter_completion(arg_lead, utils.tbl_concat(heads, revs, stashes))
else
local flag_completion = flag_value_completion:get_completion(arg_lead)
if flag_completion then
return filter_completion(arg_lead, flag_completion)
end
return filter_completion(arg_lead, flag_value_completion:get_all_names())
end
return args
end
function M.update_colors()
colors.setup()
lib.update_colors()
end
function M.trigger_event(event_name, ...)
local view = lib.get_current_view()
if view then
view.emitter:emit(event_name, ...)
end
end
M.init()
return M
|
local _PATH = (...)
require(_PATH..".Timer")
|
function onCreate() -- Add The Flicker
makeAnimatedLuaSprite('bob', 'bob', -90, -50)
-- Properties
setScrollFactor('bob', 0, 0)
scaleObject('bob', 1.5, 1.5)
-- Animations
addAnimationByPrefix('bob', 'bob', 'bob', 24, false)
end
function onEvent(name, value1, value2)
if name == 'bob' then
playSound('bobjumpscare')
runTimer('bob', 0.7, 1)
addLuaSprite('bob', true)
objectPlayAnimation('bob', true)
triggerEvent('Screen Shake', '0.10, 0.10', '0.7, 0.7');
end
end
function onTimerCompleted(tag, loops, loopsLeft)
if tag == 'bob' then
setProperty('bob.visible', false)
end
end |
require("ai.ai")
SelectAttackBase = createClass(Ai)
function SelectAttackBase:checkConditions(pAgent)
if (pAgent ~= nil) then
local creature = CreatureObject(pAgent)
if (creature:isDead()) then
local agent = AiAgent(pAgent)
agent:removeDefenders()
agent:setFollowObject(nil)
return false
end
return true
end
return false
end
function SelectAttackBase:doAction(pAgent)
if (pAgent ~= nil) then
local creature = CreatureObject(pAgent)
if (creature:getQueueSize() > 3) then
return BEHAVIOR_SUCCESS
end
local agent = AiAgent(pAgent)
if (agent:isCreature()) then
if (getRandomNumber(5) ~= 1) then
agent:selectDefaultAttack()
else
agent:selectSpecialAttack(-1)
if (not agent:validateStateAttack()) then
agent:selectDefaultAttack()
end
end
else
agent:selectSpecialAttack(-1)
if (not agent:validateStateAttack() or getRandomNumber(3) == 1) then
agent:selectDefaultAttack()
end
end
agent:enqueueAttack()
return BEHAVIOR_SUCCESS
end
return BEHAVIOR_FAILURE
end
|
to_drop = {}
particles = {"copper-ore-particle", "wooden-particle", "iron-ore-particle"}
function angle(splash) return (math.random() - math.random()) / splash end
function on_tick()
if #to_drop > 0 then
for k, v in pairs(to_drop) do
for i = v.v, 1, -v.itemstack.count do
v.surface.spill_item_stack(v.position, v.itemstack)
v.surface.create_particle {
name = v.name,
position = v.position,
movement = v.movement,
height = 0.3,
vertical_speed = 0.15,
frame_speed = 0.001
}
end
table.remove(to_drop, k)
return
end
end
end
function on_entity_died(event)
local entity = event.entity
local size = settings.global["chestsplotion-frequency"].value
local splash = settings.global["chestsplotion-splash"].value
for k, v in pairs(entity.get_output_inventory().get_contents()) do
local pos = math.random(1, #to_drop + 1)
table.insert(to_drop, pos, {
name = particles[math.random(#particles)],
surface = entity.surface,
position = entity.position,
itemstack = {name = k, count = size},
movement = {angle(splash), angle(splash)},
v = math.floor(v / (4 * size)) * size
})
end
end
script.on_event(defines.events.on_tick, on_tick)
script.on_event(defines.events.on_entity_died, on_entity_died, {
LuaEntityDiedEventFilters = {filter = "type", type = "container"}
})
|
object_tangible_item_beast_converted_flit_decoration = object_tangible_item_beast_shared_converted_flit_decoration:new {
}
ObjectTemplates:addTemplate(object_tangible_item_beast_converted_flit_decoration, "object/tangible/item/beast/converted_flit_decoration.iff")
|
exports.name = "creationix/git-fs"
exports.version = "0.1.0"
exports.dependencies = {
"creationix/git@0.1.1",
"creationix/hex-bin@1.0.0",
}
--[[
Git Object Database
===================
Consumes a storage interface and return a git database interface
db.has(hash) -> bool - check if db has an object
db.load(hash) -> raw - load raw data, nil if not found
db.loadAny(hash) -> kind, value - pre-decode data, error if not found
db.loadAs(kind, hash) -> value - pre-decode and check type or error
db.save(raw) -> hash - save pre-encoded and framed data
db.saveAs(kind, value) -> hash - encode, frame and save to objects/$ha/$sh
db.hashes() -> iter - Iterate over all hashes
db.getHead() -> hash - Read the hash via HEAD
db.getRef(ref) -> hash - Read hash of a ref
db.resolve(ref) -> hash - Given a hash, tag, branch, or HEAD, return the hash
]]
local git = require('git')
local miniz = require('miniz')
local openssl = require('openssl')
local hexBin = require('hex-bin')
local uv = require('uv')
local numToType = {
[1] = "commit",
[2] = "tree",
[3] = "blob",
[4] = "tag",
[6] = "ofs-delta",
[7] = "ref-delta",
}
local function applyDelta(base, delta) --> raw
local deltaOffset = 0;
-- Read a variable length number our of delta and move the offset.
local function readLength()
deltaOffset = deltaOffset + 1
local byte = delta:byte(deltaOffset)
local length = bit.band(byte, 0x7f)
local shift = 7
while bit.band(byte, 0x80) > 0 do
deltaOffset = deltaOffset + 1
byte = delta:byte(deltaOffset)
length = bit.bor(length, bit.lshift(bit.band(byte, 0x7f), shift))
shift = shift + 7
end
return length
end
assert(#base == readLength(), "base length mismatch")
local outLength = readLength()
local parts = {}
while deltaOffset < #delta do
deltaOffset = deltaOffset + 1
local byte = delta:byte(deltaOffset)
if bit.band(byte, 0x80) > 0 then
-- Copy command. Tells us offset in base and length to copy.
local offset = 0
local length = 0
if bit.band(byte, 0x01) > 0 then
deltaOffset = deltaOffset + 1
offset = bit.bor(offset, delta:byte(deltaOffset))
end
if bit.band(byte, 0x02) > 0 then
deltaOffset = deltaOffset + 1
offset = bit.bor(offset, bit.lshift(delta:byte(deltaOffset), 8))
end
if bit.band(byte, 0x04) > 0 then
deltaOffset = deltaOffset + 1
offset = bit.bor(offset, bit.lshift(delta:byte(deltaOffset), 16))
end
if bit.band(byte, 0x08) > 0 then
deltaOffset = deltaOffset + 1
offset = bit.bor(offset, bit.lshift(delta:byte(deltaOffset), 24))
end
if bit.band(byte, 0x10) > 0 then
deltaOffset = deltaOffset + 1
length = bit.bor(length, delta:byte(deltaOffset))
end
if bit.band(byte, 0x20) > 0 then
deltaOffset = deltaOffset + 1
length = bit.bor(length, bit.lshift(delta:byte(deltaOffset), 8))
end
if bit.band(byte, 0x40) > 0 then
deltaOffset = deltaOffset + 1
length = bit.bor(length, bit.lshift(delta:byte(deltaOffset), 16))
end
if length == 0 then length = 0x10000 end
-- copy the data
parts[#parts + 1] = base:sub(offset + 1, offset + length)
elseif byte > 0 then
-- Insert command, opcode byte is length itself
parts[#parts + 1] = delta:sub(deltaOffset + 1, deltaOffset + byte)
deltaOffset = deltaOffset + byte
else
error("Invalid opcode in delta")
end
end
local out = table.concat(parts)
assert(#out == outLength, "final size mismatch in delta application")
return table.concat(parts)
end
local function readUint32(buffer, offset)
offset = offset or 0
assert(#buffer >= offset + 4, "not enough buffer")
return bit.bor(
bit.lshift(buffer:byte(offset + 1), 24),
bit.lshift(buffer:byte(offset + 2), 16),
bit.lshift(buffer:byte(offset + 3), 8),
buffer:byte(offset + 4)
)
end
local function readUint64(buffer, offset)
offset = offset or 0
assert(#buffer >= offset + 8, "not enough buffer")
return
(bit.lshift(buffer:byte(offset + 1), 24) +
bit.lshift(buffer:byte(offset + 2), 16) +
bit.lshift(buffer:byte(offset + 3), 8) +
buffer:byte(offset + 4)) * 0x100000000 +
bit.lshift(buffer:byte(offset + 5), 24) +
bit.lshift(buffer:byte(offset + 6), 16) +
bit.lshift(buffer:byte(offset + 7), 8) +
buffer:byte(offset + 8)
end
local function assertHash(hash)
assert(hash and #hash == 40 and hash:match("^%x+$"), "Invalid hash")
end
local function hashPath(hash)
return string.format("objects/%s/%s", hash:sub(1, 2), hash:sub(3))
end
return function (storage)
local encoders = git.encoders
local decoders = git.decoders
local frame = git.frame
local deframe = git.deframe
local deflate = miniz.deflate
local inflate = miniz.inflate
local digest = openssl.digest.digest
local binToHex = hexBin.binToHex
local hexToBin = hexBin.hexToBin
local db = { storage = storage }
local fs = storage.fs
-- Initialize the git file storage tree if it does't exist yet
if not fs.access("HEAD") then
assert(fs.mkdirp("objects"))
assert(fs.mkdirp("refs/tags"))
assert(fs.writeFile("HEAD", "ref: refs/heads/master\n"))
assert(fs.writeFile("config", [[
[core]
repositoryformatversion = 0
filemode = true
bare = true
[gc]
auto = 0
]]))
end
local packs = {}
local function makePack(packHash)
local pack = packs[packHash]
if pack then
if pack.waiting then
pack.waiting[#pack.waiting + 1] = coroutine.running()
return coroutine.yield()
end
return pack
end
local waiting = {}
pack = { waiting=waiting }
local timer, indexFd, packFd, indexLength
local hashOffset, crcOffset
local offsets, lengths, packSize
local function close()
if pack then
pack.waiting = nil
if packs[packHash] == pack then
packs[packHash] = nil
end
pack = nil
end
if timer then
timer:stop()
timer:close()
timer = nil
end
if indexFd then
fs.close(indexFd)
indexFd = nil
end
if packFd then
fs.close(packFd)
packFd = nil
end
end
local function timeout()
coroutine.wrap(close)()
end
timer = uv.new_timer()
uv.unref(timer)
timer:start(2000, 2000, timeout)
packFd = assert(fs.open("objects/pack/pack-" .. packHash .. ".pack"))
local stat = assert(fs.fstat(packFd))
packSize = stat.size
assert(fs.read(packFd, 8, 0) == "PACK\0\0\0\2", "Only v2 pack files supported")
indexFd = assert(fs.open("objects/pack/pack-" .. packHash .. ".idx"))
assert(fs.read(indexFd, 8, 0) == '\255tOc\0\0\0\2', 'Only pack index v2 supported')
indexLength = readUint32(assert(fs.read(indexFd, 4, 8 + 255 * 4)))
hashOffset = 8 + 255 * 4 + 4
crcOffset = hashOffset + 20 * indexLength
local lengthOffset = crcOffset + 4 * indexLength
local largeOffset = lengthOffset + 4 * indexLength
offsets = {}
lengths = {}
local sorted = {}
local data = assert(fs.read(indexFd, 4 * indexLength, lengthOffset))
for i = 1, indexLength do
local offset = readUint32(data, (i - 1) * 4)
if bit.band(offset, 0x80000000) > 0 then
error("TODO: Implement large offsets properly")
offset = largeOffset + bit.band(offset, 0x7fffffff) * 8;
offset = readUint64(assert(fs.read(indexFd, 8, offset)))
end
offsets[i] = offset
sorted[i] = offset
end
table.sort(sorted)
for i = 1, indexLength do
local offset = offsets[i]
local length
for j = 1, indexLength - 1 do
if sorted[j] == offset then
length = sorted[j + 1] - offset
break
end
end
lengths[i] = length or (packSize - offset - 20)
end
local function loadHash(hash) --> offset
-- Read first fan-out table to get index into offset table
local prefix = hexToBin(hash:sub(1, 2)):byte(1)
local first = prefix == 0 and 0 or readUint32(assert(fs.read(indexFd, 4, 8 + (prefix - 1) * 4)))
local last = readUint32(assert(fs.read(indexFd, 4, 8 + prefix * 4)))
for index = first, last do
local start = hashOffset + index * 20
local foundHash = binToHex(assert(fs.read(indexFd, 20, start)))
if foundHash == hash then
index = index + 1
return offsets[index], lengths[index]
end
end
end
local function loadRaw(offset, length) -->raw
-- Shouldn't need more than 32 bytes to read variable length header and
-- optional hash or offset
local chunk = assert(fs.read(packFd, 32, offset))
local byte = chunk:byte(1)
-- Parse out the git type
local kind = numToType[bit.band(bit.rshift(byte, 4), 0x7)]
-- Parse out the uncompressed length
local size = bit.band(byte, 0xf)
local left = 4
local i = 2
while bit.band(byte, 0x80) > 0 do
byte = chunk:byte(i)
i = i + 1
size = bit.bor(size, bit.lshift(bit.band(byte, 0x7f), left))
left = left + 7
end
-- Optionally parse out the hash or offset for deltas
local ref
if kind == "ref-delta" then
ref = binToHex(chunk:sub(i + 1, i + 20))
i = i + 20
elseif kind == "ofs-delta" then
local byte = chunk:byte(i)
i = i + 1
ref = bit.band(byte, 0x7f)
while bit.band(byte, 0x80) > 0 do
byte = chunk:byte(i)
i = i + 1
ref = bit.bor(bit.lshift(ref + 1, 7), bit.band(byte, 0x7f))
end
end
local compressed = assert(fs.read(packFd, length, offset + i - 1))
local raw = inflate(compressed, 1)
assert(#raw == size, "inflate error or size mismatch at offset " .. offset)
if kind == "ref-delta" then
error("TODO: handle ref-delta")
elseif kind == "ofs-delta" then
local base
kind, base = loadRaw(offset - ref)
raw = applyDelta(base, raw)
end
return kind, raw
end
function pack.load(hash) --> raw
if not pack then
return makePack(packHash).load(hash)
end
timer:again()
local success, result = pcall(function ()
local offset, length = loadHash(hash)
if not offset then return end
local kind, raw = loadRaw(offset, length)
return frame(kind, raw)
end)
if success then return result end
-- close()
error(result)
end
packs[packHash] = pack
pack.waiting = nil
for i = 1, #waiting do
assert(coroutine.resume(waiting[i], pack))
end
return pack
end
function db.has(hash)
assertHash(hash)
return storage.read(hashPath(hash)) and true or false
end
function db.load(hash)
hash = db.resolve(hash)
assertHash(hash)
local compressed, err = storage.read(hashPath(hash))
if not compressed then
for file in storage.leaves("objects/pack") do
local packHash = file:match("^pack%-(%x+)%.idx$")
if packHash then
local raw
raw, err = makePack(packHash).load(hash)
if raw then return raw end
end
end
return nil, err
end
return inflate(compressed, 1)
end
function db.loadAny(hash)
local raw = assert(db.load(hash), "no such hash")
local kind, value = deframe(raw)
return kind, decoders[kind](value)
end
function db.loadAs(kind, hash)
local actualKind, value = db.loadAny(hash)
assert(kind == actualKind, "Kind mismatch")
return value
end
function db.save(raw)
local hash = digest("sha1", raw)
-- 0x1000 = TDEFL_WRITE_ZLIB_HEADER
-- 4095 = Huffman+LZ (slowest/best compression)
storage.put(hashPath(hash), deflate(raw, 0x1000 + 4095))
return hash
end
function db.saveAs(kind, value)
if type(value) ~= "string" then
value = encoders[kind](value)
end
return db.save(frame(kind, value))
end
function db.hashes()
local groups = storage.nodes("objects")
local prefix, iter
return function ()
while true do
if prefix then
local rest = iter()
if rest then return prefix .. rest end
prefix = nil
iter = nil
end
prefix = groups()
if not prefix then return end
iter = storage.leaves("objects/" .. prefix)
end
end
end
function db.getHead()
local head = storage.read("HEAD")
if not head then return end
local ref = head:match("^ref: *([^\n]+)")
return ref and db.getRef(ref)
end
function db.getRef(ref)
local hash = storage.read(ref)
if hash then return hash:match("%x+") end
local refs = storage.read("packed-refs")
return refs and refs:match("(%x+) " .. ref)
end
function db.resolve(ref)
if ref == "HEAD" then return db.getHead() end
local hash = ref:match("^%x+$")
if hash and #hash == 40 then return hash end
return db.getRef(ref)
or db.getRef("refs/heads/" .. ref)
or db.getRef("refs/tags/" .. ref)
end
return db
end
|
--[[---------------------------------------------------------
Name: Models
-----------------------------------------------------------]]
resource.AddFile( "models/freeman/moneyprinters/coolers/cooler_2.mdl" )
--[[---------------------------------------------------------
Name: Materials
-----------------------------------------------------------]]
resource.AddFile( "materials/models/freeman/moneyprinters/fanbase_2_diffuse.vmt" )
resource.AddFile( "materials/models/freeman/moneyprinters/fanblades.vmt" )
resource.AddFile( "materials/models/freeman/moneyprinters/fanblades_gold.vmt" )
resource.AddFile( "materials/models/freeman/moneyprinters/fanbase_2_norm.vtf" )
resource.AddFile( "materials/models/freeman/moneyprinters/fanblades_diffuse.vtf" )
resource.AddFile( "materials/models/freeman/moneyprinters/fanblades_norm.vtf" ) |
class("WorldUpdateFormationCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot4 = nowWorld.GetActiveMap(slot3)
pg.ConnectionMgr.GetInstance().Send(slot6, 33405, {
fleet_list = _.map(slot1:getBody().list, function (slot0)
return {
group_id = slot0.fleetId,
ship_id = _.map(slot0.ships, function (slot0)
return slot0.id
end)
}
end)
}, 33406, function (slot0)
if slot0.result == 0 then
slot1 = nowWorld
_.each(slot0.list, function (slot0)
slot1 = slot0:GetFleet(slot0.fleetId)
slot3 = slot0:GetPortFleets()
slot4 = {}
_.each(slot2, function (slot0)
slot0[slot0.id] = true
end)
_.each(slot1.GetShips(slot1, true), function (slot0)
if not slot0[slot0.id] then
slot1:AddPortShip(slot0)
end
end)
_.each(slot1.GetShips(slot6), function (slot0)
if slot0[slot0.id] then
slot0[slot0.id] = slot1:RemovePortShip(slot0.id)
end
end)
_.each(slot3, function (slot0)
if slot0.id ~= slot0.id then
_.each(slot0:GetShips(true), function (slot0)
if slot0[slot0.id] then
slot0[slot0.id] = slot1:RemoveShip(slot0.id)
end
end)
end
end)
slot5 = _.map(slot2, function (slot0)
return slot0:GetShip(slot0.id) or slot1[slot0.id]
end)
slot1:UpdateShips(slot5)
slot1:VerifyFormation()
end)
else
pg.TipsMgr.GetInstance().ShowTips(slot1, errorTip("world_update_formation_err", slot0.result))
end
if slot0.callback then
slot0.callback()
end
end)
end
return class("WorldUpdateFormationCommand", pm.SimpleCommand)
|
----------------------------------------
-- Outfitter Copyright 2009-2018 John Stephen
-- All rights reserved, unauthorized redistribution is prohibited
----------------------------------------
local _
_, Outfitter = ...
Outfitter.DebugColorCode = "|cff99ffcc"
Outfitter.AddonPath = "Interface\\Addons\\"..select(1, ...).."\\"
Outfitter.UIElementsLibTexturePath = Outfitter.AddonPath
Outfitter.Debug = {}
--
Outfitter.LibBabbleSubZone = LibStub("LibBabble-SubZone-3.0")
Outfitter.LibBabbleInventory = LibStub("LibBabble-Inventory-3.0")
Outfitter.LibTipHooker = LibStub("LibTipHooker-1.1")
Outfitter.LBF = LibStub("LibButtonFacade", true)
Outfitter.LibDropdown = LibStub("LibDropdownMC-1.0")
Outfitter.LBI = Outfitter.LibBabbleInventory:GetLookupTable()
Outfitter.LSZ = Outfitter.LibBabbleSubZone:GetLookupTable()
|
-- =============================================================================
-- import
-- =============================================================================
local convert = require("convert")
_convert_base = convert.input_convert
_to_table = convert.binstr_to_table
-- =============================================================================
-- input
-- =============================================================================
local input = {
-- number input (string format)
num = nil,
-- base flags
base = 16,
-- modification list
width = 0,
}
-- public function---------------------
-- set & get
function input:set_width(width)
self.width = width
end
function input:set_number(num)
local number = string.upper(num)
local _temp = number:match("0X(.*)")
self.num = _temp or number
end
function input:set_base(base)
self.base = base
end
-- deal
--[[
@desc check param input & convert string to bits-table
@return bits-table
--]]
function input:convert()
local binstr = _convert_base(input.num, input.base)
local bits = _to_table(binstr, input.width)
return bits
end
-- =============================================================================
-- retuern
-- =============================================================================
return input
|
function f1(x)
return x
end
function f2(x)
return f1(x)
end
f2(5)
--print(f2(5))
--returns 120
return 1
|
client_script 'call.lua'
server_script 'call_server.lua' |
Platform = Entity:extend()
function Platform:new(x, y, w, h)
Platform.super.new(self, x, y, w, h)
end
function Platform:draw()
love.graphics.setColor(hex.rgb("88ff88"))
love.graphics.rectangle("line", self.x, self.y, self.w, self.h)
end
|
-- premake file for Bucket --
workspace "BucketEngine"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
--Include directories relative to the root folder
IncludeDir = {}
IncludeDir["GLFW"] = "BucketEngine/Vendor/GLFW/Include"
IncludeDir["Glad"] = "BucketEngine/Vendor/Glad/Include"
IncludeDir["ImGui"] = "BucketEngine/Vendor/imgui"
--Include an extra premake file (the one in this location)
include "BucketEngine/Vendor/GLFW"
include "BucketEngine/Vendor/Glad"
include "BucketEngine/Vendor/ImGui"
project "BucketEngine"
location "BucketEngine"
kind "SharedLib"
language "C++"
targetdir("bin/" .. outputdir .. "/%{prj.name}")
objdir("bin-intermediate/" .. outputdir .. "/%{prj.name}")
pchheader "BucketPrecompiledHeader.h"
pchsource "BucketEngine/BucketSource/BucketPrecompiledHeader.cpp"
files
{
"%{prj.name}/BucketSource/**.h",
"%{prj.name}/BucketSource/**.cpp"
}
includedirs
{
"BucketEngine/BucketSource",
"%{prj.name}/Vendor/spdlog/include",
"%{IncludeDir.GLFW}",
"%{IncludeDir.Glad}",
"%{IncludeDir.ImGui}"
}
links
{
"GLFW",
"Glad",
"ImGui",
"opengl32.lib"
}
filter "system:windows"
cppdialect "C++17"
staticruntime "On"
systemversion "latest"
defines
{
"BUCKET_PLATFORM_WINDOWS",
"BUCKET_BUILD_DLL",
"BUCKET_ENABLE_ASSERTS",
"GLFW_INCLUDE_NONE"
}
postbuildcommands
{
("{COPY} %{cfg.buildtarget.relpath} ../bin/" .. outputdir .. "/TestingApp")
}
filter "configurations:Debug"
defines "BUCKET_DEBUG"
buildoptions "/MDd"
symbols "On"
filter "configurations:Release"
defines "BUCKET_RELEASE"
buildoptions "/MD"
optimize "On"
filter "configurations:Dist"
defines "BUCKET_DIST"
buildoptions "/MD"
optimize "On"
project "TestingApp"
location "TestingApp"
kind "ConsoleApp"
language "C++"
targetdir("bin/" .. outputdir .. "/%{prj.name}")
objdir("bin-intermediate/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/TestingAppSource/**.h",
"%{prj.name}/TestingAppSource/**.cpp"
}
includedirs
{
"%{prj.name}/Vendor/spdlog/include",
"BucketEngine/BucketSource"
}
links
{
"BucketEngine"
}
filter "system:windows"
cppdialect "C++17"
staticruntime "On"
systemversion "latest"
defines
{
"BUCKET_PLATFORM_WINDOWS"
}
filter "configurations:Debug"
defines "BUCKET_DEBUG"
buildoptions "/MDd"
symbols "On"
filter "configurations:Release"
defines "BUCKET_RELEASE"
buildoptions "/MD"
optimize "On"
filter "configurations:Dist"
defines "BUCKET_DIST"
buildoptions "/MD"
optimize "On" |
local drpath = require("directories")
drpath.addPath("myprograms",
"ZeroBraineProjects",
"CorporateProjects",
-- When not located in general directory search in projects
"ZeroBraineProjects/dvdlualib",
"ZeroBraineProjects/ExtractWireWiki")
drpath.addBase("D:/LuaIDE").setBase(1)
local gmod = require("dvdlualib/gmodlib")
local list = {data={}}
list.Set = function(kK, vV) list.data[kK] = vV end
list.GetForEdit = function(kK) return list.data[kK] end
list.Set("aaa", "bbb")
local function readConfigData(sN)
local fI = fileOpen(sN, "rb", "DATA")
if(not fI) then return end
local sL = fI:Read("*line")
while(sL) do
sL = sL:Trim()
if(sL ~= "" and sL:sub(1,1) ~= "#") then
print(sL)
end
sL = fI:Read("*line")
end
end
readConfigData("Test/physprop_adv_test.txt")
print(("physprop_adv_test.txt"):gsub("%.txt", ""))
for name in ("dsfsdf asdasd\tdsdf"):gmatch("%w+") do
print("aaaa", name)
end
common.logTable(list, "list") |
majestic_whisper_bird = Creature:new {
objectName = "@mob/creature_names:whisper_bird_majestic",
socialGroup = "bird",
faction = "",
level = 19,
chanceHit = 0.32,
damageMin = 170,
damageMax = 180,
baseXp = 1426,
baseHAM = 4500,
baseHAMmax = 5500,
armor = 0,
resists = {0,0,0,0,0,0,0,0,-1},
meatType = "meat_avian",
meatAmount = 65,
hideType = "",
hideAmount = 0,
boneType = "bone_avian",
boneAmount = 40,
milk = 0,
tamingChance = 0.05,
ferocity = 0,
pvpBitmask = ATTACKABLE,
creatureBitmask = PACK + HERD,
optionsBitmask = AIENABLED,
diet = CARNIVORE,
templates = {"object/mobile/whisper_bird_hue.iff"},
controlDeviceTemplate = "object/intangible/pet/lantern_bird_hue.iff",
scale = 1.2,
lootGroups = {},
weapons = {},
conversationTemplate = "",
attacks = {
{"stunattack",""}
}
}
CreatureTemplates:addCreatureTemplate(majestic_whisper_bird, "majestic_whisper_bird")
|
ITEM.name = "Charged Battery"
ITEM.model = "models/items/battery.mdl"
ITEM.ammo = "battery"
ITEM.ammoAmount = 50
ITEM.desc = "A single, seemingly enhanced battery."
ITEM.category = "Ammunition"
ITEM.flag = "v"
ITEM.price = 0
ITEM.uniqueID = "ammo_battery"
ITEM.material = "phoenix_storms/wire/pcb_blue"
ITEM.maxstack = 50
ITEM.iconCam = {
pos = Vector(200, 0, 5),
ang = Angle(180, -0, 180),
fov = 3.75,
}
local function onUse(item)
if(!item.player:getChar():getInv():add("j_battery_dead")) then
nut.item.spawn("j_battery_dead", item.player:getItemDropPos())
end
end
ITEM:hook("use", onUse)
ITEM.functions.use = {
name = "Load",
tip = "useTip",
icon = "icon16/add.png",
onRun = function(item)
item.player:GiveAmmo(item.ammoAmount, item.ammo)
item.player:EmitSound("npc/scanner/cbot_discharge1.wav", 110)
return true
end,
onCanRun = function(item)
local player = item.player
if (player:GetAmmoCount(item.ammo) >= item.ammoAmount * 2) then
return false
end
return true
end
} |
require('constants')
require('quest')
local function secretary_writing_start_fn()
add_message_with_pause("PRAETOR_SECRETARY_WRITING_QUEST_START_SID")
add_message_with_pause("PRAETOR_SECRETARY_WRITING_QUEST_START2_SID")
clear_and_add_message("PRAETOR_SECRETARY_WRITING_QUEST_START3_SID")
end
local function secretary_writing_completion_condition_fn()
return (get_item_count(PLAYER_ID, QUILL_ID) >= 6 and get_item_count(PLAYER_ID, INKPOT_ID) >= 3)
end
local function secretary_writing_completion_fn()
add_message_with_pause("PRAETOR_SECRETARY_WRITING_QUEST_COMPLETE_SID")
clear_and_add_message("PRAETOR_SECRETARY_WRITING_QUEST_COMPLETE2_SID")
remove_object_from_player(QUILL_ID, 6)
remove_object_from_player(INKPOT_ID, 3)
add_object_to_player_tile(CURRENCY_ID, RNG_range(200, 300))
add_object_to_player_tile("carcassia_praetor_key")
return true
end
secretary_writing_quest = Quest:new("secretary_writing",
"PRAETOR_SECRETARY_WRITING_QUEST_TITLE_SID",
"PRAETOR_SECRETARY_SHORT_DESCRIPTION_SID",
"PRAETOR_SECRETARY_WRITING_QUEST_DESCRIPTION_SID",
"PRAETOR_SECRETARY_WRITING_QUEST_COMPLETE_SID",
"PRAETOR_SECRETARY_WRITING_QUEST_REMINDER_SID",
truefn,
secretary_writing_start_fn,
secretary_writing_completion_condition_fn,
secretary_writing_completion_fn)
if secretary_writing_quest:execute() == false then
clear_and_add_message("PRAETOR_SECRETARY_SPEECH_TEXT_SID")
end
|
dofile("data/scripts/city-buildings.lua")
dofile("data/scripts/city-names.lua")
dofile("data/scripts/city-customers.lua")
dofile("data/scripts/deepcopy.lua")
function place:init()
self.reputation = 0
self.buildings = { }
local feature = World:featureAt(self:getX(), self:getY())
self.settlementType = feature
table.insert(self.buildings, buildings.inn)
if feature == "city" then
table.insert(self.buildings, buildings["city hall"])
elseif feature == "village" then
table.insert(self.buildings, buildings["foremans house"])
elseif feature == "castle" then
table.insert(self.buildings, buildings["central tower"])
end
if feature == "city" or feature == "village" then
local shipyard = false
for k = -1, 1 do
for l = -1, 1 do
if k^2 + l^2 == 1 and World:featureAt(self:getX() + k, self:getY() + l) == "water" then
shipyard = true
end
end
end
if shipyard then table.insert(self.buildings, buildings.shipyard) end
end
local allowedBuildings = { }
for k, v in pairs(buildings) do
if v.allowedIn == feature then
table.insert(allowedBuildings, v)
end
end
local giveBuildings = math.random(2, 3)
if feature == "castle" then
giveBuildings = math.random(1, 2)
end
for i = 1, giveBuildings do
local index = math.random(1, #allowedBuildings)
table.insert(self.buildings, allowedBuildings[index])
table.remove(allowedBuildings, index)
end
for k, v in pairs(self.buildings) do
if type(v.onInit) == "function" then
v:onInit()
end
end
self.name = cityNames[math.random(1, #cityNames)]
self:setName(self.name)
self:updateDescription()
self.customers = { }
end
function place:newDay()
for k, v in pairs(customerTable) do
if v.appear(self) then
local customer = table.deepcopy(v)
customer:init(self)
table.insert(self.customers, customer)
break
end
end
for k, v in pairs(self.buildings) do
if type(v.onNewDay) == "function" then
v:onNewDay()
end
end
end
function place:enter(player)
local choices = {
{ text = "Try to sell your potions to the locals.", callback = function () self:sellStuff(player) end, popBox = false }
}
for k, v in pairs(self.buildings) do
table.insert(choices, {
text = string.format("Visit %s%s.", v.name, v.description and " (" .. v.description .. ")" or ""),
disabled = v.onVisit == nil,
callback = function () v:onVisit(player) end,
popBox = false
})
end
table.insert(choices, { text = "Go away." })
choicebox(self.name, string.format("You entered the %s of %s.\n\nWhat would you like to do here?", self.settlementType, self.name), choices)
end
function place:updateDescription()
local intro = { city = "This is a proud city with these buildings:",
village = "This is a quiet village with these buildings:",
castle = "This is a strong castle with these buildings:" }
local desc = intro[self.settlementType] .. "\n"
for n = 1, #self.buildings do
desc = desc .. string.format(" %s\n", self.buildings[n].name)
end
local repRank = ""
if self.reputation < -78 then repRank = "Hated"
elseif self.reputation < -46 then repRank = "Feared"
elseif self.reputation < -14 then repRank = "Disliked"
elseif self.reputation < 14 then repRank = "Ignored"
elseif self.reputation < 46 then repRank = "Liked"
elseif self.reputation < 78 then repRank = "Loved"
else repRank = "Adored" end
desc = desc .. "\n" .. string.format("You are %s here (%d).", repRank, self.reputation);
self:setDescription(desc)
end
function place:sellStuff(player)
place:removeAwayCustomers()
if #self.customers == 0 then
messagebox("Nobody here", "Nobody is currently interested in buying potions.")
else
choices = { }
for k, v in pairs(self.customers) do
table.insert(choices, {
text = v.name,
callback = function () v:talk(self, player) end,
tileset = v.tileset,
tilenumber = v.tilenumber
})
end
table.insert(choices, { text = "Nobody — I changed my mind" })
choicebox("Customers", "There are some people that would be interested in buying potions... if they meet their needs, of course. Who do you want to talk with?", choices)
end
end
function place:removeAwayCustomers()
for k, v in pairs(self.customers) do
if v.goAway then
table.remove(self.customers, k)
self:removeAwayCustomers()
break
end
end
end
function place:hasBuilding(name)
for k, v in pairs(self.buildings) do
if v.name == name then
return true
end
end
return false
end
function place:numberOfCustomers(name)
local count = 0
for k, v in pairs(self.customers) do
if v.name == name then
count = count + 1
end
end
return count
end
function place:addReputation(x)
self.reputation = self.reputation + x
if self.reputation > 100 then
self.reputation = 100
elseif self.reputation < -100 then
self.reputation = -100
end
place:updateDescription()
end
function place:adjustedCost(cost, modifier)
if modifier == nil then modifier = 1 end
return cost * 3 ^ (-self.reputation*modifier/100)
end
|
-- KEYS[1] is reserved for VERSION of migrations
local files_index_pub = KEYS[1]
local files_data = KEYS[2]
-- retrieves all filenames in the public index
local uids = redis.call('smembers', files_index_pub)
for i, uid in ipairs(uids) do
local dataKey = files_data .. ':' .. uid
if redis.call('exists', dataKey) == 0 then
redis.call('srem', files_index_pub, uid)
end
end
|
local imageFileName = "Images/grossini.png"
local function initDefaultSprite(filename, spp, layer)
layer:addChild(spp)
local s = cc.Director:getInstance():getWinSize()
local offset = cc.p(0.15 * s.width, 0)
spp:setPosition(s.width/2 + 0.15 * s.width, s.height/2)
local sp = cc.Sprite:create(imageFileName)
layer:addChild(sp)
sp:setPosition(s.width/2 - 0.15 * s.width, s.height/2)
local debugForNormalSprite = cc.DrawNode:create()
sp:addChild(debugForNormalSprite)
local touchListener = cc.EventListenerTouchOneByOne:create()
touchListener:registerScriptHandler(function (touch, event)
spp:showDebug(true)
debugForNormalSprite:setVisible(true)
return true
end,cc.Handler.EVENT_TOUCH_BEGAN)
touchListener:registerScriptHandler(function (touch, event)
local pos = touch:getDelta()
local newScale = cc.clampf(spp:getScale()+pos.x*0.01, 0.1, 2)
spp:setScale(newScale)
sp:setScale(newScale)
end,cc.Handler.EVENT_TOUCH_MOVED)
touchListener:registerScriptHandler(function (touch, event)
spp:showDebug(false)
debugForNormalSprite:setVisible(false)
end,cc.Handler.EVENT_TOUCH_ENDED)
local eventDispatcher = layer:getEventDispatcher()
eventDispatcher:addEventListenerWithSceneGraphPriority(touchListener, layer)
local positions = {}
local spSize = sp:getContentSize()
positions[1] = cc.p(0, spSize.height)
positions[2] = cc.p(spSize.width, spSize.height)
positions[3] = cc.p(spSize.width, 0)
positions[4] = cc.p(0,0)
debugForNormalSprite:drawPoints(positions, 4, 8, cc.c4f(0.0,1.0,1.0,1.0))
debugForNormalSprite:drawLine(positions[1], positions[2], cc.c4f(0.0,1.0,0.0,1.0))
debugForNormalSprite:drawLine(positions[2], positions[3], cc.c4f(0.0,1.0,0.0,1.0))
debugForNormalSprite:drawLine(positions[3], positions[4], cc.c4f(0.0,1.0,0.0,1.0))
debugForNormalSprite:drawLine(positions[4], positions[1], cc.c4f(0.0,1.0,0.0,1.0))
debugForNormalSprite:drawLine(positions[1], positions[3], cc.c4f(0.0,1.0,0.0,1.0))
debugForNormalSprite:setVisible(false)
local ttfConfig = {}
ttfConfig.fontFilePath = "fonts/arial.ttf"
ttfConfig.fontSize = 8
local temp = "Sprite:\nPixels drawn: ".. spSize.width*spSize.height
local spArea = cc.Label:createWithTTF(ttfConfig, temp)
sp:addChild(spArea)
spArea:setAnchorPoint(cc.p(0,1))
temp = "SpritePolygon:\nPixels drawn: "
local vertCount = "\nverts:" .. spp:getVertCount()
local sppArea = cc.Label:createWithTTF(ttfConfig, temp .. spp:getArea() .. vertCount)
spp:addChild(sppArea)
sppArea:setAnchorPoint(cc.p(0,1))
Helper.initWithLayer(layer)
Helper.titleLabel:setString(layer:title())
Helper.subtitleLabel:setString(layer:subtitle())
local function onNodeEvent(event)
if "enter" == event then
layer:onEnter()
elseif "exit" == event then
layer:onExit()
end
end
layer:registerScriptHandler(onNodeEvent)
end
----------------------------------------
----SpritePolygonTest1
----------------------------------------
local SpritePolygonTest1 = class("SpritePolygonTest1", function ()
local layer = cc.Layer:create()
return layer
end)
function SpritePolygonTest1:make2Sprites()
-- body
end
function SpritePolygonTest1:ctor()
local s = cc.Director:getInstance():getWinSize()
local offset = cc.p(0.15 * s.width, 0)
local filename = s_pPathGrossini
local info = cc.AutoPolygon:generatePolygon(filename)
local spp = cc.Sprite:create(info)
self:addChild(spp)
spp:setPosition(cc.p(s.width / 2 + offset.x, s.height / 2 + offset.y))
local sp = cc.Sprite:create(filename)
self:addChild(sp)
sp:setPosition(cc.p(s.width/2 - offset.x, s.height/2 - offset.y))
local ttfConfig = {}
ttfConfig.fontFilePath = "fonts/arial.ttf"
ttfConfig.fontSize = 8
local temp = "Sprite:\nPixels drawn: "
local spSize = sp:getContentSize()
local spArea = cc.Label:createWithTTF(ttfConfig, temp .. (spSize.width * spSize.height))
sp:addChild(spArea)
spArea:setAnchorPoint(cc.p(0, 1))
temp = "SpritePolygon:\nPixels drawn: "
local vertCount = "\nverts:" .. info:getVertCount()
local sppArea = cc.Label:createWithTTF(ttfConfig, temp .. math.floor(info:getArea()) .. vertCount)
spp:addChild(sppArea)
sppArea:setAnchorPoint(cc.p(0, 1))
local touchListener = cc.EventListenerTouchOneByOne:create()
touchListener:registerScriptHandler(function (touch, event)
sp:debugDraw(true)
spp:debugDraw(true)
return true
end,cc.Handler.EVENT_TOUCH_BEGAN)
touchListener:registerScriptHandler(function (touch, event)
local pos = touch:getDelta()
local newScale = cc.clampf(spp:getScale()+pos.x*0.01, 0.1, 2)
spp:setScale(newScale)
sp:setScale(newScale)
end,cc.Handler.EVENT_TOUCH_MOVED)
touchListener:registerScriptHandler(function (touch, event)
sp:debugDraw(false)
spp:debugDraw(false)
end,cc.Handler.EVENT_TOUCH_ENDED)
local eventDispatcher = self:getEventDispatcher()
eventDispatcher:addEventListenerWithSceneGraphPriority(touchListener, self)
Helper.initWithLayer(self)
Helper.titleLabel:setString(self:title())
Helper.subtitleLabel:setString(self:subtitle())
local function onNodeEvent(event)
if "enter" == event then
self:onEnter()
elseif "exit" == event then
self:onExit()
end
end
self:registerScriptHandler(onNodeEvent)
end
function SpritePolygonTest1:title()
return "SpritePolygon Creation"
end
function SpritePolygonTest1:subtitle()
return "Sprite:create(AutoPolygon:generatePolygon(filename))"
end
function SpritePolygonTest1:onEnter()
cc.Director:getInstance():setClearColor(cc.c4f(102.0/255, 184.0/255, 204.0/255, 255.0))
end
function SpritePolygonTest1:onExit()
cc.Director:getInstance():setClearColor(cc.c4f(0.0, 0.0, 0.0, 1.0))
end
----------------------------------------
----SpritePolygonTest2
----------------------------------------
local SpritePolygonTest2 = class("SpritePolygonTest2", function ()
local layer = cc.Layer:create()
return layer
end)
function SpritePolygonTest2:make2Sprites()
local s = cc.Director:getInstance():getWinSize()
local offset = cc.p(0.15 * s.width, 0)
local filename = s_pPathGrossini
local head = cc.rect(30, 25, 25, 25)
local info = cc.AutoPolygon:generatePolygon(filename, head)
self.spp = cc.Sprite:create(info)
self:addChild(self.spp)
self.spp:setPosition(cc.p(s.width / 2 + offset.x, s.height / 2 + offset.y))
self.sp = cc.Sprite:create(filename,head)
self:addChild(self.sp)
self.sp:setPosition(cc.p(s.width/2 - offset.x, s.height/2 - offset.y))
local ttfConfig = {}
ttfConfig.fontFilePath = "fonts/arial.ttf"
ttfConfig.fontSize = 8
local temp = "Sprite:\nPixels drawn: "
local spSize = self.sp:getContentSize()
local spArea = cc.Label:createWithTTF(ttfConfig, temp .. (spSize.width * spSize.height))
self.sp:addChild(spArea)
spArea:setAnchorPoint(cc.p(0, 1))
temp = "SpritePolygon:\nPixels drawn: "
local vertCount = "\nverts:" .. info:getVertCount()
local sppArea = cc.Label:createWithTTF(ttfConfig, temp .. math.floor(info:getArea()) .. vertCount)
self.spp:addChild(sppArea)
sppArea:setAnchorPoint(cc.p(0, 1))
end
function SpritePolygonTest2:ctor()
self:make2Sprites()
local touchListener = cc.EventListenerTouchOneByOne:create()
touchListener:registerScriptHandler(function (touch, event)
self.sp:debugDraw(true)
self.spp:debugDraw(true)
return true
end,cc.Handler.EVENT_TOUCH_BEGAN)
touchListener:registerScriptHandler(function (touch, event)
local pos = touch:getDelta()
local newScale = cc.clampf(self.spp:getScale()+pos.x*0.01, 0.1, 2)
self.spp:setScale(newScale)
self.sp:setScale(newScale)
end,cc.Handler.EVENT_TOUCH_MOVED)
touchListener:registerScriptHandler(function (touch, event)
self.sp:debugDraw(false)
self.spp:debugDraw(false)
end,cc.Handler.EVENT_TOUCH_ENDED)
local eventDispatcher = self:getEventDispatcher()
eventDispatcher:addEventListenerWithSceneGraphPriority(touchListener, self)
Helper.initWithLayer(self)
Helper.titleLabel:setString(self:title())
Helper.subtitleLabel:setString(self:subtitle())
local function onNodeEvent(event)
if "enter" == event then
self:onEnter()
elseif "exit" == event then
self:onExit()
end
end
self:registerScriptHandler(onNodeEvent)
end
function SpritePolygonTest2:title()
return "SpritePolygon Creation with a rect"
end
function SpritePolygonTest2:subtitle()
return "Sprite:create(AutoPolygon:generatePolygon(filename, rect))"
end
function SpritePolygonTest2:onEnter()
cc.Director:getInstance():setClearColor(cc.c4f(102.0/255, 184.0/255, 204.0/255, 255.0))
end
function SpritePolygonTest2:onExit()
cc.Director:getInstance():setClearColor(cc.c4f(0.0, 0.0, 0.0, 1.0))
end
----------------------------------------
----SpritePolygonTest3
----------------------------------------
local SpritePolygonTest3 = class("SpritePolygonTest3", function ()
local layer = cc.Layer:create()
return layer
end)
function SpritePolygonTest3:makeSprite(filename, pos)
local quadSize = cc.Sprite:create(filename):getContentSize()
local originalSize = quadSize.width * quadSize.height
local info = cc.AutoPolygon:generatePolygon(filename)
local ret = cc.Sprite:create(info)
ret:setPosition(pos)
local spArea = cc.Label:createWithTTF(self._ttfConfig, filename .. "\nVerts: " .. info:getVertCount() .. "\nPixels: " .. math.floor(info:getArea() / originalSize * 100) .. "%")
ret:addChild(spArea)
spArea:setAnchorPoint(cc.p(0,1))
ret:setName(filename)
ret:setAnchorPoint(cc.p(0.5, 0))
return ret
end
function SpritePolygonTest3:makeSprites(list, count, y)
local vsize = cc.Director:getInstance():getVisibleSize()
local offset = (vsize.width - 100) / (count - 1)
for i = 1, count do
local sp = self:makeSprite(list[i], cc.p(50 + offset * (i - 1), y))
self:addChild(sp)
sp:debugDraw(true)
end
end
function SpritePolygonTest3:updateLabel(sprite, polygonInfo)
local label = sprite:getChildren()[1]
local filename = sprite:getName()
local scaleFactor = cc.Director:getInstance():getContentScaleFactor()
local size = cc.size(polygonInfo.rect.width / scaleFactor , polygonInfo.rect.height / scaleFactor )
local labelInfo = filename .. "\nVerts: " .. polygonInfo:getVertCount() .. "\nPixels: " .. math.floor(polygonInfo:getArea() / (size.width*size.height)*100) .. "%"
label:setString(labelInfo)
end
function SpritePolygonTest3:ctor()
self._ttfConfig = {}
self._ttfConfig.fontFilePath = "fonts/arial.ttf"
self._ttfConfig.fontSize = 8
local vsize = cc.Director:getInstance():getVisibleSize()
local slider = ccui.Slider:create()
slider:loadBarTexture("cocosui/sliderTrack.png")
slider:loadSlidBallTextures("cocosui/sliderThumb.png", "cocosui/sliderThumb.png", "")
slider:loadProgressBarTexture("cocosui/sliderProgress.png")
slider:setPosition(cc.p(vsize.width/2, vsize.height/4))
local function percentChangedEvent(sender,eventType)
if eventType == ccui.SliderEventType.percentChanged then
local slider = sender
local percent = "Percent " .. slider:getPercent()
self._displayValueLabel:setString(percent)
end
end
slider:addEventListener(function(sender, eventType)
local epsilon = math.pow(sender:getPercent() / 100.0 , 2) * 19.0 + 1.0
local children = self:getChildren()
for i = 1, #children do
local child = children[i]
if child:getName() ~= nil and child:getName() ~= "" then
local file = child:getName()
local info = cc.AutoPolygon:generatePolygon(file, cc.rect(0, 0, 0, 0), epsilon)
child:setPolygonInfo(info)
child:debugDraw(true)
self:updateLabel(child, info)
end
end
self._epsilonLabel:setString("Epsilon: " .. epsilon)
end)
slider:setPercent(math.sqrt(1.0 /19.0 )*100)
self._epsilonLabel = cc.Label:createWithTTF(self._ttfConfig, "Epsilon: 2.0")
self:addChild(self._epsilonLabel)
self._epsilonLabel:setPosition(cc.p(vsize.width/2, vsize.height/4 + 15))
self:addChild(slider)
local list = {
"Images/arrows.png",
"Images/CyanTriangle.png",
s_pPathB2,
"Images/elephant1_Diffuse.png"
}
local count = 4
self:makeSprites(list, count, vsize.height / 2)
local function onNodeEvent(event)
if "enter" == event then
self:onEnter()
elseif "exit" == event then
self:onExit()
end
end
self:registerScriptHandler(onNodeEvent)
Helper.initWithLayer(self)
Helper.titleLabel:setString(self:title())
Helper.subtitleLabel:setString(self:subtitle())
end
function SpritePolygonTest3:title()
return "Optimization Value (default:2.0)"
end
function SpritePolygonTest3:subtitle()
return ""
end
function SpritePolygonTest3:onEnter()
cc.Director:getInstance():setClearColor(cc.c4f(102.0/255, 184.0/255, 204.0/255, 255.0))
end
function SpritePolygonTest3:onExit()
cc.Director:getInstance():setClearColor(cc.c4f(0.0, 0.0, 0.0, 1.0))
end
----------------------------------------
----SpritePolygonTest4
----------------------------------------
local SpritePolygonTest4 = class("SpritePolygonTest4", function ()
local layer = cc.Layer:create()
return layer
end)
function SpritePolygonTest4:ctor()
self._ttfConfig = {}
self._ttfConfig.fontFilePath = "fonts/arial.ttf"
self._ttfConfig.fontSize = 8
local vsize = cc.Director:getInstance():getVisibleSize()
local slider = ccui.Slider:create()
slider:loadBarTexture("cocosui/sliderTrack.png")
slider:loadSlidBallTextures("cocosui/sliderThumb.png", "cocosui/sliderThumb.png", "")
slider:loadProgressBarTexture("cocosui/sliderProgress.png")
slider:setPosition(cc.p(vsize.width/2, vsize.height/4))
local function percentChangedEvent(sender,eventType)
if eventType == ccui.SliderEventType.percentChanged then
local slider = sender
local percent = "Percent " .. slider:getPercent()
self._displayValueLabel:setString(percent)
end
end
slider:addEventListener(function(sender, eventType)
local epsilon = math.pow(sender:getPercent() / 100.0 , 2) * 19.0 + 1.0
local children = self:getChildren()
for i = 1, #children do
local child = children[i]
if child:getName() ~= nil and child:getName() ~= "" then
local file = child:getName()
local info = cc.AutoPolygon:generatePolygon(file, cc.rect(0, 0, 0, 0), epsilon)
child:setPolygonInfo(info)
child:debugDraw(true)
self:updateLabel(child, info)
end
end
self._epsilonLabel:setString("Epsilon: " .. epsilon)
end)
slider:setPercent(math.sqrt(1.0 /19.0 )*100)
self._epsilonLabel = cc.Label:createWithTTF(self._ttfConfig, "Epsilon: 2.0")
self:addChild(self._epsilonLabel)
self._epsilonLabel:setPosition(cc.p(vsize.width/2, vsize.height/4 + 15))
self:addChild(slider)
local list = {
imageFileName,
"Images/grossinis_sister1.png",
"Images/grossinis_sister2.png",
}
local count = 3
self:makeSprites(list, count, vsize.height / 2)
local function onNodeEvent(event)
if "enter" == event then
self:onEnter()
elseif "exit" == event then
self:onExit()
end
end
self:registerScriptHandler(onNodeEvent)
Helper.initWithLayer(self)
Helper.titleLabel:setString(self:title())
Helper.subtitleLabel:setString(self:subtitle())
end
function SpritePolygonTest4:title()
return "Optimization Value (default:2.0)"
end
function SpritePolygonTest4:subtitle()
return ""
end
function SpritePolygonTest4:updateLabel(sprite, polygonInfo)
local label = sprite:getChildren()[1]
local filename = sprite:getName()
local rectSize = cc.size(polygonInfo.rect.width, polygonInfo.rect.height)
local size = cc.size(rectSize.width / cc.Director:getInstance():getContentScaleFactor(), rectSize.height / cc.Director:getInstance():getContentScaleFactor())
local labelInfo = filename .. "\nVerts: " .. polygonInfo:getVertCount() .. "\nPixels: " .. math.floor(polygonInfo:getArea() / (size.width*size.height)*100) .. "%"
label:setString(labelInfo)
end
function SpritePolygonTest4:makeSprite(filename, pos)
local quadSize = cc.Sprite:create(filename):getContentSize()
local originalSize = quadSize.width * quadSize.height
local info = cc.AutoPolygon:generatePolygon(filename)
local ret = cc.Sprite:create(info)
ret:setPosition(pos)
local spArea = cc.Label:createWithTTF(self._ttfConfig, filename .. "\nVerts: " .. info:getVertCount() .. "\nPixels: " .. math.floor(info:getArea() / originalSize * 100) .. "%")
ret:addChild(spArea)
spArea:setAnchorPoint(cc.p(0,1))
ret:setName(filename)
ret:setAnchorPoint(cc.p(0.5, 0))
return ret
end
function SpritePolygonTest4:makeSprites(list, count, y)
local vsize = cc.Director:getInstance():getVisibleSize()
local offset = (vsize.width - 100) / (count - 1)
for i = 1, count do
local sp = self:makeSprite(list[i], cc.p(50 + offset * (i - 1), y))
self:addChild(sp)
sp:debugDraw(true)
end
end
function SpritePolygonTest4:onEnter()
cc.Director:getInstance():setClearColor(cc.c4f(102.0/255, 184.0/255, 204.0/255, 255.0))
end
function SpritePolygonTest4:onExit()
cc.Director:getInstance():setClearColor(cc.c4f(0.0, 0.0, 0.0, 1.0))
end
----------------------------------------
----SpritePolygonPerformance
----------------------------------------
local SpritePolygonPerformance = class("SpritePolygonPerformance", function ()
local layer = cc.Layer:create()
return layer
end)
function SpritePolygonPerformance:ctor()
Helper.initWithLayer(self)
Helper.titleLabel:setString(self:title())
Helper.subtitleLabel:setString(self:subtitle())
self:init()
self:initExtend()
local function onNodeEvent(event)
if "enter" == event then
self:onEnter()
elseif "exit" == event then
self:onExit()
end
end
self:registerScriptHandler(onNodeEvent)
end
function SpritePolygonPerformance:title()
return "SpritePolygonPerformance"
end
function SpritePolygonPerformance:subtitle()
return ""
end
function SpritePolygonPerformance:updateLabel()
local temp = "Nodes: " .. self._spriteCount .. " Triangles: " .. self._triCount .. "\nPixels: " .. self._pixelCount .. " Vertices: " .. self._vertCount
if not self.ended then
local labelInfo = "Nodes: " .. self._spriteCount .. " Triangles: " .. self._triCount .. "\nPixels: " .. self._pixelCount .. " Vertices: " .. self._vertCount
self._perfLabel:setString(labelInfo)
end
end
function SpritePolygonPerformance:onEnter()
cc.Director:getInstance():setClearColor(cc.c4f(102.0/255, 184.0/255, 204.0/255, 255.0))
end
function SpritePolygonPerformance:onExit()
cc.Director:getInstance():setClearColor(cc.c4f(0.0, 0.0, 0.0, 1.0))
self:unscheduleUpdate()
end
function SpritePolygonPerformance:init()
local ttfConfig = { fontFilePath = "fonts/arial.ttf", fontSize = 8 }
self._perfLabel = cc.Label:createWithTTF(ttfConfig, "performance test")
self:addChild(self._perfLabel)
self._perfLabel:setPosition(cc.Director:getInstance():getVisibleSize().width / 2, 80)
self._spriteCount, self._vertCount, self._triCount, self._pixelCount, self._continuousLowDt = 0,0,0,0,0
local size = cc.Director:getInstance():getVisibleSize()
self._elapsedTime = 0
self._posX,self._leftX = size.width * 0.15, size.width * 0.15
self._rightX = size.width*0.85
self._posY = size.height/2
self._prevDt = 0.016
self._goRight = true
self._ended = false
self._continuousHighDtTime = 0.0
self._waitingTime = 0.0
self:scheduleUpdateWithPriorityLua(function (dt)
dt = dt * 0.3 + self._prevDt * 0.7
self._prevDt = dt
self._elapsedTime = self._elapsedTime + dt
local loops = (0.025 - dt)*1000
if dt < 0.025 and loops > 0 then
self._continuousHighDtTime = cc.clampf(self._continuousHighDtTime-dt*2, 0.0, 1.0)
self._waitingTime = cc.clampf(self._waitingTime-dt, 0.0, 5.0)
self._continuousLowDt = self._continuousLowDt + 1
else
self._continuousHighDtTime = self._continuousHighDtTime + dt
self._continuousLowDt = 0
end
if self._continuousLowDt >= 5 and loops > 0 then
for i = 1, loops do
if self._posX >= self._rightX then
self._goRight = false
elseif self._posX <= self._leftX then
self._goRight = true
end
local s = self:makeSprite()
self:addChild(s)
s:setPosition(self._posX, self._posY)
if self._goRight then
self._posX = self._posX + 1
else
self._posX = self._posX - 1
end
self:incrementStats()
end
self:updateLabel()
elseif self._continuousHighDtTime >= 0.5 or self._waitingTime > 3.0 then
self._ended = true
self:unscheduleUpdate()
local labelInfo = "Test ended in" .. self._elapsedTime .. " seconds\nNodes: " .. self._spriteCount .. " Triangles: " .. self._triCount .. "\nPixels: " .. self._pixelCount .. " Vertices: " .. self._vertCount
self._perfLabel:setString(labelInfo)
Helper.subtitleLabel:setString("Test ended")
else
self._waitingTime = self._waitingTime + dt
end
end, 0)
end
function SpritePolygonPerformance:initExtend()
end
function SpritePolygonPerformance:makeSprite()
return cc.Node:create()
end
function SpritePolygonPerformance:incrementStats()
self._spriteCount = self._spriteCount + 1
self._vertCount = self._vertCount + self._incVert
self._triCount = self._triCount + self._incTri
self._pixelCount = self._pixelCount + self._incPix
end
----------------------------------------
----SpritePolygonPerformanceTestDynamic
----------------------------------------
local SpritePolygonPerformanceTestDynamic = class("SpritePolygonPerformanceTestDynamic", SpritePolygonPerformance)
function SpritePolygonPerformanceTestDynamic:makeSprite()
local ret = cc.Sprite:create(self._info)
ret:runAction(cc.RepeatForever:create(cc.RotateBy:create(1.0,360.0)))
return ret
end
function SpritePolygonPerformanceTestDynamic:initExtend()
self._info = cc.AutoPolygon:generatePolygon(imageFileName)
self:initIncrementStats()
end
function SpritePolygonPerformanceTestDynamic:title()
return "Dynamic SpritePolygon Performance"
end
function SpritePolygonPerformanceTestDynamic:subtitle()
return "Test running, please wait until it ends"
end
function SpritePolygonPerformanceTestDynamic:initIncrementStats()
self._incVert = self._info:getVertCount()
self._incTri = self._info:getTrianglesCount()
self._incPix = self._info:getArea()
end
----------------------------------------
----SpritePerformanceTestDynamic
----------------------------------------
local SpritePerformanceTestDynamic = class("SpritePerformanceTestDynamic", SpritePolygonPerformance)
function SpritePerformanceTestDynamic:initExtend()
-- self._info = cc.AutoPolygon:generatePolygon(imageFileName)
self:initIncrementStats()
end
function SpritePerformanceTestDynamic:title()
return "Dynamic Sprite Performance"
end
function SpritePerformanceTestDynamic:subtitle()
return "Test running, please wait until it ends"
end
function SpritePerformanceTestDynamic:initIncrementStats()
local t = cc.Sprite:create(imageFileName)
self._incVert = 4
self._incTri = 2
self._incPix = t:getContentSize().width * t:getContentSize().height
end
function SpritePerformanceTestDynamic:makeSprite()
local ret = cc.Sprite:create(imageFileName)
ret:runAction(cc.RepeatForever:create(cc.RotateBy:create(1.0,360.0)))
return ret
end
----------------------------------------
----SpritePolygonTest
----------------------------------------
function SpritePolygonTest()
local scene = cc.Scene:create()
Helper.createFunctionTable =
{
SpritePolygonTest1.create,
SpritePolygonTest2.create,
SpritePolygonTest3.create,
SpritePolygonTest4.create,
SpritePolygonPerformanceTestDynamic.create,
SpritePerformanceTestDynamic.create,
}
scene:addChild(SpritePolygonTest1.create())
scene:addChild(CreateBackMenuItem())
return scene
end
|
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New();
ITEM.name = "ItemMelon";
ITEM.uniqueID = "melon";
ITEM.cost = 8;
ITEM.model = "models/props_junk/watermelon01.mdl";
ITEM.weight = 1;
ITEM.access = "v";
ITEM.useText = "Eat";
ITEM.category = "Consumables";
ITEM.business = true;
ITEM.description = "ItemMelonDesc";
-- Called when a player uses the item.
function ITEM:OnUse(player, itemEntity)
player:SetHealth(math.Clamp(player:Health() + 10, 0, 100));
player:BoostAttribute(self.name, ATB_ACROBATICS, 2, 120);
player:BoostAttribute(self.name, ATB_AGILITY, 2, 120);
end;
-- Called when a player drops the item.
function ITEM:OnDrop(player, position) end;
ITEM:Register(); |
local PANEL = {}
--colors
local associated_colors = GM.UIColors.WaitList
local color_background = associated_colors.Background
local color_text_light = associated_colors.TextLight
--local functions
local function name_refresh_think(self)
end
--panel functions
function PANEL:Init()
self:DockPadding(4, 4, 4, 4)
do --avatar panel
local avatar_panel = vgui.Create("StackerWaitListAvatar", self)
avatar_panel:Dock(LEFT)
self.AvatarPanel = avatar_panel
end
do --name label
local label = vgui.Create("DLabel", self)
label:Dock(FILL)
label:DockMargin(4, 0, 0, 0)
label:SetFont("Trebuchet24")
label:SetText("unknown")
self.Label = label
end
end
function PANEL:Paint(width, height)
surface.SetDrawColor(color_background)
surface.DrawRect(0, 0, width, height)
end
function PANEL:PerformLayout(width, height)
local avatar_panel = self.AvatarPanel
avatar_panel:SetWide(avatar_panel:GetTall())
end
function PANEL:SetPlayer(ply)
if IsValid(ply) then --update name here too
self.Player = ply
if ply:GetName() == "unconnected" then self.Think = self.NameRefreshThink end
self.AvatarPanel:SetPlayer(ply)
self.Label:SetText(hook.Run("StackerUICredationGetNameExtension", ply, true))
self.Label:SetTextColor(hook.Run("StackerUICredationGetNameColor", ply) or color_text_light)
else
self.NeedsNameRefresh = false
self.Player = nil
self.Think = nil
self.Label:SetText("invalid")
end
end
function PANEL:SetReady(ready)
self.Ready = ready
self.AvatarPanel.Ready = ready
end
function PANEL:NameRefreshThink()
local ply = self.Player
if IsValid(ply) then
if ply:Nick() == "unconnected" then return end
self:SetPlayer(ply)
else self:SetPlayer() end
end
--post
derma.DefineControl("StackerWaitListEntry", "A player's entry for the StackerWaitList panel.", PANEL, "DPanel") |
---------------------------------------------------------------------------------------------------
-- func: hasitem
-- desc: Checks if a player has a specific item
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "is"
};
function error(player, msg)
player:PrintToPlayer(msg);
player:PrintToPlayer("!hasitem <itemID> {player}");
end;
function onTrigger(player, itemId, target)
-- validate itemId
if (itemId == nil) then
error(player, "You must provide an itemID.");
return;
elseif (itemId < 1) then
error(player, "Invalid itemID.");
return;
end
-- validate target
local targ;
if (target == nil) then
targ = player:getCursorTarget();
if (targ == nil or not targ:isPC()) then
targ = player;
end
else
targ = GetPlayerByName(target);
if (targ == nil) then
error(player, string.format("Player named '%s' not found!", target));
return;
end
end
-- report hasItem
if (targ:hasItem(itemId)) then
player:PrintToPlayer(string.format("%s has item %i.", targ:getName(), itemId));
else
player:PrintToPlayer(string.format("%s does not have item %i.", targ:getName(), itemId));
end
end; |
local wallUtils = {}
function wallUtils.addResistance(eType, name, resistance)
if data.raw[eType][name] then
for i=1,#data.raw[eType][name].resistances do
if (resistance.type == data.raw[eType][name].resistances[i].type) then
data.raw[eType][name].resistances[i] = resistance
return
end
end
data.raw[eType][name].resistances[#data.raw[eType][name].resistances+1] = resistance
end
end
function wallUtils.makeWall(attributes, attack)
local name = attributes.name .. "-wall-rampant-arsenal"
local itemName = attributes.name .. "-wall-rampant-arsenal"
data:extend({
{
type = "item",
name = itemName,
icon = attributes.icon or "__base__/graphics/icons/gun-turret.png",
icon_size = 32,
flags = attributes.itemFlags or {},
subgroup = attributes.subgroup or "defensive-structure",
order = attributes.order or "a[stone-wall]-a[stone-wall]",
place_result = name,
stack_size = attributes.stackSize or 200
},
{
type = "wall",
name = name,
icon = attributes.icon or "__base__/graphics/icons/stone-wall.png",
icon_size = 32,
flags = {"placeable-neutral", "player-creation"},
collision_box = {{-0.29, -0.29}, {0.29, 0.29}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
minable = {mining_time = 0.5, result = name},
fast_replaceable_group = "wall",
max_health = attributes.health or 350,
healing_per_tick = attributes.healing,
repair_speed_modifier = attributes.repairSpeed or 2,
corpse = "wall-remnants",
repair_sound = { filename = "__base__/sound/manual-repair-simple.ogg" },
mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" },
vehicle_impact_sound = { filename = "__base__/sound/car-stone-impact.ogg", volume = 1.0 },
-- this kind of code can be used for having walls mirror the effect
-- there can be multiple reaction items
attack_reaction = attack
-- {
-- {
-- -- how far the mirroring works
-- range = 2,
-- -- what kind of damage triggers the mirroring
-- -- if not present then anything triggers the mirroring
-- damage_type = "physical",
-- -- caused damage will be multiplied by this and added to the subsequent damages
-- reaction_modifier = 0.1,
-- action =
-- {
-- type = "direct",
-- action_delivery =
-- {
-- type = "instant",
-- target_effects =
-- {
-- type = "damage",
-- -- always use at least 0.1 damage
-- damage = {amount = 0.1, type = "physical"}
-- }
-- }
-- },
-- }
-- }
,
connected_gate_visualization =
{
filename = "__core__/graphics/arrows/underground-lines.png",
priority = "high",
width = 64,
height = 64,
scale = 0.5
},
resistances = attributes.resistances or
{
{
type = "physical",
decrease = 3,
percent = 20
},
{
type = "impact",
decrease = 45,
percent = 60
},
{
type = "explosion",
decrease = 10,
percent = 30
},
{
type = "fire",
percent = 100
},
{
type = "laser",
percent = 70
}
},
pictures =
{
single =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-single.png",
priority = "extra-high",
width = 32,
height = 46,
variation_count = 2,
line_length = 2,
tint = attributes.tint,
shift = util.by_pixel(0, -6),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-single.png",
priority = "extra-high",
width = 64,
height = 86,
variation_count = 2,
line_length = 2,
tint = attributes.tint,
shift = util.by_pixel(0, -5),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-single-shadow.png",
priority = "extra-high",
width = 50,
height = 32,
repeat_count = 2,
tint = attributes.tint,
shift = util.by_pixel(10, 16),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-single-shadow.png",
priority = "extra-high",
width = 98,
height = 60,
tint = attributes.tint,
repeat_count = 2,
shift = util.by_pixel(10, 17),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
straight_vertical =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-vertical.png",
priority = "extra-high",
width = 32,
height = 68,
variation_count = 5,
line_length = 5,
tint = attributes.tint,
shift = util.by_pixel(0, 8),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-vertical.png",
priority = "extra-high",
width = 64,
height = 134,
variation_count = 5,
line_length = 5,
tint = attributes.tint,
shift = util.by_pixel(0, 8),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-vertical-shadow.png",
priority = "extra-high",
width = 50,
height = 58,
repeat_count = 5,
tint = attributes.tint,
shift = util.by_pixel(10, 28),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-vertical-shadow.png",
priority = "extra-high",
width = 98,
height = 110,
repeat_count = 5,
tint = attributes.tint,
shift = util.by_pixel(10, 29),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
straight_horizontal =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-horizontal.png",
priority = "extra-high",
width = 32,
height = 50,
variation_count = 6,
tint = attributes.tint,
line_length = 6,
shift = util.by_pixel(0, -4),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-horizontal.png",
priority = "extra-high",
width = 64,
height = 92,
variation_count = 6,
tint = attributes.tint,
line_length = 6,
shift = util.by_pixel(0, -2),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-horizontal-shadow.png",
priority = "extra-high",
width = 62,
height = 36,
tint = attributes.tint,
repeat_count = 6,
shift = util.by_pixel(14, 14),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-horizontal-shadow.png",
priority = "extra-high",
width = 124,
height = 68,
tint = attributes.tint,
repeat_count = 6,
shift = util.by_pixel(14, 15),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
corner_right_down =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-corner-right.png",
priority = "extra-high",
width = 32,
height = 64,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, 6),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-corner-right.png",
priority = "extra-high",
width = 64,
height = 128,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, 7),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-corner-right-shadow.png",
priority = "extra-high",
width = 62,
height = 60,
repeat_count = 2,
tint = attributes.tint,
shift = util.by_pixel(14, 28),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-corner-right-shadow.png",
priority = "extra-high",
width = 124,
height = 120,
tint = attributes.tint,
repeat_count = 2,
shift = util.by_pixel(17, 28),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
corner_left_down =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-corner-left.png",
priority = "extra-high",
width = 32,
height = 68,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, 6),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-corner-left.png",
priority = "extra-high",
width = 64,
height = 134,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, 7),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-corner-left-shadow.png",
priority = "extra-high",
width = 54,
height = 60,
repeat_count = 2,
tint = attributes.tint,
shift = util.by_pixel(8, 28),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-corner-left-shadow.png",
priority = "extra-high",
width = 102,
height = 120,
repeat_count = 2,
tint = attributes.tint,
shift = util.by_pixel(9, 28),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
t_up =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-t.png",
priority = "extra-high",
width = 32,
height = 68,
variation_count = 4,
tint = attributes.tint,
line_length = 4,
shift = util.by_pixel(0, 6),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-t.png",
priority = "extra-high",
width = 64,
height = 134,
variation_count = 4,
tint = attributes.tint,
line_length = 4,
shift = util.by_pixel(0, 7),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-t-shadow.png",
priority = "extra-high",
width = 62,
height = 60,
repeat_count = 4,
tint = attributes.tint,
shift = util.by_pixel(14, 28),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-t-shadow.png",
priority = "extra-high",
width = 124,
height = 120,
tint = attributes.tint,
repeat_count = 4,
shift = util.by_pixel(14, 28),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
ending_right =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-ending-right.png",
priority = "extra-high",
width = 32,
height = 48,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, -4),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-ending-right.png",
priority = "extra-high",
width = 64,
height = 92,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, -3),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-ending-right-shadow.png",
priority = "extra-high",
width = 62,
height = 36,
tint = attributes.tint,
repeat_count = 2,
shift = util.by_pixel(14, 14),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-ending-right-shadow.png",
priority = "extra-high",
width = 124,
height = 68,
tint = attributes.tint,
repeat_count = 2,
shift = util.by_pixel(17, 15),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
ending_left =
{
layers =
{
{
filename = "__base__/graphics/entity/wall/wall-ending-left.png",
priority = "extra-high",
width = 32,
height = 48,
variation_count = 2,
tint = attributes.tint,
line_length = 2,
shift = util.by_pixel(0, -4),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-ending-left.png",
priority = "extra-high",
width = 64,
height = 92,
variation_count = 2,
line_length = 2,
tint = attributes.tint,
shift = util.by_pixel(0, -3),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-ending-left-shadow.png",
priority = "extra-high",
width = 54,
height = 36,
tint = attributes.tint,
repeat_count = 2,
shift = util.by_pixel(8, 14),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-ending-left-shadow.png",
priority = "extra-high",
width = 102,
height = 68,
repeat_count = 2,
tint = attributes.tint,
shift = util.by_pixel(9, 15),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
filling =
{
filename = "__base__/graphics/entity/wall/wall-filling.png",
priority = "extra-high",
width = 24,
height = 30,
variation_count = 8,
tint = attributes.tint,
line_length = 8,
shift = util.by_pixel(0, -2),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-filling.png",
priority = "extra-high",
width = 48,
height = 56,
variation_count = 8,
tint = attributes.tint,
line_length = 8,
shift = util.by_pixel(0, -1),
scale = 0.5
}
},
water_connection_patch =
{
sheets =
{
{
filename = "__base__/graphics/entity/wall/wall-patch.png",
priority = "extra-high",
width = 58,
height = 64,
tint = attributes.tint,
shift = util.by_pixel(0, -2),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-patch.png",
priority = "extra-high",
width = 116,
height = 128,
tint = attributes.tint,
shift = util.by_pixel(0, -2),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-patch-shadow.png",
priority = "extra-high",
width = 74,
height = 52,
tint = attributes.tint,
shift = util.by_pixel(8, 14),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-patch-shadow.png",
priority = "extra-high",
width = 144,
height = 100,
tint = attributes.tint,
shift = util.by_pixel(9, 15),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
gate_connection_patch =
{
sheets =
{
{
filename = "__base__/graphics/entity/wall/wall-gate.png",
priority = "extra-high",
width = 42,
height = 56,
tint = attributes.tint,
shift = util.by_pixel(0, -8),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-gate.png",
priority = "extra-high",
width = 82,
height = 108,
tint = attributes.tint,
shift = util.by_pixel(0, -7),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/wall/wall-gate-shadow.png",
priority = "extra-high",
width = 66,
height = 40,
tint = attributes.tint,
shift = util.by_pixel(14, 18),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-gate-shadow.png",
priority = "extra-high",
width = 130,
height = 78,
tint = attributes.tint,
shift = util.by_pixel(14, 18),
draw_as_shadow = true,
scale = 0.5
}
}
}
}
},
wall_diode_green = {
sheet =
{
filename = "__base__/graphics/entity/wall/wall-diode-green.png",
priority = "extra-high",
width = 38,
height = 24,
--frames = 4, -- this is optional, it will default to 4 for Sprite4Way
shift = util.by_pixel(-2, -24),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-diode-green.png",
priority = "extra-high",
width = 72,
height = 44,
--frames = 4,
shift = util.by_pixel(-1, -23),
scale = 0.5
}
}
},
wall_diode_green_light_top = {
minimum_darkness = 0.3,
color = {g=1},
shift = util.by_pixel(0, -30),
size = 1,
intensity = 0.3
},
wall_diode_green_light_right = {
minimum_darkness = 0.3,
color = {g=1},
shift = util.by_pixel(12, -23),
size = 1,
intensity = 0.3
},
wall_diode_green_light_bottom = {
minimum_darkness = 0.3,
color = {g=1},
shift = util.by_pixel(0, -17),
size = 1,
intensity = 0.3
},
wall_diode_green_light_left = {
minimum_darkness = 0.3,
color = {g=1},
shift = util.by_pixel(-12, -23),
size = 1,
intensity = 0.3
},
wall_diode_red = {
sheet =
{
filename = "__base__/graphics/entity/wall/wall-diode-red.png",
priority = "extra-high",
width = 38,
height = 24,
--frames = 4, -- this is optional, it will default to 4 for Sprite4Way
shift = util.by_pixel(-2, -24),
hr_version =
{
filename = "__base__/graphics/entity/wall/hr-wall-diode-red.png",
priority = "extra-high",
width = 72,
height = 44,
--frames = 4,
shift = util.by_pixel(-1, -23),
scale = 0.5
}
}
},
wall_diode_red_light_top = {
minimum_darkness = 0.3,
color = {r=1},
shift = util.by_pixel(0, -30),
size = 1,
intensity = 0.3
},
wall_diode_red_light_right = {
minimum_darkness = 0.3,
color = {r=1},
shift = util.by_pixel(12, -23),
size = 1,
intensity = 0.3
},
wall_diode_red_light_bottom = {
minimum_darkness = 0.3,
color = {r=1},
shift = util.by_pixel(0, -17),
size = 1,
intensity = 0.3
},
wall_diode_red_light_left = {
minimum_darkness = 0.3,
color = {r=1},
shift = util.by_pixel(-12, -23),
size = 1,
intensity = 0.3
},
circuit_wire_connection_point = circuit_connector_definitions["gate"].points,
circuit_connector_sprites = circuit_connector_definitions["gate"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
default_output_signal = data.is_demo and {type = "virtual", name = "signal-green"} or {type = "virtual", name = "signal-G"}
}
})
return name, itemName
end
function wallUtils.makeGate(attributes, attack)
local name = attributes.name .. "-gate-rampant-arsenal"
local itemName = attributes.name .. "-gate-rampant-arsenal"
data:extend({
{
type = "item",
name = itemName,
icon = attributes.icon or "__base__/graphics/icons/gun-turret.png",
icon_size = 32,
flags = attributes.itemFlags or {},
subgroup = attributes.subgroup or "defensive-structure",
order = attributes.order or "b[turret]-a[gun-turret]",
place_result = name,
stack_size = attributes.stackSize or 200
},
{
type = "gate",
name = name,
icon = attributes.icon or "__base__/graphics/icons/gate.png",
icon_size = 32,
flags = {"placeable-neutral","placeable-player", "player-creation"},
fast_replaceable_group = "wall",
minable = {hardness = 0.2, mining_time = 0.5, result = name},
max_health = attributes.health or 350,
healing_per_tick = attributes.healing or 0.04,
attack_reaction = attack,
corpse = "small-remnants",
collision_box = {{-0.29, -0.29}, {0.29, 0.29}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
opening_speed = 0.0666666,
activation_distance = 3,
timeout_to_close = 5,
fadeout_interval = 15,
resistances = attributes.resistances or
{
{
type = "physical",
decrease = 3,
percent = 20
},
{
type = "impact",
decrease = 45,
percent = 60
},
{
type = "explosion",
decrease = 10,
percent = 30
},
{
type = "fire",
percent = 100
},
{
type = "laser",
percent = 70
}
},
vertical_animation =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-vertical.png",
line_length = 8,
width = 38,
height = 62,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -14),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-vertical.png",
line_length = 8,
width = 78,
height = 120,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(-1, -13),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-vertical-shadow.png",
line_length = 8,
width = 40,
height = 54,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(10, 8),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-vertical-shadow.png",
line_length = 8,
width = 82,
height = 104,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(9, 9),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
horizontal_animation =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-horizontal.png",
line_length = 8,
width = 34,
height = 48,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -4),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-horizontal.png",
line_length = 8,
width = 66,
height = 90,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -3),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-horizontal-shadow.png",
line_length = 8,
width = 62,
height = 30,
frame_count = 16,
shift = util.by_pixel(12, 10),
tint = attributes.tint,
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-horizontal-shadow.png",
line_length = 8,
width = 122,
height = 60,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(12, 10),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
horizontal_rail_animation_left =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-rail-horizontal-left.png",
line_length = 8,
width = 34,
height = 40,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -8),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-horizontal-left.png",
line_length = 8,
width = 66,
height = 74,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -7),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-rail-horizontal-shadow-left.png",
line_length = 8,
width = 62,
height = 30,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(12, 10),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-horizontal-shadow-left.png",
line_length = 8,
width = 122,
height = 60,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(12, 10),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
horizontal_rail_animation_right =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-rail-horizontal-right.png",
line_length = 8,
width = 34,
height = 40,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, -8),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-horizontal-right.png",
line_length = 8,
width = 66,
height = 74,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, -7),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-rail-horizontal-shadow-right.png",
line_length = 8,
width = 62,
height = 30,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(12, 10),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-horizontal-shadow-right.png",
line_length = 8,
width = 122,
height = 58,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(12, 11),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
vertical_rail_animation_left =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-rail-vertical-left.png",
line_length = 8,
width = 22,
height = 62,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, -14),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-vertical-left.png",
line_length = 8,
width = 42,
height = 118,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, -13),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-rail-vertical-shadow-left.png",
line_length = 8,
width = 44,
height = 54,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(8, 8),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-vertical-shadow-left.png",
line_length = 8,
width = 82,
height = 104,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(9, 9),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
vertical_rail_animation_right =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-rail-vertical-right.png",
line_length = 8,
width = 22,
height = 62,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -14),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-vertical-right.png",
line_length = 8,
width = 42,
height = 118,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, -13),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-rail-vertical-shadow-right.png",
line_length = 8,
width = 44,
height = 54,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(8, 8),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-vertical-shadow-right.png",
line_length = 8,
width = 82,
height = 104,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(9, 9),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
vertical_rail_base =
{
filename = "__base__/graphics/entity/gate/gate-rail-base-vertical.png",
line_length = 8,
width = 68,
height = 66,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(0, 0),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-base-vertical.png",
line_length = 8,
width = 138,
height = 130,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(-1, 0),
scale = 0.5
}
},
horizontal_rail_base =
{
filename = "__base__/graphics/entity/gate/gate-rail-base-horizontal.png",
line_length = 8,
width = 66,
height = 54,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, 2),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-rail-base-horizontal.png",
line_length = 8,
width = 130,
height = 104,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, 3),
scale = 0.5
}
},
wall_patch =
{
layers =
{
{
filename = "__base__/graphics/entity/gate/gate-wall-patch.png",
line_length = 8,
width = 34,
height = 48,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(0, 12),
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-wall-patch.png",
line_length = 8,
width = 70,
height = 94,
tint = attributes.tint,
frame_count = 16,
shift = util.by_pixel(-1, 13),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/gate/gate-wall-patch-shadow.png",
line_length = 8,
width = 44,
height = 38,
frame_count = 16,
tint = attributes.tint,
shift = util.by_pixel(8, 32),
draw_as_shadow = true,
hr_version =
{
filename = "__base__/graphics/entity/gate/hr-gate-wall-patch-shadow.png",
line_length = 8,
width = 82,
tint = attributes.tint,
height = 72,
frame_count = 16,
shift = util.by_pixel(9, 33),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
open_sound =
{
variations = { filename = "__base__/sound/gate1.ogg", volume = 0.5 },
aggregation =
{
max_count = 1,
remove = true
}
},
close_sound =
{
variations = { filename = "__base__/sound/gate1.ogg", volume = 0.5 },
aggregation =
{
max_count = 1,
remove = true
}
}
}
})
return name, itemName
end
return wallUtils
|
local Native = require('lib.native.native')
---@class AnimType
local AnimType = {
Birth = Native.ConvertAnimType(0), --ANIM_TYPE_BIRTH
Death = Native.ConvertAnimType(1), --ANIM_TYPE_DEATH
Decay = Native.ConvertAnimType(2), --ANIM_TYPE_DECAY
Dissipate = Native.ConvertAnimType(3), --ANIM_TYPE_DISSIPATE
Stand = Native.ConvertAnimType(4), --ANIM_TYPE_STAND
Walk = Native.ConvertAnimType(5), --ANIM_TYPE_WALK
Attack = Native.ConvertAnimType(6), --ANIM_TYPE_ATTACK
Morph = Native.ConvertAnimType(7), --ANIM_TYPE_MORPH
Sleep = Native.ConvertAnimType(8), --ANIM_TYPE_SLEEP
Spell = Native.ConvertAnimType(9), --ANIM_TYPE_SPELL
Portrait = Native.ConvertAnimType(10), --ANIM_TYPE_PORTRAIT
}
return AnimType
|
local self = {}
GLib.IDisposable = GLib.MakeConstructor (self)
--[[
Events:
Disposed ()
Fired when this object has been disposed.
]]
function self:ctor ()
self.Disposed = false
end
function self:dtor ()
self:Dispose ()
end
function self:Dispose ()
if self:IsDisposed () then return end
self.Disposed = true
if self.DispatchEvent then
self:DispatchEvent ("Disposed")
end
self:dtor ()
end
function self:IsDisposed ()
return self.Disposed
end
function self:IsValid ()
return not self.Disposed
end |
local view = require 'launch.util.view'
local state = require 'launch.util.view.state'
local component = require 'launch.util.view.component'
local bindings_gateway = require 'launch.util.view.bindings_gateway'
local seq = require 'launch.util.seq'
local block = component.block
describe('component', function ()
it('calls the callback when the returned function is invoked', function ()
local trigger = false
component(function () trigger = true end)()
assert.is_true(trigger)
end)
it('passes all keyword parameters from the invocation to the callback', function ()
component(function (props)
assert.equal(1, props.a)
assert.equal(2, props.b)
end)({ a = 1, b = 2 })
end)
it('passes all positional parameters from the invocation on the `children` field', function ()
component(function (props)
assert.are.same({1,2,3}, props.children)
end)({ 1, 2, 3 })
end)
it('can be rendered to a list', function ()
local result = component.render(function ()
return block {
'hello',
'world'
}
end)
assert.are.same({'hello', 'world'}, seq.from(result):collect())
end)
it('flattens down nested components to a single list when rendered', function ()
local result = component.render(function ()
return block {
'hello',
block {
'you',
'handsome',
'being'
}
}
end)
assert.are.same({'hello', 'you', 'handsome', 'being'}, seq.from(result):collect())
end)
it('collects keybindings on a `bindings` field', function ()
local fn = function () end
local result = component.render(component(function ()
return {}
end), {
on = {
[" "] = fn
}
})
assert.equal(1, #result.bindings)
assert.equal(fn, result.bindings[1].handle)
assert.equal(' ', result.bindings[1].chord)
end)
it('tracks line numbers of keybindings', function ()
local result = component.render(function ()
return {
block {
on = {
[' '] = function () end
},
'pre'
},
'hello',
block {
on ={
[' '] = function () end
},
'mid'
},
'world',
block {
on = {
[' '] = function () end
},
'post',
'rows'
}
}
end)
assert.equal(3, #result.bindings)
assert.are.same({0,1}, result.bindings[1].range)
assert.are.same({2,3}, result.bindings[2].range)
assert.are.same({4,6}, result.bindings[3].range)
end)
it('collects on_hover definitions', function ()
local handle = function () end
local result = component.render(function ()
return {
'hello',
block {
on_hover = handle,
'world'
}
}
end)
assert.are.same({
{ handle = handle, range = {1, 2} }
}, result.hover_bindings)
end)
describe('block', function ()
it('returns its children', function ()
local c = block { 'hello', 'world' }
assert.are.same({ 'hello', 'world' }, seq.from(c):collect())
end)
it('inserts lines equal to margin_block_start before its children', function ()
local c = block {
margin_block_start = 2,
'hello, world'
}
assert.are.same({ '', '', 'hello, world' }, seq.from(c):collect())
end)
it('inserts lines equal to margin_block_end after its children', function ()
local c = block {
margin_block_end = 2,
'hello, world'
}
assert.are.same({ 'hello, world', '', '' }, seq.from(c):collect())
end)
end)
end)
describe('state', function ()
it('raises an error if the initial value is not a table', function ()
local result = pcall(function ()
state.new(1)
end)
assert.is_false(result)
end)
it('returns values of fields from the state', function ()
local s = state.new {
a = 1
}
assert.equals(1, s.a)
end)
it('can be subscribed to', function ()
local s = state.new {
a = 1
}
local trigger = false
state.subscribe(s, function ()
trigger = true
end)
s.a = 2
assert.is_true(trigger)
end)
it('converts tables on the initial state to proxy-objects', function ()
local s = state.new {
sub = {
a = 1,
subsub = {
b = 2
}
}
}
local trigger = false
state.subscribe(s.sub, function ()
trigger = true
end)
s.sub.a = 3
assert.is_true(trigger)
trigger = false
state.subscribe(s.sub.subsub, function ()
trigger = true
end)
s.sub.subsub.b = 3
assert.is_true(trigger)
end)
it('propagates change notifications upwards', function ()
local s = state.new {
sub = {
a = 1,
}
}
local trigger = false
state.subscribe(s, function ()
trigger = true
end)
s.sub.a = 3
assert.is_true(trigger)
end)
it('converts a table set after init to a proxy object', function ()
local trigger = false
local s = state.new { }
s.sub = { a = 1 }
state.subscribe(s, function () trigger = true end)
s.sub.a = 2
assert.is_true(trigger)
end)
it('has a helper to append an item to a list', function ()
local trigger = false
local s = state.new {
ls = {}
}
state.subscribe(s, function () trigger = true end)
state.append(s.ls, 1)
assert.is_true(trigger)
assert.equal(s.ls[1], 1)
end)
describe('.set', function ()
it('directly updates the internal state of the observable', function ()
local trigger = false
local s = state.new {
a = 1
}
state.subscribe(s, function () trigger = true end)
state.set(s, { b = 2 })
assert.is_true(trigger)
assert.equal(nil, s.a)
assert.equal(2, s.b)
end)
end)
describe('.plain', function ()
it('gets back the plain value of an observable', function ()
local s = state.new { __marker = true }
assert.equal(nil, rawget(s, '__marker'))
local p = state.plain(s)
assert.equal(true, rawget(p, '__marker'))
end)
it('returns back the value if its not an observable', function ()
assert.equal(1, state.plain(1))
local s = state.new { a = 1 }
assert.equal(1, state.plain(s.a)) -- s.a will return the plain value `1` (not an observable)
end)
end)
describe('.is_state', function ()
it('returns true if the argument is wrapped in an observable', function ()
assert.is_true(state.is_state(state.new({})))
end)
it('returns false if the argument is just a table', function ()
assert.is_false(state.is_state({}))
end)
end)
it('subscription returns an unsubscribe function that removes the callback', function ()
local s = state.new {
a = 1
}
local trigger = false
local unsubscribe = state.subscribe(s, function ()
trigger = true
end)
unsubscribe()
s.a = 2
assert.is_false(trigger)
end)
it('can be iterated over with seq', function ()
local s = state.new {
a = 1
}
assert.are.same({'a', 1}, seq.pairs(s):pop())
end)
end)
describe('view', function ()
it('renders into a buffer', function ()
local bufnr = vim.api.nvim_create_buf(false, true)
view(bufnr, function ()
return block {
'hello',
'world'
}
end)
assert.are.same({ 'hello', 'world' }, vim.api.nvim_buf_get_lines(bufnr, 0, -1, false))
end)
it('updates the buffer content when the state changes', function ()
local bufnr = vim.api.nvim_create_buf(false, true)
local v = view(bufnr, function (props)
return block {
'hello',
props.text
}
end, { text = 'world' })
v.state.text = 'you handsome being'
assert.are.same({ 'hello', 'you handsome being' }, vim.api.nvim_buf_get_lines(bufnr, 0, -1, false))
end)
it('registers keybindings', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
view(bufnr, function (props)
return block {
on = {
["asdf"] = function ()
trigger = true
end,
},
'hello',
props.text
}
end, { text = 'world' })
vim.cmd("normal asdf")
assert.is_true(trigger)
end)
it('executes bindings only when the cursor is on the correct line', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
view(bufnr, function (props)
return block {
'hello',
block {
on = {
["asdf"] = function ()
trigger = true
end,
},
props.text
}
}
end, { text = 'world' })
vim.cmd("normal asdf")
assert.is_false(trigger)
vim.fn.setpos('.', {bufnr, 2, 1, 0})
vim.cmd("normal asdf")
assert.is_true(trigger)
end)
it('executes all callbacks enclosing the cursor', function ()
local bufnr = vim.api.nvim_get_current_buf()
local counter = 0
local function increase_counter()
counter = counter + 1
end
view(bufnr, function (props)
return block {
on = {
["asdf"] = increase_counter
},
'hello',
block {
on = {
["asdf"] = increase_counter
},
props.text
}
}
end, { text = 'world' })
vim.fn.setpos('.', {bufnr, 2, 1, 0})
vim.cmd("normal asdf")
assert.equal(2, counter)
end)
it('executes the on_hover callback when the cursor is moved on the block', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
view(bufnr, function (props)
return {
'hello',
block {
on_hover = function ()
trigger = true
end,
'world'
}
}
end)
vim.fn.setpos('.', {bufnr, 1, 1, 0})
vim.cmd('normal! j')
vim.cmd('doautocmd CursorMoved')
assert.is_true(trigger)
end)
describe('.popup', function ()
it('sets given buffer local options', function ()
view.popup({
width = 20, height = 20, row = 0, col = 0,
buffer_config = {
ft = "TestBuffer"
}
}, function () return 'Hello, World' end, {})
assert.equal('TestBuffer', vim.o.ft)
end)
end)
end)
describe('bindings gateway', function ()
it('can register buffer local bindings for lua functions', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
bindings_gateway.register(bufnr, 'n', 'asdf', function ()
trigger = true
end)
vim.cmd("normal asdf")
assert.is_true(trigger)
end)
it('returns a callback to remove the binding', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
local unsubscribe = bindings_gateway.register(bufnr, 'n', 'asdf', function ()
trigger = true
end)
unsubscribe()
vim.cmd("normal asdf")
assert.is_false(trigger)
end)
it('can register event bindings for a buffer', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
bindings_gateway.event('CmdlineEnter', bufnr, function ()
trigger = true
end)
vim.cmd("normal :1<cr>")
assert.is_true(trigger)
end)
it('returns a callback from event registration to remove the registration', function ()
local bufnr = vim.api.nvim_get_current_buf()
local trigger = false
local unsubscribe = bindings_gateway.event('CmdlineEnter', bufnr, function ()
trigger = true
end)
unsubscribe()
vim.cmd("normal :1<cr>")
assert.is_false(trigger)
end)
end)
|
--[[
PROYECTO DE TITULO
Pamela Vilches Ivelic
]]
-- Used to represent the fraction signs
Object = Class{}
function Object:init(x, y, brick_size, module_n)
self.x = x + 32
self.y = y - 32
if brick_size == 1 then
self.denom = 4
elseif brick_size == 2 then
self.denom = 2
else
self.denom = 1
end
self.num = module_n * self.denom
end
function Object:update(dt)
-- Used to maybe animate the signs
end
function Object:render()
love.graphics.setFont(gFonts['small'])
love.graphics.setColor(255, 255, 255, 255)
love.graphics.print(self.num .. '/' .. self.denom, self.x, self.y)
end |
return function (utils, connection, httpservConfig, valuetable, badvalues)
local getRadioChecked = utils.getRadioChecked
local getTextFilledValue = utils.getTextFilledValue
local getRadioValue = utils.getRadioValue
local getTextColor = utils.getTextColor
local getInputTypeTextString = utils.getInputTypeTextString
local getInputTypeRadioString = utils.getInputTypeRadioString
local enabled = getRadioValue("httpservConfig.auth.enabled", valuetable) or httpservConfig.auth.enabled
local realm = "httpservConfig.auth.realm"
local user = "httpservConfig.auth.user"
local password = "httpservConfig.auth.password"
connection:send('Authorization:<br>\n')
connection:send(getInputTypeRadioString("httpservConfig.auth.enabled", "true", getRadioChecked(enabled, true), "Enabled"))
connection:send(getInputTypeRadioString("httpservConfig.auth.enabled", "false", getRadioChecked(enabled, false), "Disabled"))
connection:send('<br><table>\n')
connection:send(getInputTypeTextString('Realm (greeting):', httpservConfig.auth.realm, realm, getTextFilledValue(realm, valuetable), getTextColor(realm, badvalues)))
connection:send(getInputTypeTextString('User:' , httpservConfig.auth.user, user, getTextFilledValue(user, valuetable), getTextColor(user, badvalues)))
connection:send(getInputTypeTextString('Password:' , httpservConfig.auth.password, password, getTextFilledValue(password, valuetable), getTextColor(password, badvalues)))
connection:send('</table><br>\n')
end
|
return {'wredelijk','wreed','wreedaard','wreedaardig','wreedaardigheid','wreedheid','wreef','wreken','wreker','wreking','wrensen','wrevel','wrevelig','wreveligheid','wrevelmoed','wrevelmoedig','wrede','wreder','wreedaardige','wreedaardiger','wreedaardigste','wreedaards','wreedheden','wreedst','wreek','wreekt','wreekte','wreekten','wrekers','wrens','wrevele','wrevelige','wreveliger','wreven','wredere','wreedste','wrekende','wrevelmoedige','wrevels'} |
--双天の調伏
--
--Script by JustFish
function c101102059.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW+CATEGORY_REMOVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCountLimit(1,101102074+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c101102059.target)
e1:SetOperation(c101102059.activate)
c:RegisterEffect(e1)
end
function c101102059.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x24d)
end
function c101102059.ffilter(c,tp)
return c:IsPreviousSetCard(0x24d) and c:GetPreviousControler()==tp and c:GetPreviousTypeOnField()&TYPE_FUSION~=0
and c:IsPreviousPosition(POS_FACEUP)
end
function c101102059.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c101102059.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c101102059.cfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g2=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_GRAVE)
end
function c101102059.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tg=g:Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()>0 then
Duel.Destroy(tg,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
if og:IsExists(c101102059.ffilter,1,nil,tp) and Duel.SelectYesNo(tp,aux.Stringid(101102059,2)) then
local b1=Duel.IsPlayerCanDraw(tp,1)
local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil)
local sel=0
if b1 and b2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
sel=Duel.SelectOption(tp,aux.Stringid(101102059,0),aux.Stringid(101102059,1))+1
elseif b1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
sel=Duel.SelectOption(tp,aux.Stringid(101102059,0))+1
elseif b2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPTION)
sel=Duel.SelectOption(tp,aux.Stringid(101102059,1))+2
end
if sel==1 then
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
elseif sel==2 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToRemove),tp,0,LOCATION_GRAVE,1,1,nil)
if #g>0 then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end
end
end
end
end
|
object_tangible_food_spice_spice_shadowpaw_01 = object_tangible_food_spice_shared_spice_shadowpaw_01:new {
}
ObjectTemplates:addTemplate(object_tangible_food_spice_spice_shadowpaw_01, "object/tangible/food/spice/spice_shadowpaw_01.iff")
|
-----------------------------------------
-- ID: 5153
-- Item: plate_of_fatty_tuna_sushi
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 3
-- Charisma 5
-- Accuracy % 16 (cap 76)
-- Ranged ACC 16 (cap 76)
-- Sleep Resist 2
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
function onItemCheck(target)
local result = 0
if target:hasStatusEffect(tpz.effect.FOOD) or target:hasStatusEffect(tpz.effect.FIELD_SUPPORT_FOOD) then
result = tpz.msg.basic.IS_FULL
end
return result
end
function onItemUse(target)
target:addStatusEffect(tpz.effect.FOOD,0,0,3600,5153)
end
function onEffectGain(target,effect)
target:addMod(tpz.mod.HP, 20)
target:addMod(tpz.mod.DEX, 3)
target:addMod(tpz.mod.CHR, 5)
target:addMod(tpz.mod.FOOD_ACCP, 16)
target:addMod(tpz.mod.FOOD_ACC_CAP, 76)
target:addMod(tpz.mod.FOOD_RACCP, 16)
target:addMod(tpz.mod.FOOD_RACC_CAP, 76)
target:addMod(tpz.mod.SLEEPRES, 2)
end
function onEffectLose(target, effect)
target:delMod(tpz.mod.HP, 20)
target:delMod(tpz.mod.DEX, 3)
target:delMod(tpz.mod.CHR, 5)
target:delMod(tpz.mod.FOOD_ACCP, 16)
target:delMod(tpz.mod.FOOD_ACC_CAP, 76)
target:delMod(tpz.mod.FOOD_RACCP, 16)
target:delMod(tpz.mod.FOOD_RACC_CAP, 76)
target:delMod(tpz.mod.SLEEPRES, 2)
end
|
--[[
Test case
]]
local FileReader = require 'whale.io.FileReader'
local NeuralNetwork = require 'whale.ml.NeuralNetwork'
require 'whale.Matrix'
require 'whale.Vector'
classes = {}
classes["Iris-setosa"] = vector{1, 0, 0}
classes["Iris-versicolor"] = vector{0, 1, 0}
classes["Iris-virginica"] = vector{0, 0, 1}
local fn = function(line)
local id, sl, sw, pl, pw, c = line:match('(%S+),(%S+),(%S+),(%S+),(%S+),(%S+)')
return vector{tonumber(sl), tonumber(sw), tonumber(pl), tonumber(pw), classes[c]}
end
local data = matrix(FileReader.read("iris_example/Iris.csv", fn))
local X = mcopy(data)
-- first row is nil, contains headers
table.remove(X, 1)
local y = getDelCol(X, 5)
y.type = "matrix"
--printMatrix(y)
-- append theta0
--local col = vector({},#X,1)
--addCol(X,1,col)
local nn = NeuralNetwork:new{4, 4, 4, 3}
NeuralNetwork.cost(nn, X, y)
|
-- Copyright 2014 David Mentler
include( "struct.lua" )
include( "physmesh.lua" )
include( "bsp_constants.lua" )
-- Header
t_lump = struct(
t_int, "off",
t_int, "len",
t_int, "version",
skip( 4 )
)
t_header = struct(
t_int, "ident",
t_int, "version",
array( t_lump, 64 ), "lumps",
t_int, "revision"
)
-- Content
t_plane = struct(
t_vector, "normal",
t_float, "dist",
t_int, "type"
)
t_brushside = struct(
t_short, "plane",
t_short, "texinfo",
t_short, "dispinfo",
t_short, "bevel"
)
t_brush = struct(
t_int, "side_base",
t_int, "side_count",
t_int, "contents"
)
lump_planes = lump( LUMP_PLANES, t_plane )
lump_brushes = lump( LUMP_BRUSHES, t_brush )
lump_brushsides = lump( LUMP_BRUSHSIDES, t_brushside )
local stream = file.Open( "maps/" .. game.GetMap() .. ".bsp", "rb", "GAME" )
if ( stream != nil ) then
timer.Simple(0, function() stream:Close() end )
end
-- Read header
local header = t_header( stream )
-- Read raw entity data
local lump_ents = header.lumps[LUMP_ENTITIES +1]
stream:Seek( lump_ents.off )
local ents_raw = stream:Read( lump_ents.len )
-- Decode entity data
local ents = {}
local index = 1
ents_raw:gsub( "{(.-)}", function( entry )
local data = {}
entry:gsub( "\"(.-)\"%s*\"(.-)\"", function( key, value )
local prev = data[key]
if !prev then
data[key] = value
else
if type(prev) == "table" then
table.insert( prev, value )
else
data[key] = { prev, value }
end
end
end )
ents[index] = data
index = index +1
end )
-- Read raw plane data
local planes = lump_planes( stream, header )
local brush_sides = lump_brushsides( stream, header )
local brush_raw = lump_brushes( stream, header )
-- Relink brushes
local brushes = {}
for index, raw in pairs( brush_raw ) do
if ( bit.band( raw.contents, CONTENTS_DETAIL ) == 0 ) then
continue
end
local brush = {}
local off = raw.side_base
local count = raw.side_count
for index = 1, count do
brush[index] = planes[ brush_sides[off + index].plane +1 ]
end
brushes[index] = physmesh.PlanesToConvex( brush )
end
local wire = Material( "models/wireframe" )
hook.Add( "PostDrawOpaqueRenderables", "BSP - DrawBrushes", function()
render.SetMaterial( wire )
for _, brush in pairs( brushes ) do
local tris = #brush /3
mesh.Begin( MATERIAL_TRIANGLES, tris )
for index = 1, #brush do
mesh.Position( brush[index] )
mesh.AdvanceVertex()
end
mesh.End()
end
end )
|
local Util = {}
local Common = game.ReplicatedStorage.Pioneers.Common
local World = require(Common.World)
local Tile = require(Common.Tile)
local Unit = require(Common.Unit)
local TILESPACING = 10 --Distance from center of hexagon to edge vertex
local EDGESPACING = TILESPACING * (0.5 * 3^.5)
local YOFFSET = EDGESPACING * 2 * Vector3.new(1, 0, 0)
local XOFFSET = EDGESPACING * 2 * Vector3.new(-0.5, 0, 0.866)
local PARTITIONSIZE = 20
Util.PARTITIONSIZE = PARTITIONSIZE
local getTileXY = World.getTileXY
local format = string.format
function Util.axialCoordToWorldCoord(position)
return position.y * YOFFSET + position.x * XOFFSET
end
function Util.worldCoordToAxialCoord(position)
local x = math.floor(position.z / XOFFSET.z + 0.5)
local y = math.floor((position.x - XOFFSET.x * x) / YOFFSET.x + 0.5)
return Vector2.new(x, y)
end
function Util.positionStringToVector(posStr)
local x, y = unpack(string.split(posStr, ':'))
return Vector2.new(tonumber(x), tonumber(y))
end
function Util.vectorToPositionString(pos)
return pos.x..":"..pos.y
end
function Util.worldVectorToAxialPositionString(pos)
return Util.vectorToPositionString(Util.worldCoordToAxialCoord(pos))
end
function Util.circularCollection(tiles, posx, posy, startRadius, endRadius)
local collection = {}
if startRadius == 0 then
table.insert(collection, getTileXY(tiles, posx, posy))
end
for radius = startRadius, endRadius do
for i = 0, radius-1 do
table.insert(collection, getTileXY(tiles, posx + i, posy + radius))
table.insert(collection, getTileXY(tiles, posx + radius, posy + radius - i))
table.insert(collection, getTileXY(tiles, posx + radius - i, posy - i))
table.insert(collection, getTileXY(tiles, posx - i, posy - radius))
table.insert(collection, getTileXY(tiles, posx - radius, posy - radius + i))
table.insert(collection, getTileXY(tiles, posx - radius + i, posy + i))
end
end
return collection
end
function Util.circularPosCollection(posx, posy, startRadius, endRadius)
debug.profilebegin("circularPosCollection")
local collection = {}
if startRadius == 0 then
table.insert(collection, posx .. ":" .. posy)
end
for radius = startRadius, endRadius do
for i = 0, radius-1 do
table.insert(collection, string.format("%d:%d", (posx + i), (posy + radius)))
table.insert(collection, string.format("%d:%d", (posx + radius), (posy + radius - i)))
table.insert(collection, string.format("%d:%d", (posx + radius - i), (posy - i)))
table.insert(collection, string.format("%d:%d", (posx - i), (posy - radius)))
table.insert(collection, string.format("%d:%d", (posx - radius), (posy - radius + i)))
table.insert(collection, string.format("%d:%d", (posx - radius + i), (posy + i)))
end
end
debug.profileend()
return collection
end
--In Util as requires both Tile and Unit
function Util.worksOnTileType(unit, tileType)
if not unit then return end
local unitType = unit.Type
if tileType == Tile.FARM and unitType == Unit.FARMER then
return true
elseif tileType == Tile.FORESTRY and unitType == Unit.LUMBERJACK then
return true
elseif tileType == Tile.MINE and unitType == Unit.MINER then
return true
elseif tileType == Tile.BARRACKS and Unit.isMilitary(unit) and unit.State == Unit.UnitState.TRAINING then
return true
end
end
function Util.findPartitionId(x, y)
local x = math.floor(x / PARTITIONSIZE)
local y = math.floor(y / PARTITIONSIZE)
x = x >= 0 and x * 2 or -x * 2 - 1
y = y >= 0 and y * 2 or -y * 2 - 1
return tostring(0.5 * (x + y) * (x + y + 1) + y)
end
function Util.partitionIdToCoordinates(id)
id = tonumber(id)
local w = math.floor(((8 * id + 1)^.5 - 1) / 2)
local t = (w^2 + w) / 2
local y = id - t
local x = w - y
x = x%2>0 and (x + 1) / -2 or x / 2
y = y%2>0 and (y + 1) / -2 or y / 2
return x * PARTITIONSIZE, y * PARTITIONSIZE
end
function Util.findOverlappedPartitions(position)
local vec = Util.positionStringToVector(position)
local viewDistance = 30
local xmax = vec.x + viewDistance
local xmin = vec.x - viewDistance
local ymax = vec.y + viewDistance
local ymin = vec.y - viewDistance
local overlappedPartitions = {}
for x = xmin, xmax, PARTITIONSIZE do
for y = ymin, ymax, PARTITIONSIZE do
table.insert(overlappedPartitions, Util.findPartitionId(x, y))
end
end
return overlappedPartitions
end
function Util.tableCopy(copyTable)
local newTable = {}
for i, v in pairs(copyTable) do
newTable[i] = v
end
return newTable
end
return Util |
modifier_enchantress_enchant_lua = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_enchantress_enchant_lua:IsHidden()
return false
end
function modifier_enchantress_enchant_lua:IsDebuff()
return false
end
function modifier_enchantress_enchant_lua:IsPurgable()
return false
end
--------------------------------------------------------------------------------
-- Initializations
function modifier_enchantress_enchant_lua:OnCreated( kv )
if IsServer() then
local parent = self:GetParent()
local caster = self:GetCaster()
-- set controllable
parent:SetTeam( caster:GetTeamNumber() )
parent:SetOwner( caster )
parent:SetControllableByPlayer( caster:GetPlayerOwnerID(), true )
end
end
function modifier_enchantress_enchant_lua:OnRefresh( kv )
end
function modifier_enchantress_enchant_lua:OnDestroy( kv )
if IsServer() then
self:GetParent():ForceKill( false )
end
end
--------------------------------------------------------------------------------
-- Modifier Effects
-- function modifier_enchantress_enchant_lua:DeclareFunctions()
-- local funcs = {
-- MODIFIER_PROPERTY_XX,
-- MODIFIER_EVENT_YY,
-- }
-- return funcs
-- end
--------------------------------------------------------------------------------
-- Status Effects
function modifier_enchantress_enchant_lua:CheckState()
local state = {
[MODIFIER_STATE_DOMINATED] = true,
}
return state
end
--------------------------------------------------------------------------------
-- Interval Effects
-- function modifier_enchantress_enchant_lua:OnIntervalThink()
-- end
--------------------------------------------------------------------------------
-- Graphics & Animations
-- function modifier_enchantress_enchant_lua:GetEffectName()
-- return "particles/string/here.vpcf"
-- end
-- function modifier_enchantress_enchant_lua:GetEffectAttachType()
-- return PATTACH_ABSORIGIN_FOLLOW
-- end
-- function modifier_enchantress_enchant_lua:PlayEffects()
-- -- Get Resources
-- local particle_cast = "string"
-- local sound_cast = "string"
-- -- Get Data
-- -- Create Particle
-- local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_NAME, hOwner )
-- ParticleManager:SetParticleControl( effect_cast, iControlPoint, vControlVector )
-- ParticleManager:SetParticleControlEnt(
-- effect_cast,
-- iControlPoint,
-- hTarget,
-- PATTACH_NAME,
-- "attach_name",
-- vOrigin, -- unknown
-- bool -- unknown, true
-- )
-- ParticleManager:SetParticleControlForward( effect_cast, iControlPoint, vForward )
-- SetParticleControlOrientation( effect_cast, iControlPoint, vForward, vRight, vUp )
-- ParticleManager:ReleaseParticleIndex( effect_cast )
-- -- buff particle
-- self:AddParticle(
-- nFXIndex,
-- bDestroyImmediately,
-- bStatusEffect,
-- iPriority,
-- bHeroEffect,
-- bOverheadEffect
-- )
-- -- Create Sound
-- EmitSoundOnLocationWithCaster( vTargetPosition, sound_location, self:GetCaster() )
-- EmitSoundOn( sound_target, target )
-- end |
function times(C,D)
local A = newlm(C)
local B = newlm(D)
local m =A:size()[1]
local n = A:size()[2]
local p = B:size()[1]
local q = B:size()[2]
local result
if(n==p)then
result=sp1(A.tensor,B.tensor)
return newlm(result)
elseif (n%p==0)then
result=sp1(A.tensor,B.tensor)
return newlm(result)
elseif(p%n==0)then
result=sp1(A.tensor,B.tensor)
return newlm(result)
else
error("INput argument error")
end
end
|
--[[
File: sh_sound.lua
Author: toneo
Realm: Shared
This file handles sounds which are played directly on the client.
]]--
if SERVER then
module( "netsound", package.seeall )
util.AddNetworkString( "PlaySound" )
function PlayToAll( sound )
net.Start( "PlaySound" )
net.WriteString( sound )
net.Broadcast()
end
else
net.Receive( "PlaySound", function( length )
local sound = net.ReadString()
surface.PlaySound( sound )
end )
end |
-- Prevent from script error when no action is given
if not _ACTION then
printf "Error: No action defined!"
return
end
-- Check for supported OS and action
if os.is( "windows" ) then
isWindows = true
if string.startswith(_ACTION, "vs") then
isVisualStudio = true
else
printf "Warning: Not tested for this action yet!"
end
-- OpenAL Soft's have's
oal_soft_have = { WINMM=true, DSOUND=true, -- audio
-- todo: which of these are compiler specific ?
STAT=true, POWF=true, SQRTF=true, ACOSF=true,
ATANF=true, FABSF=true, __INT64=true, FLOAT_H=true, _CONTROLFP=true }
elseif os.is( "linux" ) then
isLinux = true
printf "Warning: Untested, probably needs adaption!"
-- OpenAL Soft's have's
-- todo: add the ones available
oal_soft_have = { ALSA=true, OSS=true }
elseif os.is( "macosx" ) then
isMac = true
printf "Warning: Untested, probably needs adaption!"
-- OpenAL Soft's have's
-- todo: add the ones available
oal_soft_have = { PORTAUDIO=true, PULSEAUDIO=true } -- fixme: decide on one or both ?
else
printf "Error: Your OS is not supported yet"
return
end
-- Some Paths
rootPath = "../.."
objectDir = "out/obj"
libDir = "out"
binaryDir = rootPath .. "/Binaries"
librariesPath = rootPath .. "/Libraries"
libIncludePath = librariesPath .. "/Include/og"
libSourcePath = librariesPath .. "/Source/og"
examplesPath = rootPath .. "/Examples"
toolsPath = rootPath .. "/Tools"
-- Thirdparty Paths
thirdPartyPath = rootPath .. "/Thirdparty"
zlibPath = thirdPartyPath .. "/zlib"
liblfdsPath = thirdPartyPath .. "/liblfds"
pngPath = thirdPartyPath .. "/libpng"
jpegPath = thirdPartyPath .. "/jpeg"
oggPath = thirdPartyPath .. "/ogg"
vorbisPath = thirdPartyPath .. "/vorbis"
oalPath = thirdPartyPath .. "/AL"
-- OpenAL Soft config generation:
dofile "Thirdparty/oal_config.lua"
-- The Solutions
dofile "Thirdparty/Thirdparty.lua"
dofile "Libraries/Libraries.lua"
dofile "Examples/Examples.lua"
dofile "Tools/Tools.lua" |
local nmap = require('utils').nmap
local cmp = require('cmp')
local lsp = require('lspconfig')
nmap('<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>')
nmap('<leader>rf', '<cmd>lua vim.lsp.buf.references()<cr>')
nmap('K', '<cmd>lua vim.lsp.buf.hover()<cr>')
nmap('gd', '<cmd>lua vim.lsp.buf.definition()<cr>')
nmap('<leader>e', '<cmd>lua vim.diagnostic.goto_next()<cr>')
cmp.setup({
mapping = {
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-e>'] = cmp.mapping.close(),
["<c-space>"] = cmp.mapping.complete(),
["<Tab>"] = function(fallback)
if cmp.visible() then
cmp.select_next_item()
else
fallback()
end
end,
["<S-Tab>"] = function(fallback)
if cmp.visible() then
cmp.select_prev_item()
else
fallback()
end
end,
},
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
sources = cmp.config.sources(
{{ name = 'nvim_lsp' }},
{
{ name = 'buffer' },
{ name = "path" },
{ name = "luasnip" },
}),
experimental = {
native_menu = false,
ghost_text = true,
},
})
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
-- Go
lsp["gopls"].setup({
capabilities = capabilities
})
-- C/C++
lsp["clangd"].setup({
capabilities = capabilities
})
-- Python
lsp["jedi_language_server"].setup({
capabilities = capabilities
})
-- JS/TS
lsp["tsserver"].setup({
capabilities = capabilities
})
-- HTML
lsp["html"].setup({
capabilities = capabilities
})
-- CSS
lsp["cssls"].setup({
capabilities = capabilities
})
|
local Draw = require("api.Draw")
local Ui = require("api.Ui")
local IUiElement = require("api.gui.IUiElement")
local ISettable = require("api.gui.ISettable")
local I18N = require("api.I18N")
local ISidebarView = require("api.gui.menu.ISidebarView")
local UiHelpMarkup = require("api.gui.UiHelpMarkup")
local UiTheme = require("api.gui.UiTheme")
local HelpMenuView = class.class("HelpMenuView", {IUiElement, ISettable, ISidebarView})
-- string.split is dumb and doesn't support delimiters with more than 1
-- character...
local function split(str, delimiter)
local result = {}
local from = 1
local delim_from, delim_to = string.find(str, delimiter, from)
while delim_from do
result[#result+1] = string.sub(str, from, delim_from-1)
from = delim_to + 1
delim_from, delim_to = string.find(str, delimiter, from)
end
result[#result+1] = string.sub(str, from)
return result
end
function HelpMenuView:init()
local text = I18N.get_optional("ui.help.manual")
if text == nil then
error("No manual available for language " .. I18N.language_id())
end
self.sections = split(text, "{}")
table.remove(self.sections, 1) -- Remove leading comments
local remove = {}
for i, v in ipairs(self.sections) do
if v == "" then
remove[#remove+1] = i
end
end
table.remove_indices(self.sections, remove)
self.sections = fun.iter(self.sections)
:map(function(sec)
local pos = string.find(sec, "\n")
local title, body = string.split_at_pos(sec, pos)
body = string.strip_whitespace(body)
return { title = title, body = body }
end)
:to_list()
self.section = ""
self.markup = nil
self.cache = {}
self.canvas = nil
end
function HelpMenuView:set_data(section)
if self.width == nil then
return
end
self.section = section
local markup = self.cache[self.section]
if markup == nil then
local entry = self.sections[self.section]
local text
if entry then
text = entry.body
else
text = ("Error: Missing help section '%s'"):format(self.section)
end
markup = UiHelpMarkup:new(text, 14, true)
self.cache[self.section] = markup
end
self.markup = markup
self.redraw = true
end
function HelpMenuView:get_sidebar_entries()
return fun.iter(self.sections)
:enumerate()
:map(function(i, sec) return { text = sec.title, data = i } end)
:to_list()
end
function HelpMenuView:relayout(x, y, width, height)
self.x = x
self.y = y
self.width = width
self.height = height
self.t = UiTheme.load(self)
if self.canvas == nil or width ~= self.width or height ~= self.height then
self.canvas = Draw.create_canvas(self.width, self.height)
self.redraw = true
end
self:set_data(1)
end
function HelpMenuView:draw()
if self.redraw then
self.markup:relayout(self.x, self.y, self.width, self.height)
self.markup:set_color(self.t.elona.help_markup_text_color)
self.redraw = false
end
self.markup:draw()
end
function HelpMenuView:update()
end
return HelpMenuView
|
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
local mat = Material("phoenix_storms/FuturisticTrackRamp_1-2")
function ENT:Initialize()
local ent = ents.Create("prop_dynamic")
ent:SetModel("models/props_doomsday/rocket_socket_doomsday.mdl")
ent:SetPos(self:LocalToWorld(Vector(80,0,469)))
ent:SetAngles(self:LocalToWorldAngles(Angle(0,90,0)))
ent:Spawn()
ent:SetParent(self)
ent:SetModelScale(0.25)
local ent2 = ents.Create("prop_dynamic")
ent2:SetModel("models/weapons/w_models/w_rocket_airstrike/w_rocket_airstrike.mdl")
ent2:SetPos(self:LocalToWorld(Vector(0,0,464)))
ent2:SetAngles(self:LocalToWorldAngles(Angle(270,0,0)))
ent2:Spawn()
ent2:SetMaterial(mat)
ent2:SetModelScale(8)
ent2:SetColor(Color(120,120,120))
ent2:SetParent(self)
self.Missile = ent2
self.Team = 0
self.CapturePower = 0
self.Power = 0
self.PT = 0
self:SetNWFloat("Power",0)
self:SetNWFloat("CapPower",0)
self.C = 0
end
function ENT:Launch()
local target = nil
if self.Team == 2 then
target = CombineBase
elseif self.Team == 3 then
target = RebleBase
end
if !target then return end -- ehhhh
local mis = ents.Create("ent_hitmissile")
mis:SetModel("models/weapons/w_models/w_rocket_airstrike/w_rocket_airstrike.mdl")
mis:SetPos(self:LocalToWorld(Vector(0,0,464)))
mis:SetAngles(self:LocalToWorldAngles(Angle(270,0,0)))
mis.Target = target
mis:PhysicsInit(SOLID_VPHYSICS)
mis:SetMoveType(MOVETYPE_VPHYSICS)
mis:SetSolid(SOLID_VPHYSICS)
mis:Spawn()
local startWidth,endWidth = 80,30
util.SpriteTrail( mis, 0, Color(255,255,255), 1, startWidth, endWidth, 4, 1 / ( startWidth + endWidth ) * 0.5 , "trails/smoke.vmt" )
self:EmitSound("misc/doomsday_missile_launch.wav")
mis:SetModelScale(8)
end
function ENT:Think()
if (self.C or 0)>SysTime() then return end
self.C = SysTime()
if (self.PT or 0)<SysTime() then
self.PT = SysTime()+2
if self.Team==2 or self.Team == 3 then
self.Power = math.min((self.Power or 0)+0.03,1)
if self.Power>=1 then
self.Power = 0
self:Launch()
end
self:SetNWFloat("Power",self.Power)
end
end
local Ships = ents.FindByClass("ent_ship")
local AimAt = -1
for I=1,#Ships do
if Ships[I]:GetPos():Distance(self:GetPos())<1250 then
local t = Ships[I].Team or 0
if AimAt<0 then
AimAt = t
elseif AimAt!=t then
AimAt = 0
end
end
end
if AimAt>-1 and AimAt!=self.Team then
-- Something about to happen
self.CapturePower = self.CapturePower+0.01
if self.CapturePower<1 then
self:SetNWFloat("CapPower",self.CapturePower)
else
self.Team = AimAt
self:SetNWFloat("Team",self.Team)
self.CapturePower = 0
self:SetNWFloat("CapPower",0)
if AimAt!=0 then
self:EmitSound("ambient/machines/thumper_startup1.wav")
else
self:EmitSound("ambient/machines/thumper_shutdown1.wav")
end
hook.Call("CapPoint",_,self)
end
elseif self.CapturePower>0 then
self.CapturePower = math.max(self.CapturePower-0.05,0)
self:SetNWFloat("CapPower",self.CapturePower)
end
--self:SetNWFloat("Team",math.random(1,3))
end
function ENT:Use()
end
|
-- Behavior for observer (2) in the level gandriatower
routine = function(O)
O:wait(3)
O:gotoTile(3.5, 2.5)
O:wait(3)
O:gotoTile(18.5, 2.5)
end
|
----------------------------------------------------------------------------
-- global misc script
-- contains function tend to be useed by every module
--
----------------------------------------------------------------------------
--- Version Control
tVar.getVersion = function()
tex.print("Version: " .. tVar.Version)
end
--- Easy Input loads a script written in easy input format
-- translates it into functions and runs the script
--
-- Easy Input style:
-- #This is a comment --> tex.print("This is a comment")
-- a_1=3 --> a_1=tVar:New(3,"a_{1}")
--
-- @param path path to easy input file
function tVar.intFile(path)
local file = assert(io.open(path, "r"))
local str = ""
for line in file:lines() do
str = str .. line .. "\n"
end
tVar.intString(str)
end
--- Easy Input analyses a string and
-- translates it into functions and runs the script
--
-- Easy Input style:
-- #This is a comment --> tex.print("This is a comment")
-- a_1=3 --> a_1=tVar:New(3,"a_{1}")
--
-- @param _string path to easy input file
function tVar.intString(_string)
local str = ""
for line in string.gmatch(_string, "([^\n]+)") do
str = str .. "\n" .. tVar.interpretEasyInputLine(line)
end
if tVar.logInterp then
logfile = io.open ("tVarLog.log","a+")
logfile:write(str.."\n")
logfile:close()
end
if tVar.interpretedShowOutput then
print(str)
end
local status, err = pcall(function () assert(load(str))() end )
if not status then
getErrorReport(err,str)
end
end
--- Print Error report
--
-- @param err (Number) Error Number
-- @param _string (String) String in which the error occoured
function getErrorReport(err,_string)
local maxPlaces = 70
tex.print("\\begin{verbatim}")
tex.print("------------------------")
tex.print("| ERROR |")
tex.print("------------------------")
if #err > maxPlaces then
local countBegin = 1
while countBegin < #err do
local lenPlaces = maxPlaces
if countBegin+maxPlaces > #err then lenPlaces = #err-countBegin end
tex.print(err:sub(countBegin,countBegin+lenPlaces))
countBegin = countBegin+lenPlaces+1
end
else
tex.print(err)
end
tex.print("------------------------")
tex.print("| IN CODE |")
tex.print("------------------------")
local counter = 1
for line in string.gmatch(_string, "([^\n]+)") do
if #line > maxPlaces then
local countBegin = 1
while countBegin < #line do
local lenPlaces = maxPlaces
if countBegin+maxPlaces > #line then lenPlaces = #line-countBegin end
if countBegin == 1 then
tex.print(counter .. ": " .. line:sub(countBegin,countBegin+lenPlaces))
else
tex.print(line:sub(countBegin,countBegin+lenPlaces))
end
countBegin = countBegin+lenPlaces+1
end
else
tex.print(counter .. ": " .. line)
end
counter = counter + 1
end
tex.print("\\end{verbatim}")
end
--- String Split
--
--@param str string to split
--@param pat pattern
--@return table
function string.split(str, pat)
local t = {} -- NOTE: use {n = 0} in Lua-5.0
local fpat = "(.-)" .. pat
local last_end = 1
local s, e, cap = str:find(fpat, 1)
while s do
if s ~= 1 or cap ~= "" then
table.insert(t,cap)
end
last_end = e+1
s, e, cap = str:find(fpat, last_end)
end
if last_end <= #str then
cap = str:sub(last_end)
table.insert(t, cap)
end
return t
end |
--
-- Dan Schuller: Tween Class based on Flash
--
Tween = {}
Tween.__index = Tween
function Tween:IsFinished()
return self.isFinished
end
function Tween:Value()
return self.current
end
function Tween.EaseInQuad(t, b, c, d)
t = t / d
return c * t * t + b
end
function Tween.EaseOutQuad(t, b, c, d)
t = t / d
return -c * t * (t - 2) + b
end
function Tween.EaseInCirc(t, b, c, d)
t = t / d
return -c * (math.sqrt(1 - t*t) - 1) + b;
end
function Tween.EaseOutCirc(t, b, c, d)
t = t / d - 1
return c * math.sqrt(1 - t*t) + b;
end
function Tween.EaseOutInCirc(t, b, c, d)
if (t < d/2) then
return Tween.EaseOutCirc(t*2, b, c/2, d)
end
return Tween.EaseInCirc((t*2)-d, b+c/2, c/2, d)
end
function Tween.EaseInOutElastic(t, b, c, d, a, p)
if (t==0) then
return b
end
t = t / (d / 2)
if (t==2) then
return b+c
end
if (not p) then
p=d*(.3*1.5)
end
if ((not a) or a < Math.abs(c)) then
a=c
s=p/4
else
s = p/(2*math.pi) * math.asin(c/a)
end
if (t < 1) then
t = t - 1
return -.5*(a*math.pow(2,10*t) * math.sin( (t*d-s)*(2*math.pi)/p )) + b
end
t = t - 1
return a*math.pow(2,-10*t) * math.sin( (t*d-s)*(2*math.pi)/p )*.5 + c + b
end
function Tween.EaseOutElastic(t, b, c, d, a, p)
local s = 1.70158
local a = c
if 0 == t then
return b;
end
t = t / d
if t == 1 then
return b + c
end
if not p then
p = d *.3
end
if a < math.abs(c) then
a = c
s = p / 4
else
s = p / (2 * math.pi) * math.asin(c / a);
end
return a * math.pow(2, -10 * t) * math.sin( (t * d - s) * (2 * math.pi) / p) + c + b;
end
function Tween.EaseInElastic(t, b, c, d, a, p)
local a = c
local s = 1.70158
if 0 == t then
return b
end
t = t / d
if t == 1 then
return b + c
end
if not p then
p = d * .3
end
if a < math.abs(c) then
a = c
s = p / 4
else
s = p / (2 * math.pi) * math.asin(c / a)
end
t = t - 1
return -(a* math.pow(2, 10 * t) * math.sin( (t * d - s) * (2 * math.pi) /p )) + b;
end
function Tween.EaseInExpo(t, b, c, d)
return c * math.pow( 2, 10 * (t/d - 1) ) + b
end
function Tween.EaseInBounce(t, b, c, d)
return c - Tween.EaseOutBounce(d-t, 0, c, d) + b
end
-- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity.
--
-- @param t Current time (in frames or seconds).
-- @param b Starting value.
-- @param c Change needed in value.
-- @param d Expected easing duration (in frames or seconds).
-- @return The correct value.
--
function Tween.EaseOutBounce(t, b, c, d)
t = t / d
if (t < (1/2.75)) then
return c*(7.5625*t*t) + b
end
if (t < (2/2.75)) then
t = t - (1.5/2.75)
return c*(7.5625*t*t + .75) + b
end
if (t < (2.5/2.75)) then
t = t - (2.25/2.75)
return c*(7.5625*t*t + .9375) + b
end
t = t - (2.625/2.75)
return c*(7.5625*t*t + .984375) + b
end
-- Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration.
--
-- @param t Current time (in frames or seconds).
-- @param b Starting value.
-- @param c Change needed in value.
-- @param d Expected easing duration (in frames or seconds).
-- @return The correct value.
--
function Tween.EaseInOutBounce(t, b, c, d)
if (t < d/2) then
return Tween.EaseInBounce (t*2, 0, c, d) * .5 + b
else
return Tween.EaseOutBounce (t*2-d, 0, c, d) * .5 + c*.5 + b
end
end
function Tween.Linear(timePassed, start, distance, duration)
return distance * timePassed / duration + start
end
function Tween:FinishValue()
return self.startValue + self.distance
end
function Tween:Update(elapsedTime)
self.timePassed = self.timePassed + (elapsedTime or GetDeltaTime())
self.current = self.tweenF(self.timePassed, self.startValue, self.distance, self.totalDuration)
if self.timePassed > self.totalDuration then
self.current = self.startValue + self.distance
self.isFinished = true
end
end
function Tween:SetValue01(v)
self.timePassed = Lerp(v, 0, 1, 0, self.totalDuration)
self:Update(0)
end
--
--@start start value
--@finish end value
--@totalDuration time in which to perform tween.
--@tweenF tween function defaults to linear
function Tween:Create(start, finish, totalDuration, tweenF)
local this =
{
tweenF = tweenF or Tween.Linear,
distance = finish - start,
startValue = start,
current = start,
totalDuration = totalDuration,
timePassed = 0,
isFinished = false
}
setmetatable(this, self)
return this
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.