Advertisement
TheownerFescripts

some crap here

Sep 19th, 2021
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.73 KB | None | 0 0
  1. local Player = game.Players:WaitForChild(_G.target)
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Character
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput_Event"
  8. Event.Parent = Player.Character
  9. local fakeEvent = function()
  10. local t = {_fakeEvent=true}
  11. t.Connect = function(self,f)self.Function=f end
  12. t.connect = t.Connect
  13. return t
  14. end
  15. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17. function CAS:BindAction(name,fun,touch,...)
  18. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19. end
  20. function CAS:UnbindAction(name)
  21. CAS.Actions[name] = nil
  22. end
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent and t.Function then
  26. t.Function(...)
  27. end
  28. end
  29. m.TrigEvent = te
  30. UIS.TrigEvent = te
  31. Event.OnServerEvent:Connect(function(plr,io)
  32. if plr~=Player then return end
  33. if io.isMouse then
  34. m.Target = io.Target
  35. m.Hit = io.Hit
  36. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37. if io.UserInputState == Enum.UserInputState.Begin then
  38. m:TrigEvent("Button1Down")
  39. else
  40. m:TrigEvent("Button1Up")
  41. end
  42. else
  43. for n,t in pairs(CAS.Actions) do
  44. for _,k in pairs(t.Keys) do
  45. if k==io.KeyCode then
  46. t.Function(t.Name,io.UserInputState,io)
  47. end
  48. end
  49. end
  50. if io.UserInputState == Enum.UserInputState.Begin then
  51. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52. UIS:TrigEvent("InputBegan",io,false)
  53. else
  54. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputEnded",io,false)
  56. end
  57. end
  58. end)
  59. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60. end
  61.  
  62. Player = Player
  63. PlayerGui = Player.PlayerGui
  64. Cam = workspace.CurrentCamera
  65. Backpack = Player.Backpack
  66. Character = Player.Character
  67. Humanoid = Character.Humanoid
  68. RootPart = Character["HumanoidRootPart"]
  69. Torso = Character["Torso"]
  70. Head = Character["Head"]
  71. RightArm = Character["Right Arm"]
  72. LeftArm = Character["Left Arm"]
  73. RightLeg = Character["Right Leg"]
  74. LeftLeg = Character["Left Leg"]
  75. RootJoint = RootPart["RootJoint"]
  76. Neck = Torso["Neck"]
  77. RightShoulder = Torso["Right Shoulder"]
  78. LeftShoulder = Torso["Left Shoulder"]
  79. RightHip = Torso["Right Hip"]
  80. LeftHip = Torso["Left Hip"]
  81.  
  82. IT = Instance.new
  83. CF = CFrame.new
  84. VT = Vector3.new
  85. RAD = math.rad
  86. C3 = Color3.new
  87. UD2 = UDim2.new
  88. BRICKC = BrickColor.new
  89. ANGLES = CFrame.Angles
  90. EULER = CFrame.fromEulerAnglesXYZ
  91. COS = math.cos
  92. ACOS = math.acos
  93. SIN = math.sin
  94. ASIN = math.asin
  95. ABS = math.abs
  96. MRANDOM = math.random
  97. FLOOR = math.floor
  98.  
  99. --//=================================\\
  100. --|| USEFUL VALUES
  101. --\\=================================//
  102.  
  103. Animation_Speed = 3
  104. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  105. local Speed = 45
  106. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  107. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  108. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  109. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  110. local DAMAGEMULTIPLIER = 1
  111. local ANIM = "Idle"
  112. local ATTACK = false
  113. local EQUIPPED = false
  114. local HOLD = false
  115. local COMBO = 1
  116. local Rooted = false
  117. local SINE = 0
  118. local KEYHOLD = false
  119. local CHANGE = 2 / Animation_Speed
  120. local WALKINGANIM = false
  121. local VALUE1 = false
  122. local VALUE2 = false
  123. local ROBLOXIDLEANIMATION = IT("Animation")
  124. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  125. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  126. --ROBLOXIDLEANIMATION.Parent = Humanoid
  127. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  128. WEAPONGUI.Name = "GUNJOURER_GUI_SHACKLUSTER"
  129. local Effects = IT("Folder", Character)
  130. Effects.Name = "Effects"
  131. local ANIMATOR = Humanoid.Animator
  132. local ANIMATE = Character.Animate
  133. local UNANCHOR = true
  134. local TRIPWIRE = false
  135. local SONGID = 2705508118
  136.  
  137.  
  138.  
  139. --//=================================\\
  140. --\\=================================//
  141.  
  142.  
  143. --//=================================\\
  144. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  145. --\\=================================//
  146.  
  147. ArtificialHB = Instance.new("BindableEvent", script)
  148. ArtificialHB.Name = "ArtificialHB"
  149.  
  150. script:WaitForChild("ArtificialHB")
  151.  
  152. frame = Frame_Speed
  153. tf = 0
  154. allowframeloss = false
  155. tossremainder = false
  156. lastframe = tick()
  157. script.ArtificialHB:Fire()
  158.  
  159. game:GetService("RunService").Heartbeat:connect(function(s, p)
  160. tf = tf + s
  161. if tf >= frame then
  162. if allowframeloss then
  163. ArtificialHB:Fire()
  164. lastframe = tick()
  165. else
  166. for i = 1, math.floor(tf / frame) do
  167. ArtificialHB:Fire()
  168. end
  169. lastframe = tick()
  170. end
  171. if tossremainder then
  172. tf = 0
  173. else
  174. tf = tf - frame * math.floor(tf / frame)
  175. end
  176. end
  177. end)
  178.  
  179. --//=================================\\
  180. --\\=================================//
  181.  
  182. --//=================================\\
  183. --|| SOME FUNCTIONS
  184. --\\=================================//
  185.  
  186. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  187. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  188. end
  189.  
  190. function PositiveAngle(NUMBER)
  191. if NUMBER >= 0 then
  192. NUMBER = 0
  193. end
  194. return NUMBER
  195. end
  196.  
  197. function NegativeAngle(NUMBER)
  198. if NUMBER <= 0 then
  199. NUMBER = 0
  200. end
  201. return NUMBER
  202. end
  203.  
  204. function Swait(NUMBER)
  205. if NUMBER == 0 or NUMBER == nil then
  206. ArtificialHB.Event:wait()
  207. else
  208. for i = 1, NUMBER do
  209. ArtificialHB.Event:wait()
  210. end
  211. end
  212. end
  213.  
  214. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  215. local NEWMESH = IT(MESH)
  216. if MESH == "SpecialMesh" then
  217. NEWMESH.MeshType = MESHTYPE
  218. if MESHID ~= "nil" and MESHID ~= "" then
  219. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  220. end
  221. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  222. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  223. end
  224. end
  225. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  226. NEWMESH.Scale = SCALE
  227. NEWMESH.Parent = PARENT
  228. return NEWMESH
  229. end
  230.  
  231. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  232. local NEWPART = IT("Part")
  233. NEWPART.formFactor = FORMFACTOR
  234. NEWPART.Reflectance = REFLECTANCE
  235. NEWPART.Transparency = TRANSPARENCY
  236. NEWPART.CanCollide = false
  237. NEWPART.Locked = true
  238. NEWPART.Anchored = true
  239. if ANCHOR == false then
  240. NEWPART.Anchored = false
  241. end
  242. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  243. NEWPART.Name = NAME
  244. NEWPART.Size = SIZE
  245. NEWPART.Position = Torso.Position
  246. NEWPART.Material = MATERIAL
  247. NEWPART:BreakJoints()
  248. NEWPART.Parent = PARENT
  249. return NEWPART
  250. end
  251.  
  252. local function weldBetween(a, b)
  253. local weldd = Instance.new("ManualWeld")
  254. weldd.Part0 = a
  255. weldd.Part1 = b
  256. weldd.C0 = CFrame.new()
  257. weldd.C1 = b.CFrame:inverse() * a.CFrame
  258. weldd.Parent = a
  259. return weldd
  260. end
  261.  
  262.  
  263. function QuaternionFromCFrame(cf)
  264. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  265. local trace = m00 + m11 + m22
  266. if trace > 0 then
  267. local s = math.sqrt(1 + trace)
  268. local recip = 0.5 / s
  269. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  270. else
  271. local i = 0
  272. if m11 > m00 then
  273. i = 1
  274. end
  275. if m22 > (i == 0 and m00 or m11) then
  276. i = 2
  277. end
  278. if i == 0 then
  279. local s = math.sqrt(m00 - m11 - m22 + 1)
  280. local recip = 0.5 / s
  281. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  282. elseif i == 1 then
  283. local s = math.sqrt(m11 - m22 - m00 + 1)
  284. local recip = 0.5 / s
  285. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  286. elseif i == 2 then
  287. local s = math.sqrt(m22 - m00 - m11 + 1)
  288. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  289. end
  290. end
  291. end
  292.  
  293. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  294. local xs, ys, zs = x + x, y + y, z + z
  295. local wx, wy, wz = w * xs, w * ys, w * zs
  296. local xx = x * xs
  297. local xy = x * ys
  298. local xz = x * zs
  299. local yy = y * ys
  300. local yz = y * zs
  301. local zz = z * zs
  302. 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))
  303. end
  304.  
  305. function QuaternionSlerp(a, b, t)
  306. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  307. local startInterp, finishInterp;
  308. if cosTheta >= 0.0001 then
  309. if (1 - cosTheta) > 0.0001 then
  310. local theta = ACOS(cosTheta)
  311. local invSinTheta = 1 / SIN(theta)
  312. startInterp = SIN((1 - t) * theta) * invSinTheta
  313. finishInterp = SIN(t * theta) * invSinTheta
  314. else
  315. startInterp = 1 - t
  316. finishInterp = t
  317. end
  318. else
  319. if (1 + cosTheta) > 0.0001 then
  320. local theta = ACOS(-cosTheta)
  321. local invSinTheta = 1 / SIN(theta)
  322. startInterp = SIN((t - 1) * theta) * invSinTheta
  323. finishInterp = SIN(t * theta) * invSinTheta
  324. else
  325. startInterp = t - 1
  326. finishInterp = t
  327. end
  328. end
  329. 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
  330. end
  331.  
  332. function Clerp(a, b, t)
  333. local qa = {QuaternionFromCFrame(a)}
  334. local qb = {QuaternionFromCFrame(b)}
  335. local ax, ay, az = a.x, a.y, a.z
  336. local bx, by, bz = b.x, b.y, b.z
  337. local _t = 1 - t
  338. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  339. end
  340.  
  341. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  342. local frame = IT("Frame")
  343. frame.BackgroundTransparency = TRANSPARENCY
  344. frame.BorderSizePixel = BORDERSIZEPIXEL
  345. frame.Position = POSITION
  346. frame.Size = SIZE
  347. frame.BackgroundColor3 = COLOR
  348. frame.BorderColor3 = BORDERCOLOR
  349. frame.Name = NAME
  350. frame.Parent = PARENT
  351. return frame
  352. end
  353.  
  354. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  355. local label = IT("TextLabel")
  356. label.BackgroundTransparency = 1
  357. label.Size = UD2(1, 0, 1, 0)
  358. label.Position = UD2(0, 0, 0, 0)
  359. label.TextColor3 = TEXTCOLOR
  360. label.TextStrokeTransparency = STROKETRANSPARENCY
  361. label.TextTransparency = TRANSPARENCY
  362. label.FontSize = TEXTFONTSIZE
  363. label.Font = TEXTFONT
  364. label.BorderSizePixel = BORDERSIZEPIXEL
  365. label.TextScaled = false
  366. label.Text = TEXT
  367. label.Name = NAME
  368. label.Parent = PARENT
  369. return label
  370. end
  371.  
  372. function NoOutlines(PART)
  373. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  374. end
  375.  
  376. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  377. local NEWWELD = IT(TYPE)
  378. NEWWELD.Part0 = PART0
  379. NEWWELD.Part1 = PART1
  380. NEWWELD.C0 = C0
  381. NEWWELD.C1 = C1
  382. NEWWELD.Parent = PARENT
  383. return NEWWELD
  384. end
  385.  
  386. local S = IT("Sound")
  387. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  388. local NEWSOUND = nil
  389. coroutine.resume(coroutine.create(function()
  390. NEWSOUND = S:Clone()
  391. NEWSOUND.Parent = PARENT
  392. NEWSOUND.Volume = VOLUME
  393. NEWSOUND.Pitch = PITCH
  394. NEWSOUND.SoundId = "rbxassetid://"..ID
  395. NEWSOUND:play()
  396. if DOESLOOP == true then
  397. NEWSOUND.Looped = true
  398. else
  399. repeat wait(1) until NEWSOUND.Playing == false
  400. NEWSOUND:remove()
  401. end
  402. end))
  403. return NEWSOUND
  404. end
  405.  
  406. function CFrameFromTopBack(at, top, back)
  407. local right = top:Cross(back)
  408. 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)
  409. end
  410.  
  411. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  412. function WACKYEFFECT(Table)
  413. local TYPE = (Table.EffectType or "Sphere")
  414. local SIZE = (Table.Size or VT(1,1,1))
  415. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  416. local TRANSPARENCY = (Table.Transparency or 0)
  417. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  418. local CFRAME = (Table.CFrame or Torso.CFrame)
  419. local MOVEDIRECTION = (Table.MoveToPos or nil)
  420. local ROTATION1 = (Table.RotationX or 0)
  421. local ROTATION2 = (Table.RotationY or 0)
  422. local ROTATION3 = (Table.RotationZ or 0)
  423. local MATERIAL = (Table.Material or "Neon")
  424. local COLOR = (Table.Color or C3(1,1,1))
  425. local TIME = (Table.Time or 45)
  426. local SOUNDID = (Table.SoundID or nil)
  427. local SOUNDPITCH = (Table.SoundPitch or nil)
  428. local SOUNDVOLUME = (Table.SoundVolume or nil)
  429. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  430. local BOOMERANG = (Table.Boomerang or 0)
  431. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  432. coroutine.resume(coroutine.create(function()
  433. local PLAYSSOUND = false
  434. local SOUND = nil
  435. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  436. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  437. PLAYSSOUND = true
  438. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  439. end
  440. EFFECT.Color = COLOR
  441. local MSH = nil
  442. if TYPE == "Sphere" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  444. elseif TYPE == "Block" or TYPE == "Box" then
  445. MSH = IT("BlockMesh",EFFECT)
  446. MSH.Scale = SIZE
  447. elseif TYPE == "Wave" then
  448. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  449. elseif TYPE == "Ring" then
  450. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  451. elseif TYPE == "Slash" then
  452. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  453. elseif TYPE == "Round Slash" then
  454. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  455. elseif TYPE == "Swirl" then
  456. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  457. elseif TYPE == "Skull" then
  458. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  459. elseif TYPE == "Crystal" then
  460. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  461. end
  462. if MSH ~= nil then
  463. local BOOMR1 = 1+BOOMERANG/50
  464. local BOOMR2 = 1+SIZEBOOMERANG/50
  465. local MOVESPEED = nil
  466. if MOVEDIRECTION ~= nil then
  467. if USEBOOMERANGMATH == true then
  468. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  469. else
  470. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  471. end
  472. end
  473. local GROWTH = nil
  474. if USEBOOMERANGMATH == true then
  475. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  476. else
  477. GROWTH = (SIZE - ENDSIZE)
  478. end
  479. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  480. if TYPE == "Block" then
  481. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  482. else
  483. EFFECT.CFrame = CFRAME
  484. end
  485. if USEBOOMERANGMATH == true then
  486. for LOOP = 1, TIME+1 do
  487. Swait()
  488. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  489. if TYPE == "Wave" then
  490. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  491. end
  492. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  493. if TYPE == "Block" then
  494. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  495. else
  496. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  497. end
  498. if MOVEDIRECTION ~= nil then
  499. local ORI = EFFECT.Orientation
  500. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  501. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  502. end
  503. end
  504. else
  505. for LOOP = 1, TIME+1 do
  506. Swait()
  507. MSH.Scale = MSH.Scale - GROWTH/TIME
  508. if TYPE == "Wave" then
  509. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  510. end
  511. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  512. if TYPE == "Block" then
  513. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  514. else
  515. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  516. end
  517. if MOVEDIRECTION ~= nil then
  518. local ORI = EFFECT.Orientation
  519. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  520. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  521. end
  522. end
  523. end
  524. EFFECT.Transparency = 1
  525. if PLAYSSOUND == false then
  526. EFFECT:remove()
  527. else
  528. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  529. EFFECT:remove()
  530. end
  531. else
  532. if PLAYSSOUND == false then
  533. EFFECT:remove()
  534. else
  535. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  536. EFFECT:remove()
  537. end
  538. end
  539. end))
  540. end
  541.  
  542. function MakeForm(PART,TYPE)
  543. if TYPE == "Cyl" then
  544. local MSH = IT("CylinderMesh",PART)
  545. elseif TYPE == "Ball" then
  546. local MSH = IT("SpecialMesh",PART)
  547. MSH.MeshType = "Sphere"
  548. elseif TYPE == "Wedge" then
  549. local MSH = IT("SpecialMesh",PART)
  550. MSH.MeshType = "Wedge"
  551. end
  552. end
  553.  
  554. Debris = game:GetService("Debris")
  555.  
  556. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  557. local DIRECTION = CF(StartPos,EndPos).lookVector
  558. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  559. end
  560.  
  561. --//=================================\\
  562. --|| WEAPON CREATION
  563. --\\=================================//
  564.  
  565. local BMUSIC = IT("Sound",Character)
  566. BANHAMMER = script.Hammer:Clone()
  567. BANHAMMER.Parent = Character
  568. HANDLE = BANHAMMER.HandlePart
  569. HANDLE.CFrame = RightArm.CFrame*CF(0,1.2,-4) * ANGLES(RAD(120),RAD(90),RAD(0))
  570. HANDLE.Anchored = false
  571. weldBetween(HANDLE,RightArm)
  572. for _, c in pairs(BANHAMMER:GetChildren()) do
  573. c.Anchored = false
  574. c.CanCollide = true
  575. end
  576.  
  577.  
  578. local BODY = {}
  579. for _, c in pairs(Character:GetDescendants()) do
  580. if c:IsA("BasePart") and c.Name ~= "Handle" then
  581. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  582. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  583. end
  584. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  585. elseif c:IsA("JointInstance") then
  586. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  587. end
  588. end
  589. for e = 1, #BODY do
  590. if BODY[e] ~= nil then
  591. local STUFF = BODY[e]
  592. local PART = STUFF[1]
  593. local PARENT = STUFF[2]
  594. local MATERIAL = STUFF[3]
  595. local COLOR = STUFF[4]
  596. local TRANSPARENCY = STUFF[5]
  597. if PART.ClassName == "Part" and PART ~= RootPart then
  598. PART.Material = MATERIAL
  599. PART.Color = COLOR
  600. PART.Transparency = TRANSPARENCY
  601. end
  602. PART.AncestryChanged:Connect(function()
  603. PART.Parent = PARENT
  604. end)
  605. end
  606. end
  607. function refit()
  608. Character.Parent = workspace
  609. for e = 1, #BODY do
  610. if BODY[e] ~= nil then
  611. local STUFF = BODY[e]
  612. local PART = STUFF[1]
  613. local PARENT = STUFF[2]
  614. local MATERIAL = STUFF[3]
  615. local COLOR = STUFF[4]
  616. local TRANSPARENCY = STUFF[5]
  617. if PART:IsA("BasePart") and PART ~= RootPart then
  618. PART.Material = MATERIAL
  619. PART.Color = COLOR
  620. PART.Transparency = TRANSPARENCY
  621. end
  622. if PART.Parent ~= PARENT then
  623. Humanoid:remove()
  624. PART.Parent = PARENT
  625. Humanoid = IT("Humanoid",Character)
  626. end
  627. end
  628. end
  629. end
  630.  
  631. Humanoid.Died:connect(function()
  632. refit()
  633. end)
  634.  
  635. local PartEmmit1 = IT("ParticleEmitter", BANHAMMER.Head)
  636. PartEmmit1.LightEmission = 1
  637. PartEmmit1.Texture = "rbxassetid://284205403"
  638. PartEmmit1.Color = ColorSequence.new(BrickColor.new("Really red").Color)
  639. PartEmmit1.Rate = 150
  640. PartEmmit1.Lifetime = NumberRange.new(1)
  641. PartEmmit1.Size = NumberSequence.new(1.9,1.9,1.9)
  642. PartEmmit1.Transparency = NumberSequence.new(1,1,1)
  643. PartEmmit1.Speed = NumberRange.new(0, 0)
  644. PartEmmit1.VelocitySpread = 30000
  645. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  646. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  647.  
  648. local ban = false
  649. local BanCommand = ""
  650. PartEmmit1.Transparency = NumberSequence.new(1,1,1)
  651. Player.Chatted:connect(function(Message)
  652. if Message:sub(1,9) == "!NoReason" then
  653. ban = false
  654. PartEmmit1.Transparency = NumberSequence.new(1,1,1)
  655. end
  656. if Message:sub(1, 10) == "SetReason!" then
  657. Reason = Message:string(BanCommand + 0)
  658. BanCommand = ""..Reason
  659. ban = true
  660. PartEmmit1.Transparency = NumberSequence.new(0,0,0)
  661. end
  662. end)
  663.  
  664. --//=================================\\
  665. --|| DAMAGING
  666. --\\=================================//
  667.  
  668. function ApplyDamage(Humanoid,Damage)
  669. Damage = Damage * DAMAGEMULTIPLIER
  670. if Humanoid.Health < 2000 then
  671. if Humanoid.Health - Damage > 0 then
  672. Humanoid.Health = Humanoid.Health - Damage
  673. else
  674. Humanoid.Parent:BreakJoints()
  675. end
  676. else
  677. Humanoid.Parent:BreakJoints()
  678. end
  679. end
  680.  
  681. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  682. for index, CHILD in pairs(workspace:GetDescendants()) do
  683. if CHILD.ClassName == "Model" and CHILD ~= Character then
  684. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  685. if HUM then
  686. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  687. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  688. if INSTAKILL == true then
  689. CHILD:BreakJoints()
  690. else
  691. local DMG = MRANDOM(MINDMG, MAXDMG)
  692. ApplyDamage(HUM, DMG)
  693. end
  694. if FLING > 0 then
  695. for _, c in pairs(CHILD:GetChildren()) do
  696. if c:IsA("BasePart") then
  697. local bv = Instance.new("BodyVelocity")
  698. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  699. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  700. bv.Parent = c
  701. Debris:AddItem(bv, 0.05)
  702. end
  703. end
  704. end
  705. end
  706. end
  707. end
  708. end
  709. end
  710.  
  711. local kickedtable = {}
  712.  
  713. function BAN(People)
  714. local BANFOLDER = IT("Folder",Effects)
  715. local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
  716. BANFOLDER.Parent = People
  717. naeeym2.AlwaysOnTop = false
  718. naeeym2.Size = UDim2.new(5,35,2,35)
  719. naeeym2.StudsOffset = Vector3.new(0,1,0)
  720. naeeym2.Name = "AAAA"
  721. local tecks2 = Instance.new("TextLabel",naeeym2)
  722. tecks2.BackgroundTransparency = 1
  723. tecks2.TextScaled = true
  724. tecks2.BorderSizePixel = 0
  725. tecks2.Text = "BANNED"
  726. tecks2.Font = "Code"
  727. tecks2.TextSize = 30
  728. tecks2.TextStrokeTransparency = 1
  729. tecks2.TextColor3 = Color3.new(1,0,0)
  730. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  731. tecks2.Size = UDim2.new(1,0,0.5,0)
  732. tecks2.Parent = naeeym2
  733. People:Kick(""..BanCommand)
  734. end
  735.  
  736. function BANNEAREST(POS,RANGE)
  737. for i,v in ipairs(workspace:GetChildren()) do
  738. local body = v:GetChildren()
  739. for part = 1, #body do
  740. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  741. if(body[part].Position - POS).Magnitude < RANGE then
  742. if v:FindFirstChildOfClass("Humanoid") then
  743. local Person = game:GetService("Players"):GetPlayerFromCharacter(v)
  744. table.insert(kickedtable,Person.Name)
  745. wait()
  746. BAN(Person)
  747. end
  748. end
  749. end
  750. end
  751. end
  752. end
  753.  
  754. --//=================================\\
  755. --|| ATTACK FUNCTIONS AND STUFF
  756. --\\=================================//
  757.  
  758. function Attack()
  759. ATTACK = true
  760. Rooted = false
  761. for i = 0, 1.5, 0.1 do
  762. Swait()
  763. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  764. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(-21 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  765. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(140 + 2 * COS(SINE / 12)), RAD(0), RAD(15 + 3 * COS(SINE / 12) - 3 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  766. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(35), RAD(0), RAD(-25 + 5 * COS(SINE / 12))) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  767. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), -.5) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  768. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  769. end
  770. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = BANHAMMER.Head.CFrame, MoveToPos = BANHAMMER.Head.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  771. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(2,0.5,2), Size2 = VT(5,0.5,5), Transparency = 0, Transparency2 = 1, CFrame = BANHAMMER.Head.CFrame, MoveToPos = BANHAMMER.Head.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  772.  
  773. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,0.5,5), Transparency = 0, Transparency2 = 1, CFrame = BANHAMMER.Head.CFrame, MoveToPos = BANHAMMER.Head.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  774.  
  775. CreateSound(570433034, BANHAMMER.Head, 5, 1)
  776.  
  777. for i = 0, 1.5, 0.1 do
  778. Swait()
  779. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  780. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  781. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-35 + 2 * COS(SINE / 12)), RAD(0), RAD(15 + 3 * COS(SINE / 12) - 3 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  782. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 + 5 * COS(SINE / 12))) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  783. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), -.5) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  784. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  785. end
  786. CreateSound(570433034, BANHAMMER.Head, 5, 1)
  787. ApplyAoE(BANHAMMER.Head.Position, 25, 25, 25, 45, false)
  788. for i = 1, 5 do
  789. WACKYEFFECT({
  790. Time = 35,
  791. EffectType = "Wave",
  792. Size = VT(5, 0.5, 5),
  793. Size2 = VT(15 + i * 3, 0, 15 + i * 3),
  794. Transparency = 0.7,
  795. Transparency2 = 1,
  796. CFrame = CF(BANHAMMER.Head.CFrame * CF(0, 0, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  797. MoveToPos = nil,
  798. RotationX = 0,
  799. RotationY = 0,
  800. RotationZ = 0,
  801. Material = "Neon",
  802. Color = C3(1, 1, 1),
  803. SoundID = nil,
  804. SoundPitch = nil,
  805. SoundVolume = nil
  806. })
  807. end
  808. ATTACK = false
  809. Rooted = false
  810. end
  811.  
  812. function BanAttack()
  813. ATTACK = true
  814. Rooted = false
  815. for i = 0, 1.5, 0.1 do
  816. Swait()
  817. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  818. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(-21 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  819. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(140 + 2 * COS(SINE / 12)), RAD(0), RAD(15 + 3 * COS(SINE / 12) - 3 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  820. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(35), RAD(0), RAD(-25 + 5 * COS(SINE / 12))) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  821. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), -.5) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  822. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  823. end
  824. CreateSound(570433034, BANHAMMER.Head, 5, 1)
  825. for i = 0, 1.5, 0.1 do
  826. Swait()
  827. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  828. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  829. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-35 + 2 * COS(SINE / 12)), RAD(0), RAD(15 + 3 * COS(SINE / 12) - 3 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  830. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 + 5 * COS(SINE / 12))) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  831. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), -.5) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  832. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  833. end
  834. CreateSound(570433034, BANHAMMER.Head, 5, 1)
  835. BANNEAREST(BANHAMMER.Head.CFrame*CF(0,0,-6).p,25)
  836. for i = 1, 5 do
  837. WACKYEFFECT({
  838. Time = 25,
  839. EffectType = "Wave",
  840. Size = VT(5, 0.5, 5),
  841. Size2 = VT(15 + i * 3, 0, 15 + i * 3),
  842. Transparency = 0.7,
  843. Transparency2 = 1,
  844. CFrame = CF(BANHAMMER.Head.CFrame * CF(0, 0, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  845. MoveToPos = nil,
  846. RotationX = 0,
  847. RotationY = 0,
  848. RotationZ = 0,
  849. Material = "Neon",
  850. Color = C3(1, 0, 0),
  851. SoundID = nil,
  852. SoundPitch = nil,
  853. SoundVolume = nil
  854. })
  855. end
  856. ATTACK = false
  857. Rooted = false
  858. end
  859.  
  860. --//=================================\\
  861. --|| ASSIGN THINGS TO KEYS
  862. --\\=================================//
  863.  
  864. function MouseDown(Mouse)
  865. HOLD = true
  866. if ATTACK == false then
  867. if ban == false then
  868. Attack()
  869. elseif ban == true then
  870. BanAttack()
  871. end
  872. end
  873. end
  874.  
  875. function MouseUp(Mouse)
  876. HOLD = false
  877. end
  878.  
  879. local READYTODOUBLE = false
  880. local DOUBLED = false
  881.  
  882. function KeyDown(Key)
  883. KEYHOLD = true
  884. end
  885.  
  886. function KeyUp(Key)
  887. KEYHOLD = false
  888. end
  889.  
  890. Mouse.Button1Down:connect(function(NEWKEY)
  891. MouseDown(NEWKEY)
  892. end)
  893. Mouse.Button1Up:connect(function(NEWKEY)
  894. MouseUp(NEWKEY)
  895. end)
  896. Mouse.KeyDown:connect(function(NEWKEY)
  897. KeyDown(NEWKEY)
  898. end)
  899. Mouse.KeyUp:connect(function(NEWKEY)
  900. KeyUp(NEWKEY)
  901. end)
  902.  
  903. --//=================================\\
  904. --\\=================================//
  905.  
  906. function unanchor()
  907. for _, c in pairs(Character:GetChildren()) do
  908. if c:IsA("BasePart") and c ~= RootPart then
  909. c.Anchored = false
  910. end
  911. end
  912. if UNANCHOR == true then
  913. RootPart.Anchored = false
  914. else
  915. RootPart.Anchored = true
  916. end
  917. end
  918.  
  919. --//=================================\\
  920. --|| WRAP THE WHOLE SCRIPT UP
  921. --\\=================================//
  922.  
  923. Humanoid.Changed:connect(function(Jump)
  924. if Jump == "Jump" and (Disable_Jump == true) then
  925. Humanoid.Jump = false
  926. elseif Jump == "Jump" and (Disable_Jump == false) and DOUBLED == false then
  927. wait(0.1)
  928. READYTODOUBLE = true
  929. end
  930. end)
  931.  
  932. while true do
  933. Swait()
  934. script.Parent = WEAPONGUI
  935. refit()
  936. ANIMATE.Parent = nil
  937. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  938. v:Stop();
  939. end
  940. SINE = SINE + CHANGE
  941. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  942. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  943. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  944. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
  945. ANIMATOR.Parent = nil
  946. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  947. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.11 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  948. 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)
  949. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.845 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20+70 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  950. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.845 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20+70 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  951. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  952. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  953. 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)
  954. 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)
  955. 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)
  956. end
  957. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  958. ANIM = "Jump"
  959. if ATTACK == false then
  960. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  961. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  962. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(15 + 5 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  963. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  964. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  965. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  966. end
  967. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  968. ANIM = "Fall"
  969. if ATTACK == false then
  970. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  971. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180 - 4 * COS(SINE / 6)), RAD(0), RAD(15 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  974. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  975. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  976. end
  977. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  978. ANIM = "Idle"
  979. DOUBLED = false
  980. READYTODOUBLE = false
  981. if ATTACK == false then
  982. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  983. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(21 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  984. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(100 + 2 * COS(SINE / 12)), RAD(0), RAD(15 + 3 * COS(SINE / 12) - 3 * SIN(SINE / 12))) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  985. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-3.5), RAD(-25 + 5 * COS(SINE / 12))) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  986. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  987. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), -.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  988. end
  989. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  990. ANIM = "Walk"
  991. DOUBLED = false
  992. READYTODOUBLE = false
  993. if ATTACK == false then
  994. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(0), RAD(0), RAD(-15 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  995. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(10 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  996. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100 + 2 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  997. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70 * SIN(SINE / WALKSPEEDVALUE)), RAD(5), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  998. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10)), 2 / Animation_Speed)
  999. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 2 / Animation_Speed)
  1000. end
  1001. end
  1002. unanchor()
  1003. if Rooted == false then
  1004. Disable_Jump = false
  1005. Humanoid.WalkSpeed = Speed
  1006. elseif Rooted == true then
  1007. Disable_Jump = true
  1008. Humanoid.WalkSpeed = 0
  1009. end
  1010. BMUSIC.SoundId = "rbxassetid://"..SONGID
  1011. BMUSIC.Looped = true
  1012. BMUSIC.Pitch = 1
  1013. BMUSIC.Volume = 5
  1014. BMUSIC.Playing = true
  1015. if BMUSIC.Parent ~= Character then
  1016. BMUSIC = IT("Sound",Character)
  1017. end
  1018. Humanoid.Name = "NONHUM"
  1019. Humanoid.Health = "inf"
  1020. Humanoid.MaxHealth = "inf"
  1021. end
  1022.  
  1023. --//=================================\\
  1024. --\\=================================//
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030. --//====================================================\\--
  1031. --|| END OF SCRIPT
  1032. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement