Advertisement
Cute_Sylveon

rr

Sep 26th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.32 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. wait(0.2)
  143.  
  144. Player = game:GetService("Players").LocalPlayer
  145. PlayerGui = Player.PlayerGui
  146. Cam = workspace.CurrentCamera
  147. Backpack = Player.Backpack
  148. Character = Player.Character
  149. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  150. Mouse = Player:GetMouse()
  151. RootPart = Character["HumanoidRootPart"]
  152. Torso = Character["Torso"]
  153. Head = Character["Head"]
  154. RightArm = Character["Right Arm"]
  155. LeftArm = Character["Left Arm"]
  156. RightLeg = Character["Right Leg"]
  157. LeftLeg = Character["Left Leg"]
  158. RootJoint = RootPart["RootJoint"]
  159. Neck = Torso["Neck"]
  160. RightShoulder = Torso["Right Shoulder"]
  161. LeftShoulder = Torso["Left Shoulder"]
  162. RightHip = Torso["Right Hip"]
  163. LeftHip = Torso["Left Hip"]
  164. local sick = Instance.new("Sound",Character)
  165.  
  166. IT = Instance.new
  167. CF = CFrame.new
  168. VT = Vector3.new
  169. RAD = math.rad
  170. C3 = Color3.new
  171. UD2 = UDim2.new
  172. BRICKC = BrickColor.new
  173. ANGLES = CFrame.Angles
  174. EULER = CFrame.fromEulerAnglesXYZ
  175. COS = math.cos
  176. ACOS = math.acos
  177. SIN = math.sin
  178. ASIN = math.asin
  179. ABS = math.abs
  180. MRANDOM = math.random
  181. FLOOR = math.floor
  182.  
  183. --//=================================\\
  184. --|| USEFUL VALUES
  185. --\\=================================//
  186.  
  187. Animation_Speed = 3
  188. Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
  189. local Speed = 45
  190. local SIZE = 1
  191. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  192. local NECKC0 = CF(0, 1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  193. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  194. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  195. local ANIM = "Idle"
  196. local ATTACK = false
  197. local COMBO = 1
  198. local Rooted = false
  199. local SINE = 0
  200. local CHANGE = 2 / Animation_Speed
  201. local ROBLOXIDLEANIMATION = IT("Animation")
  202. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  203. WEAPONGUI.Name = "Big Boie Squad"
  204. local ANIMATOR = Humanoid.Animator
  205. local ANIMATE = Character.Animate
  206. local UNANCHOR = true
  207. local KILLCOUNT = 0
  208.  
  209. --//=================================\\
  210. --\\=================================//
  211.  
  212.  
  213. --//=================================\\
  214. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  215. --\\=================================//
  216.  
  217. ArtificialHB = Instance.new("BindableEvent", script)
  218. ArtificialHB.Name = "ArtificialHB"
  219.  
  220. script:WaitForChild("ArtificialHB")
  221.  
  222. frame = Frame_Speed
  223. tf = 0
  224. allowframeloss = false
  225. tossremainder = false
  226. lastframe = tick()
  227. script.ArtificialHB:Fire()
  228.  
  229. game:GetService("RunService").Heartbeat:connect(function(s, p)
  230. tf = tf + s
  231. if tf >= frame then
  232. if allowframeloss then
  233. script.ArtificialHB:Fire()
  234. lastframe = tick()
  235. else
  236. for i = 1, math.floor(tf / frame) do
  237. script.ArtificialHB:Fire()
  238. end
  239. lastframe = tick()
  240. end
  241. if tossremainder then
  242. tf = 0
  243. else
  244. tf = tf - frame * math.floor(tf / frame)
  245. end
  246. end
  247. end)
  248.  
  249. --//=================================\\
  250. --\\=================================//
  251.  
  252. --//=================================\\
  253. --|| SOME FUNCTIONS
  254. --\\=================================//
  255.  
  256. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  257. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  258. end
  259.  
  260. function PositiveAngle(NUMBER)
  261. if NUMBER >= 0 then
  262. NUMBER = 0
  263. end
  264. return NUMBER
  265. end
  266.  
  267. function NegativeAngle(NUMBER)
  268. if NUMBER <= 0 then
  269. NUMBER = 0
  270. end
  271. return NUMBER
  272. end
  273.  
  274. function Swait(NUMBER)
  275. if NUMBER == 0 or NUMBER == nil then
  276. ArtificialHB.Event:wait()
  277. else
  278. for i = 1, NUMBER do
  279. ArtificialHB.Event:wait()
  280. end
  281. end
  282. end
  283.  
  284. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  285. local NEWMESH = IT(MESH)
  286. if MESH == "SpecialMesh" then
  287. NEWMESH.MeshType = MESHTYPE
  288. if MESHID ~= "nil" and MESHID ~= "" then
  289. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  290. end
  291. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  292. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  293. end
  294. end
  295. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  296. NEWMESH.Scale = SCALE
  297. NEWMESH.Parent = PARENT
  298. return NEWMESH
  299. end
  300.  
  301. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  302. local NEWPART = IT("Part")
  303. NEWPART.formFactor = FORMFACTOR
  304. NEWPART.Reflectance = REFLECTANCE
  305. NEWPART.Transparency = TRANSPARENCY
  306. NEWPART.CanCollide = false
  307. NEWPART.Locked = true
  308. NEWPART.Anchored = true
  309. if ANCHOR == false then
  310. NEWPART.Anchored = false
  311. end
  312. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  313. NEWPART.Name = NAME
  314. NEWPART.Size = SIZE
  315. NEWPART.Position = Torso.Position
  316. NEWPART.Material = MATERIAL
  317. NEWPART:BreakJoints()
  318. NEWPART.Parent = PARENT
  319. return NEWPART
  320. end
  321.  
  322. local function weldBetween(a, b)
  323. local weldd = Instance.new("ManualWeld")
  324. weldd.Part0 = a
  325. weldd.Part1 = b
  326. weldd.C0 = CFrame.new()
  327. weldd.C1 = b.CFrame:inverse() * a.CFrame
  328. weldd.Parent = a
  329. return weldd
  330. end
  331.  
  332.  
  333. function QuaternionFromCFrame(cf)
  334. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  335. local trace = m00 + m11 + m22
  336. if trace > 0 then
  337. local s = math.sqrt(1 + trace)
  338. local recip = 0.5 / s
  339. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  340. else
  341. local i = 0
  342. if m11 > m00 then
  343. i = 1
  344. end
  345. if m22 > (i == 0 and m00 or m11) then
  346. i = 2
  347. end
  348. if i == 0 then
  349. local s = math.sqrt(m00 - m11 - m22 + 1)
  350. local recip = 0.5 / s
  351. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  352. elseif i == 1 then
  353. local s = math.sqrt(m11 - m22 - m00 + 1)
  354. local recip = 0.5 / s
  355. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  356. elseif i == 2 then
  357. local s = math.sqrt(m22 - m00 - m11 + 1)
  358. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  359. end
  360. end
  361. end
  362.  
  363. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  364. local xs, ys, zs = x + x, y + y, z + z
  365. local wx, wy, wz = w * xs, w * ys, w * zs
  366. local xx = x * xs
  367. local xy = x * ys
  368. local xz = x * zs
  369. local yy = y * ys
  370. local yz = y * zs
  371. local zz = z * zs
  372. 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))
  373. end
  374.  
  375. function QuaternionSlerp(a, b, t)
  376. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  377. local startInterp, finishInterp;
  378. if cosTheta >= 0.0001 then
  379. if (1 - cosTheta) > 0.0001 then
  380. local theta = ACOS(cosTheta)
  381. local invSinTheta = 1 / SIN(theta)
  382. startInterp = SIN((1 - t) * theta) * invSinTheta
  383. finishInterp = SIN(t * theta) * invSinTheta
  384. else
  385. startInterp = 1 - t
  386. finishInterp = t
  387. end
  388. else
  389. if (1 + cosTheta) > 0.0001 then
  390. local theta = ACOS(-cosTheta)
  391. local invSinTheta = 1 / SIN(theta)
  392. startInterp = SIN((t - 1) * theta) * invSinTheta
  393. finishInterp = SIN(t * theta) * invSinTheta
  394. else
  395. startInterp = t - 1
  396. finishInterp = t
  397. end
  398. end
  399. 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
  400. end
  401.  
  402. function Clerp(a, b, t)
  403. local qa = {QuaternionFromCFrame(a)}
  404. local qb = {QuaternionFromCFrame(b)}
  405. local ax, ay, az = a.x, a.y, a.z
  406. local bx, by, bz = b.x, b.y, b.z
  407. local _t = 1 - t
  408. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  409. end
  410.  
  411. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  412. local frame = IT("Frame")
  413. frame.BackgroundTransparency = TRANSPARENCY
  414. frame.BorderSizePixel = BORDERSIZEPIXEL
  415. frame.Position = POSITION
  416. frame.Size = SIZE
  417. frame.BackgroundColor3 = COLOR
  418. frame.BorderColor3 = BORDERCOLOR
  419. frame.Name = NAME
  420. frame.Parent = PARENT
  421. return frame
  422. end
  423.  
  424. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  425. local label = IT("TextLabel")
  426. label.BackgroundTransparency = 1
  427. label.Size = UD2(1, 0, 1, 0)
  428. label.Position = UD2(0, 0, 0, 0)
  429. label.TextColor3 = TEXTCOLOR
  430. label.TextStrokeTransparency = STROKETRANSPARENCY
  431. label.TextTransparency = TRANSPARENCY
  432. label.FontSize = TEXTFONTSIZE
  433. label.Font = TEXTFONT
  434. label.BorderSizePixel = BORDERSIZEPIXEL
  435. label.TextScaled = false
  436. label.Text = TEXT
  437. label.Name = NAME
  438. label.Parent = PARENT
  439. return label
  440. end
  441.  
  442. function NoOutlines(PART)
  443. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  444. end
  445.  
  446. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  447. local NEWWELD = IT(TYPE)
  448. NEWWELD.Part0 = PART0
  449. NEWWELD.Part1 = PART1
  450. NEWWELD.C0 = C0
  451. NEWWELD.C1 = C1
  452. NEWWELD.Parent = PARENT
  453. return NEWWELD
  454. end
  455.  
  456. local S = IT("Sound")
  457. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  458. local NEWSOUND = nil
  459. coroutine.resume(coroutine.create(function()
  460. NEWSOUND = S:Clone()
  461. NEWSOUND.Parent = PARENT
  462. NEWSOUND.Volume = VOLUME
  463. NEWSOUND.Pitch = PITCH
  464. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  465. NEWSOUND:play()
  466. if DOESLOOP == true then
  467. NEWSOUND.Looped = true
  468. else
  469. repeat wait(1) until NEWSOUND.Playing == false
  470. NEWSOUND:remove()
  471. end
  472. end))
  473. return NEWSOUND
  474. end
  475.  
  476. function CFrameFromTopBack(at, top, back)
  477. local right = top:Cross(back)
  478. 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)
  479. end
  480.  
  481. function MakeForm(PART,TYPE)
  482. if TYPE == "Cyl" then
  483. local MSH = IT("CylinderMesh",PART)
  484. elseif TYPE == "Ball" then
  485. local MSH = IT("SpecialMesh",PART)
  486. MSH.MeshType = "Sphere"
  487. elseif TYPE == "Wedge" then
  488. local MSH = IT("SpecialMesh",PART)
  489. MSH.MeshType = "Wedge"
  490. end
  491. end
  492.  
  493. Debris = game:GetService("Debris")
  494.  
  495. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  496. local DIRECTION = CF(StartPos,EndPos).lookVector
  497. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  498. end
  499.  
  500. --//=================================\\
  501. --|| WEAPON CREATION
  502. --\\=================================//
  503.  
  504. Humanoid.Parent = nil
  505. RootPart.Size = RootPart.Size*SIZE
  506. Torso.Size = Torso.Size*SIZE
  507. RightArm.Size = RightArm.Size*SIZE
  508. RightLeg.Size = RightLeg.Size*SIZE
  509. LeftArm.Size = LeftArm.Size*SIZE
  510. LeftLeg.Size = LeftLeg.Size*SIZE
  511. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  512. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  513. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  514. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  515. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  516. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  517. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  518. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  519. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  520. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  521. Head.Size = Head.Size*SIZE
  522. RootJoint.Parent = RootPart
  523. Neck.Parent = Torso
  524. RightShoulder.Parent = Torso
  525. LeftShoulder.Parent = Torso
  526. RightHip.Parent = Torso
  527. LeftHip.Parent = Torso
  528.  
  529. Humanoid.Parent = Character
  530.  
  531. Humanoid.Died:connect(function()
  532. ATTACK = true
  533. end)
  534. --//=================================\\
  535. --|| DAMAGING
  536. --\\=================================//
  537.  
  538. local EXPLOSION = IT("Explosion",nil)
  539. EXPLOSION.BlastPressure = 0
  540. function PUNCH(Fist)
  541. TOUCH = Fist.Touched:Connect(function(hit)
  542. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  543. local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  544. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  545. if TORSO and HUM.Health > 0 then
  546. CreateSound(296102734,Fist,6,1,false)
  547. CreateSound(12222242,TORSO,7,MRANDOM(8,14)/10,false)
  548. TORSO.Parent:BreakJoints()
  549. for _, c in pairs(TORSO.Parent:GetChildren()) do
  550. if c:IsA("BasePart") then
  551. local bv = Instance.new("BodyVelocity",c)
  552. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  553. bv.velocity = CF(TORSO.Position,c.Position+VT(0,0.1,0)).lookVector*MRANDOM(70,100)
  554. Debris:AddItem(bv,0.05)
  555. end
  556. end
  557. local BOOM = EXPLOSION:Clone()
  558. BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
  559. BOOM.Parent = Character
  560. TOUCH:Disconnect()
  561. KILLCOUNT = KILLCOUNT + 1
  562. end
  563. elseif hit.Material == Enum.Material.Glass or hit.Transparency > 0.2 then
  564. hit:remove()
  565. CreateSound(296102734,Fist,6,1,false)
  566. local BOOM = EXPLOSION:Clone()
  567. BOOM.BlastPressure = 15
  568. BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
  569. BOOM.Parent = Character
  570. elseif hit.Anchored == false then
  571. CreateSound(296102734,Fist,6,1,false)
  572. local BOOM = EXPLOSION:Clone()
  573. BOOM.BlastPressure = 70
  574. BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p
  575. BOOM.Parent = Character
  576. TOUCH:Disconnect()
  577. end
  578. end)
  579. return TOUCH
  580. end
  581.  
  582. --//=================================\\
  583. --|| ATTACK FUNCTIONS AND STUFF
  584. --\\=================================//
  585.  
  586. function Yeet()
  587. ATTACK = true
  588. Rooted = false
  589. if COMBO == 1 then
  590. COMBO = 2
  591. for i=0, 0.1, 0.1 / Animation_Speed do
  592. Swait()
  593. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed)
  594. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed)
  595. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  596. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  597. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  598. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  599. end
  600. local FIST = PUNCH(LeftArm)
  601. for i=0, 0.15, 0.1 / Animation_Speed do
  602. Swait()
  603. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-45)), 1 / Animation_Speed)
  604. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 1 / Animation_Speed)
  605. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  606. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  607. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  608. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  609. end
  610. FIST:Disconnect()
  611. else
  612. COMBO = 1
  613. for i=0, 0.1, 0.1 / Animation_Speed do
  614. Swait()
  615. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed)
  616. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  617. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  618. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  619. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  620. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  621. end
  622. local FIST = PUNCH(RightArm)
  623. for i=0, 0.15, 0.1 / Animation_Speed do
  624. Swait()
  625. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(45)), 1 / Animation_Speed)
  626. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  627. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  628. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  629. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  630. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  631. end
  632. FIST:Disconnect()
  633. end
  634. ATTACK = false
  635. Rooted = false
  636. end
  637.  
  638. function YesPlease()
  639. ATTACK = true
  640. Rooted = true
  641. CreateSound(291394633,Head,6,1,false)
  642. for i=0, 2, 0.1 / Animation_Speed do
  643. Swait()
  644. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.3*SIZE) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  645. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  646. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2+(MRANDOM(-5,5)/100)*SIZE, (0.45+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  647. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2+(MRANDOM(-5,5)/100)*SIZE, (0.65+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(65), RAD(0), RAD(65)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  648. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  649. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  650. end
  651. ATTACK = false
  652. Rooted = false
  653. end
  654.  
  655. --//=================================\\
  656. --|| ASSIGN THINGS TO KEYS
  657. --\\=================================//
  658.  
  659. Mouse.Button1Down:connect(function(NEWKEY)
  660. if ATTACK == false then
  661. end
  662. end)
  663. Mouse.KeyDown:connect(function(NEWKEY)
  664. if NEWKEY == "t" and ATTACK == false then
  665. YesPlease()
  666. end
  667.  
  668. if NEWKEY == "e" and ATTACK == false then
  669. Yeet()
  670. end
  671. end)
  672.  
  673. --//=================================\\
  674. --\\=================================//
  675.  
  676. function unanchor()
  677. if UNANCHOR == true then
  678. g = Character:GetChildren()
  679. for i = 1, #g do
  680. if g[i].ClassName == "Part" then
  681. g[i].Anchored = false
  682. end
  683. end
  684. end
  685. end
  686.  
  687. --//=================================\\
  688. --|| WRAP THE WHOLE SCRIPT UP
  689. --\\=================================//
  690.  
  691. Humanoid.Changed:connect(function(Jump)
  692. if Jump == "Jump" and (Disable_Jump == true) then
  693. Humanoid.Jump = false
  694. end
  695. end)
  696.  
  697. local FF = IT("ForceField",Character)
  698. FF.Visible = false
  699.  
  700. while true do
  701. Swait()
  702. script.Parent = WEAPONGUI
  703. ANIMATE.Parent = nil
  704. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  705. v:Stop();
  706. end
  707. SINE = SINE + CHANGE
  708. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  709. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  710. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  711. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  712. if HITFLOOR == nil then
  713. ANIM = "Midair"
  714. if ATTACK == false then
  715. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  716. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  717. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  718. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.45*SIZE, 0.3*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  719. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.2*SIZE, -0.7*SIZE) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  720. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  721. end
  722. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  723. ANIM = "Idle"
  724. if ATTACK == false then
  725. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  726. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  727. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  728. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  729. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  730. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  731. end
  732. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  733. ANIM = "Walk"
  734. if ATTACK == false then
  735. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  736. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/ Animation_Speed)
  737. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, (0.35+0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25+70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  738. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, (0.35-0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25-70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  739. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  740. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  741. end
  742. end
  743. unanchor()
  744. Humanoid.MaxHealth = 5e7
  745. Humanoid.Health = 5e7
  746. Humanoid.Name = "BigBoie"
  747. if Rooted == false then
  748. Disable_Jump = false
  749. Humanoid.WalkSpeed = Speed
  750. elseif Rooted == true then
  751. Disable_Jump = true
  752. Humanoid.WalkSpeed = 0
  753. end
  754. sick.SoundId = "rbxassetid://1383666704"
  755. sick.Looped = true
  756. sick.Pitch = (MRANDOM(95,115)/100)+0.2
  757. sick.Volume = 3
  758. sick:Resume()
  759. sick.Parent = Torso
  760. Humanoid.JumpPower = 150
  761. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement