Advertisement
com_ww

Untitled

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