Advertisement
Christoffer07700Extr

hammer boi

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