Advertisement
TheStarGlitcher007

The Last Admin

Oct 14th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.86 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = owner
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --//====================================================\\--
  87. --||               CREATED BY SHACKLUSTER
  88. --\\====================================================//--
  89.  
  90.  
  91.  
  92. wait(0.2)
  93. local txt = Instance.new("BillboardGui", owner.Character.Torso)
  94. txt.Adornee = Die
  95. txt.Name = "nigga"
  96. txt.Size = UDim2.new(2, 0, 1.2, 0)
  97. txt.StudsOffset = Vector3.new(-5, 5, 0)
  98. local text = Instance.new("TextLabel", txt)
  99. text.Size = UDim2.new(6, 0, 1, 0)
  100. text.FontSize = "Size8"
  101. text.TextScaled = true
  102. text.TextTransparency = 0
  103. text.BackgroundTransparency = 1
  104. text.TextTransparency = 0
  105. text.TextStrokeTransparency = 0
  106. text.Font = "Cartoon"
  107. text.TextStrokeColor3 = Color3.new(0, 1, 0)
  108. v = Instance.new("Part")
  109. v.Name = "ColorBrick"
  110. v.Parent = part
  111. v.FormFactor = "Symmetric"
  112. v.Anchored = true
  113. v.CanCollide = false
  114. v.BottomSurface = "Smooth"
  115. v.TopSurface = "Smooth"
  116. v.Size = Vector3.new(10, 5, 3)
  117. v.Transparency = 0.7
  118. v.BrickColor = owner.Character.Torso.BrickColor
  119. v.Transparency = 1
  120. text.TextColor3 = v.BrickColor.Color
  121. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  122. v.Shape = "Block"
  123. text.Text = "You have some nerve coming to me.."
  124. wait(2)
  125. text.Text = "You know...."
  126. wait(3)
  127. text.Text = "I might be alone"
  128. wait(3)
  129. text.Text = "But i still will not die without a fight!"
  130. wait(3)
  131. text.Text = "The Last Admin"
  132.  
  133.  
  134.  
  135. Player = owner
  136. PlayerGui = Player.PlayerGui
  137. Cam = workspace.CurrentCamera
  138. Backpack = Player.Backpack
  139. Character = Player.Character
  140. Humanoid = Character.Humanoid
  141. RootPart = Character["HumanoidRootPart"]
  142. Torso = Character["Torso"]
  143. Head = Character["Head"]
  144. RightArm = Character["Right Arm"]
  145. LeftArm = Character["Left Arm"]
  146. RightLeg = Character["Right Leg"]
  147. LeftLeg = Character["Left Leg"]
  148. RootJoint = RootPart["RootJoint"]
  149. Neck = Torso["Neck"]
  150. RightShoulder = Torso["Right Shoulder"]
  151. LeftShoulder = Torso["Left Shoulder"]
  152. RightHip = Torso["Right Hip"]
  153. LeftHip = Torso["Left Hip"]
  154. local sick = Instance.new("Sound",Character)
  155. sick.SoundId = "rbxassetid://186272788"
  156. sick.Looped = true
  157. sick.Pitch = 1
  158. sick.Volume = 10
  159. sick:Play()
  160.  
  161. IT = Instance.new
  162. CF = CFrame.new
  163. VT = Vector3.new
  164. RAD = math.rad
  165. C3 = Color3.new
  166. UD2 = UDim2.new
  167. BRICKC = BrickColor.new
  168. ANGLES = CFrame.Angles
  169. EULER = CFrame.fromEulerAnglesXYZ
  170. COS = math.cos
  171. ACOS = math.acos
  172. SIN = math.sin
  173. ASIN = math.asin
  174. ABS = math.abs
  175. MRANDOM = math.random
  176. FLOOR = math.floor
  177.  
  178. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  179.     local NEWMESH = IT(MESH)
  180.     if MESH == "SpecialMesh" then
  181.         NEWMESH.MeshType = MESHTYPE
  182.         if MESHID ~= "nil" and MESHID ~= "" then
  183.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  184.         end
  185.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  186.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  187.         end
  188.     end
  189.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  190.     NEWMESH.Scale = SCALE
  191.     NEWMESH.Parent = PARENT
  192.     return NEWMESH
  193. end
  194.  
  195. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  196.     local NEWPART = IT("Part")
  197.     NEWPART.formFactor = FORMFACTOR
  198.     NEWPART.Reflectance = REFLECTANCE
  199.     NEWPART.Transparency = TRANSPARENCY
  200.     NEWPART.CanCollide = false
  201.     NEWPART.Locked = true
  202.     NEWPART.Anchored = true
  203.     if ANCHOR == false then
  204.         NEWPART.Anchored = false
  205.     end
  206.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  207.     NEWPART.Name = NAME
  208.     NEWPART.Size = SIZE
  209.     NEWPART.Position = Torso.Position
  210.     NEWPART.Material = MATERIAL
  211.     NEWPART:BreakJoints()
  212.     NEWPART.Parent = PARENT
  213.     return NEWPART
  214. end
  215.  
  216. --//=================================\\
  217. --||          CUSTOMIZATION
  218. --\\=================================//
  219.  
  220. Player_Size = 1 --Size of the player.
  221. Animation_Speed = 3
  222. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  223.  
  224. local Speed = 16
  225. local Effects2 = {}
  226.  
  227. --//=================================\\
  228. --||      END OF CUSTOMIZATION
  229. --\\=================================//
  230.  
  231.     local function weldBetween(a, b)
  232.         local weldd = Instance.new("ManualWeld")
  233.         weldd.Part0 = a
  234.         weldd.Part1 = b
  235.         weldd.C0 = CFrame.new()
  236.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  237.         weldd.Parent = a
  238.         return weldd
  239.     end
  240.  
  241. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  242. local acs = Instance.new("Part")
  243. acs.CanCollide = false
  244. acs.Anchored = false
  245. acs.Size = Vector3.new(0,0,0)
  246. acs.CFrame = attachmentpart.CFrame
  247. acs.Parent = Character
  248. acs.BrickColor = color
  249.     local meshs = Instance.new("SpecialMesh")
  250.     meshs.MeshId = mesh
  251.     meshs.TextureId = texture
  252.     meshs.Parent = acs
  253.     meshs.Scale = scale
  254.     meshs.Offset = offset
  255. weldBetween(attachmentpart,acs)
  256. end
  257.  
  258. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  259. if TYPE == "Gem" then
  260.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  261.     acs.Anchored = false
  262.     acs.CanCollide = false
  263.     acs.CFrame = PART.CFrame
  264.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  265. weldBetween(PART,acs)
  266. elseif TYPE == "Skull" then
  267.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  268.     acs.Anchored = false
  269.     acs.CanCollide = false
  270.     acs.CFrame = PART.CFrame
  271.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  272. weldBetween(PART,acs)
  273. elseif TYPE == "Eye" then
  274.     local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  275.     acs.Anchored = false
  276.     acs.CanCollide = false
  277.     acs.CFrame = PART.CFrame
  278.     local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  279. weldBetween(PART,acs)
  280. end
  281. end
  282.  
  283. --//=================================\\
  284. --||          USEFUL VALUES
  285. --\\=================================//
  286.  
  287. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  288. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  289. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  290. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  291. local CHANGEDEFENSE = 0
  292. local CHANGEDAMAGE = 0
  293. local CHANGEMOVEMENT = 0
  294. local ANIM = "Idle"
  295. local ATTACK = false
  296. local EQUIPPED = false
  297. local HOLD = false
  298. local COMBO = 1
  299. local Rooted = false
  300. local SINE = 0
  301. local KEYHOLD = false
  302. local CHANGE = 2 / Animation_Speed
  303. local WALKINGANIM = false
  304. local WALK = 0
  305. local VALUE1 = false
  306. local HITFLOOR = nil
  307. local VALUE2 = false
  308. local ROBLOXIDLEANIMATION = IT("Animation")
  309. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  310. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  311. --ROBLOXIDLEANIMATION.Parent = Humanoid
  312. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  313. WEAPONGUI.Name = "Weapon GUI"
  314. local Weapon = IT("Model")
  315. Weapon.Name = "Adds"
  316. local Delete = IT("Model",Character)
  317. Delete.Name = "Banlist"
  318. local Effects = IT("Folder", Weapon)
  319. Effects.Name = "Effects"
  320. local ANIMATOR = Humanoid.Animator
  321. local ANIMATE = Character.Animate
  322. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  323. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  324. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  325. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  326. local UNANCHOR = true
  327.  
  328. local SKILLTEXTCOLOR = C3(0,0,0)
  329.  
  330. --//=================================\\
  331. --\\=================================//
  332.  
  333.  
  334. --//=================================\\
  335. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  336. --\\=================================//
  337.  
  338. ArtificialHB = Instance.new("BindableEvent", script)
  339. ArtificialHB.Name = "ArtificialHB"
  340.  
  341. script:WaitForChild("ArtificialHB")
  342.  
  343. frame = Frame_Speed
  344. tf = 0
  345. allowframeloss = false
  346. tossremainder = false
  347. lastframe = tick()
  348. script.ArtificialHB:Fire()
  349.  
  350. game:GetService("RunService").Heartbeat:connect(function(s, p)
  351.     tf = tf + s
  352.     if tf >= frame then
  353.         if allowframeloss then
  354.             script.ArtificialHB:Fire()
  355.             lastframe = tick()
  356.         else
  357.             for i = 1, math.floor(tf / frame) do
  358.                 script.ArtificialHB:Fire()
  359.             end
  360.         lastframe = tick()
  361.         end
  362.         if tossremainder then
  363.             tf = 0
  364.         else
  365.             tf = tf - frame * math.floor(tf / frame)
  366.         end
  367.     end
  368. end)
  369.  
  370. --//=================================\\
  371. --\\=================================//
  372.  
  373.  
  374.  
  375.  
  376.  
  377. --//=================================\\
  378. --||          SOME FUNCTIONS
  379. --\\=================================//
  380.  
  381. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  382.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  383. end
  384.  
  385. function PositiveAngle(NUMBER)
  386.     if NUMBER >= 0 then
  387.         NUMBER = 0
  388.     end
  389.     return NUMBER
  390. end
  391.  
  392. function NegativeAngle(NUMBER)
  393.     if NUMBER <= 0 then
  394.         NUMBER = 0
  395.     end
  396.     return NUMBER
  397. end
  398.  
  399. function Swait(NUMBER)
  400.     if NUMBER == 0 or NUMBER == nil then
  401.         ArtificialHB.Event:wait()
  402.     else
  403.         for i = 1, NUMBER do
  404.             ArtificialHB.Event:wait()
  405.         end
  406.     end
  407. end
  408.  
  409. function QuaternionFromCFrame(cf)
  410.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  411.     local trace = m00 + m11 + m22
  412.     if trace > 0 then
  413.         local s = math.sqrt(1 + trace)
  414.         local recip = 0.5 / s
  415.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  416.     else
  417.         local i = 0
  418.         if m11 > m00 then
  419.             i = 1
  420.         end
  421.         if m22 > (i == 0 and m00 or m11) then
  422.             i = 2
  423.         end
  424.         if i == 0 then
  425.             local s = math.sqrt(m00 - m11 - m22 + 1)
  426.             local recip = 0.5 / s
  427.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  428.         elseif i == 1 then
  429.             local s = math.sqrt(m11 - m22 - m00 + 1)
  430.             local recip = 0.5 / s
  431.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  432.         elseif i == 2 then
  433.             local s = math.sqrt(m22 - m00 - m11 + 1)
  434.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  435.         end
  436.     end
  437. end
  438.  
  439. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  440.     local xs, ys, zs = x + x, y + y, z + z
  441.     local wx, wy, wz = w * xs, w * ys, w * zs
  442.     local xx = x * xs
  443.     local xy = x * ys
  444.     local xz = x * zs
  445.     local yy = y * ys
  446.     local yz = y * zs
  447.     local zz = z * zs
  448.     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))
  449. end
  450.  
  451. function QuaternionSlerp(a, b, t)
  452.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  453.     local startInterp, finishInterp;
  454.     if cosTheta >= 0.0001 then
  455.         if (1 - cosTheta) > 0.0001 then
  456.             local theta = ACOS(cosTheta)
  457.             local invSinTheta = 1 / SIN(theta)
  458.             startInterp = SIN((1 - t) * theta) * invSinTheta
  459.             finishInterp = SIN(t * theta) * invSinTheta
  460.         else
  461.             startInterp = 1 - t
  462.             finishInterp = t
  463.         end
  464.     else
  465.         if (1 + cosTheta) > 0.0001 then
  466.             local theta = ACOS(-cosTheta)
  467.             local invSinTheta = 1 / SIN(theta)
  468.             startInterp = SIN((t - 1) * theta) * invSinTheta
  469.             finishInterp = SIN(t * theta) * invSinTheta
  470.         else
  471.             startInterp = t - 1
  472.             finishInterp = t
  473.         end
  474.     end
  475.     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
  476. end
  477.  
  478. function Clerp(a, b, t)
  479.     local qa = {QuaternionFromCFrame(a)}
  480.     local qb = {QuaternionFromCFrame(b)}
  481.     local ax, ay, az = a.x, a.y, a.z
  482.     local bx, by, bz = b.x, b.y, b.z
  483.     local _t = 1 - t
  484.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  485. end
  486.  
  487. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  488.     local frame = IT("Frame")
  489.     frame.BackgroundTransparency = TRANSPARENCY
  490.     frame.BorderSizePixel = BORDERSIZEPIXEL
  491.     frame.Position = POSITION
  492.     frame.Size = SIZE
  493.     frame.BackgroundColor3 = COLOR
  494.     frame.BorderColor3 = BORDERCOLOR
  495.     frame.Name = NAME
  496.     frame.Parent = PARENT
  497.     return frame
  498. end
  499.  
  500. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  501.     local label = IT("TextLabel")
  502.     label.BackgroundTransparency = 1
  503.     label.Size = UD2(1, 0, 1, 0)
  504.     label.Position = UD2(0, 0, 0, 0)
  505.     label.TextColor3 = TEXTCOLOR
  506.     label.TextStrokeTransparency = STROKETRANSPARENCY
  507.     label.TextTransparency = TRANSPARENCY
  508.     label.FontSize = TEXTFONTSIZE
  509.     label.Font = TEXTFONT
  510.     label.BorderSizePixel = BORDERSIZEPIXEL
  511.     label.TextScaled = false
  512.     label.Text = TEXT
  513.     label.Name = NAME
  514.     label.Parent = PARENT
  515.     return label
  516. end
  517.  
  518. function NoOutlines(PART)
  519.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  520. end
  521.  
  522.  
  523. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  524.     local NEWWELD = IT(TYPE)
  525.     NEWWELD.Part0 = PART0
  526.     NEWWELD.Part1 = PART1
  527.     NEWWELD.C0 = C0
  528.     NEWWELD.C1 = C1
  529.     NEWWELD.Parent = PARENT
  530.     return NEWWELD
  531. end
  532.  
  533. local SOUND = IT("Sound",nil)
  534.  
  535. function CreateSound(ID, PARENT, VOLUME, PITCH)
  536.     local NEWSOUND = nil
  537.     coroutine.resume(coroutine.create(function()
  538.         NEWSOUND = SOUND:Clone()
  539.         NEWSOUND.Parent = PARENT
  540.         NEWSOUND.Volume = VOLUME
  541.         NEWSOUND.Pitch = PITCH
  542.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  543.         Swait()
  544.         NEWSOUND:play()
  545.         game:GetService("Debris"):AddItem(NEWSOUND, 10)
  546.     end))
  547.     return NEWSOUND
  548. end
  549.  
  550. function CFrameFromTopBack(at, top, back)
  551.     local right = top:Cross(back)
  552.     return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  553. end
  554.  
  555. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  556.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  557.     local mesh = IT("SpecialMesh",wave)
  558.     mesh.MeshType = "FileMesh"
  559.     mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  560.     mesh.Scale = SIZE
  561.     mesh.Offset = VT(0,0,-SIZE.X/8)
  562.     wave.CFrame = CFRAME
  563.     coroutine.resume(coroutine.create(function(PART)
  564.         for i = 1, WAIT do
  565.             Swait()
  566.             mesh.Scale = mesh.Scale + GROW
  567.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  568.             if DOESROT == true then
  569.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  570.             end
  571.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  572.             if wave.Transparency > 0.99 then
  573.                 wave:remove()
  574.             end
  575.         end
  576.     end))
  577. end
  578.  
  579. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  580.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  581.     local mesh = IT("SpecialMesh",wave)
  582.     mesh.MeshType = "Sphere"
  583.     mesh.Scale = SIZE
  584.     mesh.Offset = VT(0,0,0)
  585.     wave.CFrame = CFRAME
  586.     coroutine.resume(coroutine.create(function(PART)
  587.         for i = 1, WAIT do
  588.             Swait()
  589.             mesh.Scale = mesh.Scale + GROW
  590.             wave.Transparency = wave.Transparency + (1/WAIT)
  591.             if wave.Transparency > 0.99 then
  592.                 wave:remove()
  593.             end
  594.         end
  595.     end))
  596. end
  597.  
  598. function MakeForm(PART,TYPE)
  599.     if TYPE == "Cyl" then
  600.         local MSH = IT("CylinderMesh",PART)
  601.     elseif TYPE == "Ball" then
  602.         local MSH = IT("SpecialMesh",PART)
  603.         MSH.MeshType = "Sphere"
  604.     elseif TYPE == "Wedge" then
  605.         local MSH = IT("SpecialMesh",PART)
  606.         MSH.MeshType = "Wedge"
  607.     end
  608. end
  609.  
  610. function CheckTableForString(Table, String)
  611.     for i, v in pairs(Table) do
  612.         if string.find(string.lower(String), string.lower(v)) then
  613.             return true
  614.         end
  615.     end
  616.     return false
  617. end
  618.  
  619. function CheckIntangible(Hit)
  620.     local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  621.     if Hit and Hit.Parent then
  622.         if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  623.             return true
  624.         end
  625.     end
  626.     return false
  627. end
  628.  
  629. Debris = game:GetService("Debris")
  630.  
  631. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  632.     local Direction = CFrame.new(StartPos, Vec).lookVector
  633.     local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  634.     local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  635.     if RayHit and CheckIntangible(RayHit) then
  636.         if DelayIfHit then
  637.             wait()
  638.         end
  639.         RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  640.     end
  641.     return RayHit, RayPos, RayNormal
  642. end
  643.  
  644. function turnto(position)
  645.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  646. end
  647.  
  648. --//=================================\\
  649. --||         WEAPON CREATION
  650. --\\=================================//
  651.  
  652. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  653. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(1,1,1), VT(0, 2.7, 0))
  654. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  655.  
  656. for _, c in pairs(Weapon:GetChildren()) do
  657.     if c.ClassName == "Part" then
  658.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  659.     end
  660. end
  661.  
  662. Weapon.Parent = Character
  663.  
  664. Humanoid.Died:connect(function()
  665.     ATTACK = true
  666. end)
  667.  
  668. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  669. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  670.  
  671. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Ban Slam", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
  672. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Teleport", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2")
  673.  
  674. --//=================================\\
  675. --||            DAMAGING
  676. --\\=================================//
  677.  
  678. function BAN(CHARACTER)
  679.     local BANFOLDER = IT("Folder",Effects)
  680.     local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
  681.     naeeym2.AlwaysOnTop = false
  682.     naeeym2.Size = UDim2.new(5,35,2,35)
  683.     naeeym2.StudsOffset = Vector3.new(0,1,0)
  684.     naeeym2.Name = "AAAA"
  685.     local tecks2 = Instance.new("TextLabel",naeeym2)
  686.     tecks2.BackgroundTransparency = 1
  687.     tecks2.TextScaled = true
  688.     tecks2.BorderSizePixel = 0
  689.     tecks2.Text = "BANNED"
  690.     tecks2.Font = "Code"
  691.     tecks2.TextSize = 30
  692.     tecks2.TextStrokeTransparency = 1
  693.     tecks2.TextColor3 = Color3.new(1,0,0)
  694.     tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  695.     tecks2.Size = UDim2.new(1,0,0.5,0)
  696.     tecks2.Parent = naeeym2
  697.     for i,v in ipairs(CHARACTER:GetChildren()) do
  698.         if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  699.             if v.Name ~= "HumanoidRootPart" then
  700.                 local BOD = v:Clone()
  701.                 BOD.CanCollide = false
  702.                 BOD.Anchored = true
  703.                 BOD.CFrame = v.CFrame
  704.                 BOD.Parent = BANFOLDER
  705.                 BOD.Material = "Neon"
  706.                 BOD.Color = C3(1,0,0)
  707.                 if BOD:FindFirstChildOfClass("Decal") then
  708.                     BOD:FindFirstChildOfClass("Decal"):remove()
  709.                 end
  710.                 if BOD.Name == "Head" then
  711.                     naeeym2.Adornee = BOD
  712.                 end
  713.                 if BOD.ClassName == "MeshPart" then
  714.                     BOD.TextureID = ""
  715.                 end
  716.             end
  717.         end
  718.     end
  719.     CHARACTER:remove()
  720.     coroutine.resume(coroutine.create(function()
  721.         for i = 1, 50 do
  722.             Swait()
  723.             for i,v in ipairs(BANFOLDER:GetChildren()) do
  724.                 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  725.                     v.Transparency = 1
  726.                 end
  727.                 naeeym2.Enabled = false
  728.             end
  729.             Swait()
  730.             for i,v in ipairs(BANFOLDER:GetChildren()) do
  731.                 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  732.                     v.Transparency = 0
  733.                 end
  734.                 naeeym2.Enabled = true
  735.             end
  736.         end
  737.         BANFOLDER:remove()
  738.     end))
  739. end
  740.  
  741. function BANNEAREST(POS,RANGE)
  742.     for i,v in ipairs(workspace:GetChildren()) do
  743.     local body = v:GetChildren()
  744.         for part = 1, #body do
  745.             if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  746.                 if(body[part].Position - POS).Magnitude < RANGE then
  747.                     if v:FindFirstChildOfClass("Humanoid") then
  748.                         BAN(v)
  749.                         if game.Players:FindFirstChild(v.Name) then
  750.                             local Value = IT("BoolValue",Delete)
  751.                             Value.Name = v.Name
  752.                         end
  753.                     end
  754.                 end
  755.             end
  756.         end
  757.     end
  758. end
  759.  
  760. --//=================================\\
  761. --||    ATTACK FUNCTIONS AND STUFF
  762. --\\=================================//
  763.  
  764. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  765.     if FLOOR ~= nil then
  766.         coroutine.resume(coroutine.create(function()
  767.             local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  768.             PART.CFrame = CF(POSITION)
  769.             for i = 1, 45 do
  770.                 local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  771.                 RingPiece.Material = FLOOR.Material
  772.                 RingPiece.Color = FLOOR.Color
  773.                 RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  774.                 Debris:AddItem(RingPiece,SWAIT/100)
  775.             end
  776.             PART:remove()
  777.         end))
  778.     end
  779. end
  780.  
  781. function BANSLAM()
  782.     ATTACK = true
  783.     Rooted = false
  784.     repeat
  785.         for i=0, 0.2, 0.1 / Animation_Speed do
  786.             Swait()
  787.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed)
  788.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  789.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  790.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  791.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  792.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  793.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed)
  794.         end
  795.         for i=0, 0.08, 0.1 / Animation_Speed do
  796.             Swait()
  797.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  798.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  799.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  800.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  801.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  802.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  803.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  804.         end
  805.         for i=0, 0.08, 0.1 / Animation_Speed do
  806.             Swait()
  807.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  808.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  809.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  810.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  811.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  812.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  813.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  814.         end
  815.         CreateSound("147722910", Effects, 10, 1)
  816.         BANNEAREST(RootPart.CFrame*CF(0,0,-6).p,25)
  817.         if HITFLOOR ~= nil then
  818.             CreateSound("289842971", HandlePart, 10, 1)
  819.             CreateSound("289842971", HandlePart, 10, 1)
  820.             CreateSound("289842971", HandlePart, 10, 1)
  821.             CreateSound("289842971", HandlePart, 10, 1)
  822.             CreateDebreeRing(HITFLOOR,RootPart.CFrame*CF(0,-5,-6).p,5,VT(8,8,8),35)
  823.         end
  824.         CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,2,"Really red",VT(0,3,0))
  825.         CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,-2,"Really red",VT(0,3,0))
  826.         for i=0, 0.1, 0.1 / Animation_Speed do
  827.             Swait()
  828.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  829.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  830.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  831.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  832.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  833.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  834.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  835.         end
  836.         if HOLD == true then
  837.             for i=0, 0.08, 0.1 / Animation_Speed do
  838.                 Swait()
  839.                 if HOLD == false then
  840.                     break
  841.                 end
  842.                 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  843.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  844.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  845.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  846.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  847.                 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  848.                 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  849.             end
  850.         end
  851.     until HOLD == false
  852.     for i=0, 1, 0.1 / Animation_Speed do
  853.         Swait()
  854.         HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  855.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  856.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  857.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  858.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  859.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  860.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  861.     end
  862.     for i=0, 5, 0.1 / Animation_Speed do
  863.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  864.         HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  865.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  866.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  867.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  868.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  869.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  870.     end
  871.     ATTACK = false
  872.     Rooted = false
  873. end
  874.  
  875. --//=================================\\
  876. --||      ASSIGN THINGS TO KEYS
  877. --\\=================================//
  878.  
  879. function MouseDown(Mouse)
  880.     HOLD = true
  881.     if ATTACK == false then
  882.         BANSLAM()
  883.     end
  884. end
  885.  
  886. function MouseUp(Mouse)
  887. HOLD = false
  888. end
  889.  
  890. function KeyDown(Key)
  891.     KEYHOLD = true
  892.     if Key == "b" and ATTACK == false then
  893.         local pos = RootPart.Position
  894.         RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos)
  895.         CreateSound("769380905", Torso, 10, 1)
  896.     end
  897.     if Key == "y" then
  898. sick.SoundId = "rbxassetid://1180273873"
  899. text.Text = "You just Made a Bad Move"
  900. wait(3)
  901. text.Text = "Time to die!"
  902. wait(10)
  903. text.Text = "The last Admin God."
  904.                 local eye1 = Instance.new("Part")
  905. eye1.Parent = Character
  906. eye1.Size = Vector3.new(0.2,0.2,0.2)
  907. eye1.Archivable = true
  908. eye1.Transparency = 0
  909. eye1.CanCollide = false
  910. eye1.Material = "Neon"
  911. eye1.Color = Color3.fromRGB(255,0,0)
  912. local eye1mesh = Instance.new("SpecialMesh",eye1)
  913. eye1mesh.MeshType = "Sphere"
  914. eye1mesh.Scale = Vector3.new(0.66,1.22,0.66)
  915. ko2 = eye1mesh.Scale
  916. local eye1weld = Instance.new("Weld")
  917. eye1weld.Parent = eye1
  918. eye1weld.Part0 = Head
  919. eye1weld.Part1 = eye1
  920. eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  921.         eye1weld.Part0 = Head
  922. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=144429719"
  923. end
  924.     if Key == "t" then
  925.         CreateSound("1058417264", Head, 10, 1)
  926.         Delete:ClearAllChildren()
  927.     end
  928. end
  929.  
  930. function KeyUp(Key)
  931.     KEYHOLD = false
  932. end
  933.  
  934.     Mouse.Button1Down:connect(function(NEWKEY)
  935.         MouseDown(NEWKEY)
  936.     end)
  937.     Mouse.Button1Up:connect(function(NEWKEY)
  938.         MouseUp(NEWKEY)
  939.     end)
  940.     Mouse.KeyDown:connect(function(NEWKEY)
  941.         KeyDown(NEWKEY)
  942.     end)
  943.     Mouse.KeyUp:connect(function(NEWKEY)
  944.         KeyUp(NEWKEY)
  945.     end)
  946.  
  947. --//=================================\\
  948. --\\=================================//
  949.  
  950.  
  951. function unanchor()
  952.     if UNANCHOR == true then
  953.         g = Character:GetChildren()
  954.         for i = 1, #g do
  955.             if g[i].ClassName == "Part" then
  956.                 g[i].Anchored = false
  957.             end
  958.         end
  959.     end
  960. end
  961.  
  962.  
  963. --//=================================\\
  964. --||    WRAP THE WHOLE SCRIPT UP
  965. --\\=================================//
  966.  
  967. Humanoid.Changed:connect(function(Jump)
  968.     if Jump == "Jump" and (Disable_Jump == true) then
  969.         Humanoid.Jump = false
  970.     end
  971. end)
  972.  
  973. Speed = 23
  974.  
  975. while true do
  976.     Swait()
  977.     ANIMATE.Parent = nil
  978.     local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  979.     IDLEANIMATION:Play()
  980.     SINE = SINE + CHANGE
  981.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  982.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  983.     local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  984.     HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  985.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  986.     if ATTACK == false then
  987.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  988.         HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  989.     end
  990.     if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then
  991.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  992.         Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  993.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  994.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  995.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then
  996.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  997.         Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  998.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  999.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1000.     end
  1001.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1002.         ANIM = "Jump"
  1003.         if ATTACK == false then
  1004.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1005.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1006.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1007.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1008.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1009.            end
  1010.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1011.         ANIM = "Fall"
  1012.         if ATTACK == false then
  1013.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1014.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1015.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1016.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1017.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1018.         end
  1019.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1020.         ANIM = "Idle"
  1021.         if ATTACK == false then
  1022.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1023.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1024.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1025.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1026.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1027.         end
  1028.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1029.         ANIM = "Walk"
  1030.         WALK = WALK + 1 / Animation_Speed
  1031.         if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1032.             WALK = 0
  1033.             if WALKINGANIM == true then
  1034.                 WALKINGANIM = false
  1035.             elseif WALKINGANIM == false then
  1036.                 WALKINGANIM = true
  1037.             end
  1038.         end
  1039.         --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1040.         --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1041.         if ATTACK == false then
  1042.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1043.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1044.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1045.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1046.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1047.         end
  1048.     end
  1049.     unanchor()
  1050.     Humanoid.MaxHealth = "100"
  1051.     Humanoid.Health = "100"
  1052.     if Rooted == false then
  1053.         Disable_Jump = false
  1054.         Humanoid.WalkSpeed = Speed
  1055.     elseif Rooted == true then
  1056.         Disable_Jump = true
  1057.         Humanoid.WalkSpeed = 0
  1058.     end
  1059.     local MATHS = {"0","1"}
  1060.     Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1061.     Humanoid.PlatformStand = false
  1062.     local GAME = game.Players:GetChildren()
  1063.         for PLAYER = 1, #GAME do
  1064.         local PLAY = GAME[PLAYER]
  1065.         if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  1066.             PLAY.Character:remove()
  1067.         end
  1068.     end
  1069. end
  1070.  
  1071.  
  1072. --//=================================\\
  1073. --\\=================================//
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079. --//====================================================\\--
  1080. --||                     END OF SCRIPT
  1081. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement