Advertisement
Penien23

Epic Bot

Nov 20th, 2019
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125.  
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143.  
  144. --//====================================================\\--
  145. --|| CREATED BY SHACKLUSTER
  146. --\\====================================================//--
  147.  
  148. wait(0.2)
  149.  
  150. Player = game:GetService("Players").LocalPlayer
  151. PlayerGui = Player.PlayerGui
  152. Cam = workspace.CurrentCamera
  153. Backpack = Player.Backpack
  154. Character = Player.Character
  155. Humanoid = Character.Humanoid
  156. Mouse = Player:GetMouse()
  157. RootPart = Character["HumanoidRootPart"]
  158. Torso = Character["Torso"]
  159. Head = Character["Head"]
  160. RightArm = Character["Right Arm"]
  161. LeftArm = Character["Left Arm"]
  162. RightLeg = Character["Right Leg"]
  163. LeftLeg = Character["Left Leg"]
  164. RootJoint = RootPart["RootJoint"]
  165. Neck = Torso["Neck"]
  166. RightShoulder = Torso["Right Shoulder"]
  167. LeftShoulder = Torso["Left Shoulder"]
  168. RightHip = Torso["Right Hip"]
  169. LeftHip = Torso["Left Hip"]
  170.  
  171. IT = Instance.new
  172. CF = CFrame.new
  173. VT = Vector3.new
  174. RAD = math.rad
  175. C3 = Color3.new
  176. UD2 = UDim2.new
  177. BRICKC = BrickColor.new
  178. ANGLES = CFrame.Angles
  179. EULER = CFrame.fromEulerAnglesXYZ
  180. COS = math.cos
  181. ACOS = math.acos
  182. SIN = math.sin
  183. ASIN = math.asin
  184. ABS = math.abs
  185. MRANDOM = math.random
  186. FLOOR = math.floor
  187.  
  188. --//=================================\\
  189. --|| USEFUL VALUES
  190. --\\=================================//
  191.  
  192. Animation_Speed = 3
  193. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  194. local Speed = 30
  195. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
  196. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(180), RAD(180))
  197. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  198. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  199. local DAMAGEMULTIPLIER = 1
  200. local ANIM = "Idle"
  201. local ATTACK = false
  202. local EQUIPPED = false
  203. local HOLD = false
  204. local COMBO = 1
  205. local Rooted = false
  206. local SINE = 0
  207. local KEYHOLD = false
  208. local CHANGE = 2 / Animation_Speed
  209. local WALKINGANIM = false
  210. local VALUE1 = false
  211. local VALUE2 = false
  212. local ROBLOXIDLEANIMATION = IT("Animation")
  213. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  214. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  215. --ROBLOXIDLEANIMATION.Parent = Humanoid
  216. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  217. WEAPONGUI.Name = "Weapon GUI"
  218. local Weapon = IT("Model")
  219. Weapon.Name = "Adds"
  220. local Effects = IT("Folder", Weapon)
  221. Effects.Name = "Effects"
  222. local ANIMATOR = Humanoid.Animator
  223. local ANIMATE = Character.Animate
  224. local UNANCHOR = true
  225.  
  226. --//=================================\\
  227. --\\=================================//
  228.  
  229.  
  230. --//=================================\\
  231. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  232. --\\=================================//
  233.  
  234. ArtificialHB = Instance.new("BindableEvent", script)
  235. ArtificialHB.Name = "ArtificialHB"
  236.  
  237. script:WaitForChild("ArtificialHB")
  238.  
  239. frame = Frame_Speed
  240. tf = 0
  241. allowframeloss = false
  242. tossremainder = false
  243. lastframe = tick()
  244. script.ArtificialHB:Fire()
  245.  
  246. game:GetService("RunService").Heartbeat:connect(function(s, p)
  247. tf = tf + s
  248. if tf >= frame then
  249. if allowframeloss then
  250. script.ArtificialHB:Fire()
  251. lastframe = tick()
  252. else
  253. for i = 1, math.floor(tf / frame) do
  254. script.ArtificialHB:Fire()
  255. end
  256. lastframe = tick()
  257. end
  258. if tossremainder then
  259. tf = 0
  260. else
  261. tf = tf - frame * math.floor(tf / frame)
  262. end
  263. end
  264. end)
  265.  
  266. --//=================================\\
  267. --\\=================================//
  268.  
  269. --//=================================\\
  270. --|| SOME FUNCTIONS
  271. --\\=================================//
  272.  
  273. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  274. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  275. end
  276.  
  277. function PositiveAngle(NUMBER)
  278. if NUMBER >= 0 then
  279. NUMBER = 0
  280. end
  281. return NUMBER
  282. end
  283.  
  284. function NegativeAngle(NUMBER)
  285. if NUMBER <= 0 then
  286. NUMBER = 0
  287. end
  288. return NUMBER
  289. end
  290.  
  291. function Swait(NUMBER)
  292. if NUMBER == 0 or NUMBER == nil then
  293. ArtificialHB.Event:wait()
  294. else
  295. for i = 1, NUMBER do
  296. ArtificialHB.Event:wait()
  297. end
  298. end
  299. end
  300.  
  301. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  302. local NEWMESH = IT(MESH)
  303. if MESH == "SpecialMesh" then
  304. NEWMESH.MeshType = MESHTYPE
  305. if MESHID ~= "nil" and MESHID ~= "" then
  306. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  307. end
  308. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  309. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  310. end
  311. end
  312. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  313. NEWMESH.Scale = SCALE
  314. NEWMESH.Parent = PARENT
  315. return NEWMESH
  316. end
  317.  
  318. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  319. local NEWPART = IT("Part")
  320. NEWPART.formFactor = FORMFACTOR
  321. NEWPART.Reflectance = REFLECTANCE
  322. NEWPART.Transparency = TRANSPARENCY
  323. NEWPART.CanCollide = false
  324. NEWPART.Locked = true
  325. NEWPART.Anchored = true
  326. if ANCHOR == false then
  327. NEWPART.Anchored = false
  328. end
  329. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  330. NEWPART.Name = NAME
  331. NEWPART.Size = SIZE
  332. NEWPART.Position = Torso.Position
  333. NEWPART.Material = MATERIAL
  334. NEWPART:BreakJoints()
  335. NEWPART.Parent = PARENT
  336. return NEWPART
  337. end
  338.  
  339. local function weldBetween(a, b)
  340. local weldd = Instance.new("ManualWeld")
  341. weldd.Part0 = a
  342. weldd.Part1 = b
  343. weldd.C0 = CFrame.new()
  344. weldd.C1 = b.CFrame:inverse() * a.CFrame
  345. weldd.Parent = a
  346. return weldd
  347. end
  348.  
  349.  
  350. function QuaternionFromCFrame(cf)
  351. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  352. local trace = m00 + m11 + m22
  353. if trace > 0 then
  354. local s = math.sqrt(1 + trace)
  355. local recip = 0.5 / s
  356. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  357. else
  358. local i = 0
  359. if m11 > m00 then
  360. i = 1
  361. end
  362. if m22 > (i == 0 and m00 or m11) then
  363. i = 2
  364. end
  365. if i == 0 then
  366. local s = math.sqrt(m00 - m11 - m22 + 1)
  367. local recip = 0.5 / s
  368. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  369. elseif i == 1 then
  370. local s = math.sqrt(m11 - m22 - m00 + 1)
  371. local recip = 0.5 / s
  372. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  373. elseif i == 2 then
  374. local s = math.sqrt(m22 - m00 - m11 + 1)
  375. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  376. end
  377. end
  378. end
  379.  
  380. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  381. local xs, ys, zs = x + x, y + y, z + z
  382. local wx, wy, wz = w * xs, w * ys, w * zs
  383. local xx = x * xs
  384. local xy = x * ys
  385. local xz = x * zs
  386. local yy = y * ys
  387. local yz = y * zs
  388. local zz = z * zs
  389. 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))
  390. end
  391.  
  392. function QuaternionSlerp(a, b, t)
  393. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  394. local startInterp, finishInterp;
  395. if cosTheta >= 0.0001 then
  396. if (1 - cosTheta) > 0.0001 then
  397. local theta = ACOS(cosTheta)
  398. local invSinTheta = 1 / SIN(theta)
  399. startInterp = SIN((1 - t) * theta) * invSinTheta
  400. finishInterp = SIN(t * theta) * invSinTheta
  401. else
  402. startInterp = 1 - t
  403. finishInterp = t
  404. end
  405. else
  406. if (1 + cosTheta) > 0.0001 then
  407. local theta = ACOS(-cosTheta)
  408. local invSinTheta = 1 / SIN(theta)
  409. startInterp = SIN((t - 1) * theta) * invSinTheta
  410. finishInterp = SIN(t * theta) * invSinTheta
  411. else
  412. startInterp = t - 1
  413. finishInterp = t
  414. end
  415. end
  416. 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
  417. end
  418.  
  419. function Clerp(a, b, t)
  420. local qa = {QuaternionFromCFrame(a)}
  421. local qb = {QuaternionFromCFrame(b)}
  422. local ax, ay, az = a.x, a.y, a.z
  423. local bx, by, bz = b.x, b.y, b.z
  424. local _t = 1 - t
  425. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  426. end
  427.  
  428. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  429. local frame = IT("Frame")
  430. frame.BackgroundTransparency = TRANSPARENCY
  431. frame.BorderSizePixel = BORDERSIZEPIXEL
  432. frame.Position = POSITION
  433. frame.Size = SIZE
  434. frame.BackgroundColor3 = COLOR
  435. frame.BorderColor3 = BORDERCOLOR
  436. frame.Name = NAME
  437. frame.Parent = PARENT
  438. return frame
  439. end
  440.  
  441. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  442. local label = IT("TextLabel")
  443. label.BackgroundTransparency = 1
  444. label.Size = UD2(1, 0, 1, 0)
  445. label.Position = UD2(0, 0, 0, 0)
  446. label.TextColor3 = TEXTCOLOR
  447. label.TextStrokeTransparency = STROKETRANSPARENCY
  448. label.TextTransparency = TRANSPARENCY
  449. label.FontSize = TEXTFONTSIZE
  450. label.Font = TEXTFONT
  451. label.BorderSizePixel = BORDERSIZEPIXEL
  452. label.TextScaled = false
  453. label.Text = TEXT
  454. label.Name = NAME
  455. label.Parent = PARENT
  456. return label
  457. end
  458.  
  459. function NoOutlines(PART)
  460. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  461. end
  462.  
  463. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  464. local NEWWELD = IT(TYPE)
  465. NEWWELD.Part0 = PART0
  466. NEWWELD.Part1 = PART1
  467. NEWWELD.C0 = C0
  468. NEWWELD.C1 = C1
  469. NEWWELD.Parent = PARENT
  470. return NEWWELD
  471. end
  472.  
  473. local S = IT("Sound")
  474. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  475. local NEWSOUND = nil
  476. coroutine.resume(coroutine.create(function()
  477. NEWSOUND = S:Clone()
  478. NEWSOUND.Parent = PARENT
  479. NEWSOUND.Volume = VOLUME
  480. NEWSOUND.Pitch = PITCH
  481. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  482. NEWSOUND:play()
  483. if DOESLOOP == true then
  484. NEWSOUND.Looped = true
  485. else
  486. repeat wait(1) until NEWSOUND.Playing == false
  487. NEWSOUND:remove()
  488. end
  489. end))
  490. return NEWSOUND
  491. end
  492.  
  493. function CFrameFromTopBack(at, top, back)
  494. local right = top:Cross(back)
  495. 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)
  496. end
  497.  
  498. --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})
  499. function WACKYEFFECT(Table)
  500. local TYPE = (Table.EffectType or "Sphere")
  501. local SIZE = (Table.Size or VT(1,1,1))
  502. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  503. local TRANSPARENCY = (Table.Transparency or 0)
  504. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  505. local CFRAME = (Table.CFrame or Torso.CFrame)
  506. local MOVEDIRECTION = (Table.MoveToPos or nil)
  507. local ROTATION1 = (Table.RotationX or 0)
  508. local ROTATION2 = (Table.RotationY or 0)
  509. local ROTATION3 = (Table.RotationZ or 0)
  510. local MATERIAL = (Table.Material or "Neon")
  511. local COLOR = (Table.Color or C3(1,1,1))
  512. local TIME = (Table.Time or 45)
  513. local SOUNDID = (Table.SoundID or nil)
  514. local SOUNDPITCH = (Table.SoundPitch or nil)
  515. local SOUNDVOLUME = (Table.SoundVolume or nil)
  516. coroutine.resume(coroutine.create(function()
  517. local PLAYSSOUND = false
  518. local SOUND = nil
  519. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  520. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  521. PLAYSSOUND = true
  522. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  523. end
  524. EFFECT.Color = COLOR
  525. local MSH = nil
  526. if TYPE == "Sphere" then
  527. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  528. elseif TYPE == "Block" then
  529. MSH = IT("BlockMesh",EFFECT)
  530. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  531. elseif TYPE == "Wave" then
  532. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  533. elseif TYPE == "Ring" then
  534. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  535. elseif TYPE == "Slash" then
  536. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  537. elseif TYPE == "Round Slash" then
  538. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  539. elseif TYPE == "Swirl" then
  540. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  541. elseif TYPE == "Skull" then
  542. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  543. elseif TYPE == "Crystal" then
  544. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  545. end
  546. if MSH ~= nil then
  547. local MOVESPEED = nil
  548. if MOVEDIRECTION ~= nil then
  549. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  550. end
  551. local GROWTH = SIZE - ENDSIZE
  552. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  553. if TYPE == "Block" then
  554. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  555. else
  556. EFFECT.CFrame = CFRAME
  557. end
  558. for LOOP = 1, TIME+1 do
  559. Swait()
  560. MSH.Scale = MSH.Scale - GROWTH/TIME
  561. if TYPE == "Wave" then
  562. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  563. end
  564. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  565. if TYPE == "Block" then
  566. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  567. else
  568. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  569. end
  570. if MOVEDIRECTION ~= nil then
  571. local ORI = EFFECT.Orientation
  572. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  573. EFFECT.Orientation = ORI
  574. end
  575. end
  576. if PLAYSSOUND == false then
  577. EFFECT:remove()
  578. else
  579. repeat Swait() until SOUND.Playing == false
  580. EFFECT:remove()
  581. end
  582. else
  583. if PLAYSSOUND == false then
  584. EFFECT:remove()
  585. else
  586. repeat Swait() until SOUND.Playing == false
  587. EFFECT:remove()
  588. end
  589. end
  590. end))
  591. end
  592.  
  593. function MakeForm(PART,TYPE)
  594. if TYPE == "Cyl" then
  595. local MSH = IT("CylinderMesh",PART)
  596. elseif TYPE == "Ball" then
  597. local MSH = IT("SpecialMesh",PART)
  598. MSH.MeshType = "Sphere"
  599. elseif TYPE == "Wedge" then
  600. local MSH = IT("SpecialMesh",PART)
  601. MSH.MeshType = "Wedge"
  602. end
  603. end
  604.  
  605. Debris = game:GetService("Debris")
  606.  
  607. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  608. local DIRECTION = CF(StartPos,EndPos).lookVector
  609. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  610. end
  611.  
  612. function CharacterFade(COLOR,TIMER)
  613. coroutine.resume(coroutine.create(function()
  614. local FADE = IT("Model",Effects)
  615. for _, c in pairs(Character:GetChildren()) do
  616. if c.ClassName == "Part" and c ~= RootPart then
  617. local FADER = c:Clone()
  618. FADER.Color = COLOR
  619. FADER.CFrame = c.CFrame
  620. FADER.Parent = FADE
  621. FADER.Anchored = true
  622. FADER.Transparency = 0.25
  623. FADER:BreakJoints()
  624. FADER.Material = "Glass"
  625. FADER:ClearAllChildren()
  626. if FADER.Name == "Head" then
  627. FADER.Size = VT(1,1,1)
  628. end
  629. end
  630. end
  631. local TRANS = 0.75/TIMER
  632. for i = 1, TIMER do
  633. Swait()
  634. for _, c in pairs(FADE:GetChildren()) do
  635. if c.ClassName == "Part" then
  636. c.Transparency = c.Transparency + TRANS
  637. end
  638. end
  639. end
  640. FADE:remove()
  641. end))
  642. end
  643.  
  644. local PE=Instance.new("ParticleEmitter")
  645. PE.LightEmission=0.3
  646. PE.Size=NumberSequence.new(0)
  647. PE.Transparency=NumberSequence.new(0,1)
  648. PE.Rotation=NumberRange.new(0,360)
  649. PE.LockedToPart = false
  650. PE.Speed = NumberRange.new(0,0,0)
  651. PE.ZOffset = 0.3
  652. PE.Rate = 999
  653. PE.VelocitySpread = 25
  654. PE.Name = "Particles"
  655.  
  656. function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  657. local particle = nil
  658. coroutine.resume(coroutine.create(function(PART)
  659. particle = PE:Clone()
  660. Swait()
  661. particle.Rate = 999
  662. particle.Parent = art
  663. particle.Acceleration = accel
  664. if type == "Fire" then
  665. local EyeSizes={
  666. NumberSequenceKeypoint.new(0,size,size/2),
  667. NumberSequenceKeypoint.new(1,size/4,size/8)
  668. }
  669. particle.Size = NumberSequence.new(EyeSizes)
  670. elseif type == "Smoke" then
  671. local EyeSizes={
  672. NumberSequenceKeypoint.new(0,size/5,0),
  673. NumberSequenceKeypoint.new(1,size*2,0.5)
  674. }
  675. particle.Size = NumberSequence.new(EyeSizes)
  676. elseif type == "Solid" then
  677. local EyeSizes={
  678. NumberSequenceKeypoint.new(0,size,0),
  679. NumberSequenceKeypoint.new(1,size,0)
  680. }
  681. particle.Size = NumberSequence.new(EyeSizes)
  682. end
  683. particle.Lifetime=NumberRange.new(lifetime)
  684. particle.Drag = drag
  685. if locked == true then
  686. particle.LockedToPart = true
  687. end
  688. particle.Speed = NumberRange.new(speed*0.8,speed)
  689. particle.Texture = "http://www.roblox.com/asset/?id=1179557490"
  690. particle.Enabled = isenabledbydefault
  691. particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0))
  692. end))
  693. return particle
  694. end
  695.  
  696. --//=================================\\
  697. --|| RAGDOLL STUFF
  698. --\\=================================//
  699.  
  700. function recurse(root,callback,i)
  701. i= i or 0
  702. for _,v in pairs(root:GetChildren()) do
  703. i = i + 1
  704. callback(i,v)
  705.  
  706. if #v:GetChildren() > 0 then
  707. i = recurse(v,callback,i)
  708. end
  709. end
  710.  
  711. return i
  712. end
  713.  
  714. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  715. attachmentName = attachmentName.."RigAttachment"
  716. local constraint = Instance.new(className.."Constraint")
  717. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  718. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  719. constraint.Name = "RagdollConstraint"..part1.Name
  720.  
  721. for _,propertyData in next,properties or {} do
  722. constraint[propertyData[1]] = propertyData[2]
  723. end
  724.  
  725. constraint.Parent = character
  726. end
  727.  
  728. function getAttachment0(character, attachmentName)
  729. for _,child in next,character:GetChildren() do
  730. local attachment = child:FindFirstChild(attachmentName)
  731. if attachment then
  732. return attachment
  733. end
  734. end
  735. end
  736.  
  737. function ArtificialHitbox(Part)
  738. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  739. HITBOX.CanCollide = true
  740. HITBOX.CFrame = Part.CFrame
  741. weldBetween(Part,HITBOX)
  742. end
  743.  
  744. function R15Ragdoll(character,KeepArms)
  745. character:BreakJoints()
  746. coroutine.resume(coroutine.create(function()
  747. recurse(character, function(_,v)
  748. if v:IsA("Attachment") then
  749. v.Axis = Vector3.new(0, 1, 0)
  750. v.SecondaryAxis = Vector3.new(0, 0, 1)
  751. v.Rotation = Vector3.new(0, 0, 0)
  752. end
  753. end)
  754. for _,child in next,character:GetChildren() do
  755. if child:IsA("Accoutrement") then
  756. for _,part in next,child:GetChildren() do
  757. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  758. local attachment1 = part:FindFirstChildOfClass("Attachment")
  759. local attachment0 = getAttachment0(character,attachment1.Name)
  760. if attachment0 and attachment1 then
  761. local constraint = Instance.new("HingeConstraint")
  762. constraint.Attachment0 = attachment0
  763. constraint.Attachment1 = attachment1
  764. constraint.LimitsEnabled = true
  765. constraint.UpperAngle = 0
  766. constraint.LowerAngle = 0
  767. constraint.Parent = character
  768. end
  769. ArtificialHitbox(part)
  770. elseif part.Name == "HumanoidRootPart" then
  771. part:remove()
  772. end
  773. end
  774. end
  775. end
  776.  
  777. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  778. {"LimitsEnabled",true};
  779. {"UpperAngle",5};
  780. })
  781. if character:FindFirstChild("Head") then
  782. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  783. {"LimitsEnabled",true};
  784. {"UpperAngle",15};
  785. })
  786. end
  787.  
  788. local handProperties = {
  789. {"LimitsEnabled", true};
  790. {"UpperAngle",0};
  791. {"LowerAngle",0};
  792. }
  793. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  794. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  795.  
  796. local shinProperties = {
  797. {"LimitsEnabled", true};
  798. {"UpperAngle", 0};
  799. {"LowerAngle", -75};
  800. }
  801. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  802. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  803.  
  804. local footProperties = {
  805. {"LimitsEnabled", true};
  806. {"UpperAngle", 15};
  807. {"LowerAngle", -45};
  808. }
  809. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  810. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  811. if KeepArms == true then
  812. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  813. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  814. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  815. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  816. end
  817. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  818. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  819. Debris:AddItem(character,5)
  820. end))
  821. end
  822.  
  823. function Ragdoll(Character2,CharTorso,KeepArms)
  824. coroutine.resume(coroutine.create(function()
  825. Character2:BreakJoints()
  826. local hum = Character2:findFirstChild("Humanoid")
  827. hum:remove()
  828. local function Scan(ch)
  829. local e
  830. for e = 1,#ch do
  831. Scan(ch[e]:GetChildren())
  832. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  833. ch[e]:remove()
  834. end
  835. end
  836. end
  837. local NEWHUM = IT("Humanoid")
  838. NEWHUM.Name = "Corpse"
  839. NEWHUM.Health = 0
  840. NEWHUM.MaxHealth = 0
  841. NEWHUM.PlatformStand = true
  842. NEWHUM.Parent = Character2
  843. NEWHUM.DisplayDistanceType = "None"
  844.  
  845. local ch = Character2:GetChildren()
  846. local i
  847. for i = 1,#ch do
  848. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  849. ch[i]:remove()
  850. end
  851. end
  852.  
  853. local Torso2 = Character2.Torso
  854. local movevector = Vector3.new()
  855.  
  856. if Torso2 then
  857. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  858. local Head = Character2:FindFirstChild("Head")
  859. if Head then
  860. local Neck = Instance.new("Weld")
  861. Neck.Name = "Neck"
  862. Neck.Part0 = Torso2
  863. Neck.Part1 = Head
  864. Neck.C0 = CFrame.new(0, 1.5, 0)
  865. Neck.C1 = CFrame.new()
  866. Neck.Parent = Torso2
  867.  
  868. end
  869. local Limb = Character2:FindFirstChild("Right Arm")
  870. if Limb and KeepArms == true then
  871.  
  872. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  873. local Joint = Instance.new("Glue")
  874. Joint.Name = "RightShoulder"
  875. Joint.Part0 = Torso2
  876. Joint.Part1 = Limb
  877. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  878. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  879. Joint.Parent = Torso2
  880.  
  881. local B = Instance.new("Part")
  882. B.TopSurface = 0
  883. B.BottomSurface = 0
  884. B.formFactor = "Symmetric"
  885. B.Size = Vector3.new(1, 1, 1)
  886. B.Transparency = 1
  887. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  888. B.Parent = Character2
  889. local W = Instance.new("Weld")
  890. W.Part0 = Limb
  891. W.Part1 = B
  892. W.C0 = CFrame.new(0, -0.5, 0)
  893. W.Parent = Limb
  894.  
  895. end
  896. local Limb = Character2:FindFirstChild("Left Arm")
  897. if Limb and KeepArms == true then
  898.  
  899. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  900. local Joint = Instance.new("Glue")
  901. Joint.Name = "LeftShoulder"
  902. Joint.Part0 = Torso2
  903. Joint.Part1 = Limb
  904. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  905. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  906. Joint.Parent = Torso2
  907.  
  908. local B = Instance.new("Part")
  909. B.TopSurface = 0
  910. B.BottomSurface = 0
  911. B.formFactor = "Symmetric"
  912. B.Size = Vector3.new(1, 1, 1)
  913. B.Transparency = 1
  914. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  915. B.Parent = Character2
  916. local W = Instance.new("Weld")
  917. W.Part0 = Limb
  918. W.Part1 = B
  919. W.C0 = CFrame.new(0, -0.5, 0)
  920. W.Parent = Limb
  921.  
  922. end
  923. local Limb = Character2:FindFirstChild("Right Leg")
  924. if Limb then
  925.  
  926. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  927. local Joint = Instance.new("Glue")
  928. Joint.Name = "RightHip"
  929. Joint.Part0 = Torso2
  930. Joint.Part1 = Limb
  931. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  932. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  933. Joint.Parent = Torso2
  934.  
  935. local B = Instance.new("Part")
  936. B.TopSurface = 0
  937. B.BottomSurface = 0
  938. B.formFactor = "Symmetric"
  939. B.Size = Vector3.new(1, 1, 1)
  940. B.Transparency = 1
  941. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  942. B.Parent = Character2
  943. local W = Instance.new("Weld")
  944. W.Part0 = Limb
  945. W.Part1 = B
  946. W.C0 = CFrame.new(0, -0.5, 0)
  947. W.Parent = Limb
  948.  
  949. end
  950. local Limb = Character2:FindFirstChild("Left Leg")
  951. if Limb then
  952.  
  953. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  954. local Joint = Instance.new("Glue")
  955. Joint.Name = "LeftHip"
  956. Joint.Part0 = Torso2
  957. Joint.Part1 = Limb
  958. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  959. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  960. Joint.Parent = Torso2
  961.  
  962. local B = Instance.new("Part")
  963. B.TopSurface = 0
  964. B.BottomSurface = 0
  965. B.formFactor = "Symmetric"
  966. B.Size = Vector3.new(1, 1, 1)
  967. B.Transparency = 1
  968. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  969. B.Parent = Character2
  970. local W = Instance.new("Weld")
  971. W.Part0 = Limb
  972. W.Part1 = B
  973. W.C0 = CFrame.new(0, -0.5, 0)
  974. W.Parent = Limb
  975.  
  976. end
  977. --[
  978. local Bar = Instance.new("Part")
  979. Bar.TopSurface = 0
  980. Bar.BottomSurface = 0
  981. Bar.formFactor = "Symmetric"
  982. Bar.Size = Vector3.new(1, 1, 1)
  983. Bar.Transparency = 1
  984. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  985. Bar.Parent = Character2
  986. local Weld = Instance.new("Weld")
  987. Weld.Part0 = Torso2
  988. Weld.Part1 = Bar
  989. Weld.C0 = CFrame.new(0, 0.5, 0)
  990. Weld.Parent = Torso2
  991. --]]
  992. end
  993. Character2.Parent = workspace
  994. Debris:AddItem(Character2,5)
  995.  
  996. return Character2,Torso2
  997. end))
  998. end
  999.  
  1000. --//=================================\\
  1001. --|| WEAPON CREATION
  1002. --\\=================================//
  1003. local Something_on_your_head = CreatePart(3, Character, "Grass", 0, 0, "Deep orange", "Wing", VT(1.5,1.5,1),false)
  1004. CreateWeldOrSnapOrMotor("Weld", Head, Head, Something_on_your_head, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(0)), CF(0, 0.7, 1))
  1005.  
  1006. local Back = CreatePart(3, Character, "Wood", 0, 0, "Light yellow", "Wing", VT(1,0.25,0.25),false)
  1007. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0, 1.2) * ANGLES(RAD(90),RAD(0),RAD(0)), CF(0, 0.75, 0.2))
  1008. local Back2 = CreatePart(3, Character, "Wood", 0, 0, "Light yellow", "Wing", VT(1.25,0.25,0.35),false)
  1009. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back2, CF(0, 0, 1.2) * ANGLES(RAD(90),RAD(90),RAD(0)), CF(0, 0.75, 0))
  1010.  
  1011. local ANGLE = 35
  1012. for i = 1, 5 do
  1013. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Black", "Wing", VT(0.15,1+(i/1),0.15),false)
  1014. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1015. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
  1016. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 1+(i/0), 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 1, 0))
  1017. ANGLE = ANGLE - 15
  1018. end
  1019. ANGLE = 35
  1020. for i = 1, 5 do
  1021. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Black", "Wing", VT(0.15,1+(i/1),0.15),false)
  1022. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1023. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
  1024. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 1+(i/0), 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 1, 0))
  1025. ANGLE = ANGLE - 15
  1026. end
  1027.  
  1028. local SKILLTEXTCOLOR = C3(1,0,0)
  1029. local SKILLFONT = "SciFi"
  1030. local SKILLTEXTSIZE = 5
  1031.  
  1032. Weapon.Parent = Character
  1033.  
  1034. Humanoid.Died:connect(function()
  1035. ATTACK = true
  1036. end)
  1037.  
  1038. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1039. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1040. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1041. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1042. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1043. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1044.  
  1045. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  1046. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  1047. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  1048. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  1049. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  1050. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
  1051.  
  1052. --//=================================\\
  1053. --|| ATTACK FUNCTIONS AND STUFF
  1054. --\\=================================//
  1055.  
  1056. function Taunt2()
  1057. ATTACK = true
  1058. Rooted = true
  1059. CreateSound(2821732625,Head,80,1,false)
  1060. for i = 1, 30 do
  1061. Swait()
  1062. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 30), 0) * ANGLES(RAD(100), RAD(0), RAD(15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1063. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.3 + 0.05 * SIN(SINE / 30), 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1064. end
  1065. for i = 1, 20 do
  1066. Swait()
  1067. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1068. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 1), 0) * ANGLES(RAD(100), RAD(0), RAD(76)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1069. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.3 + 0.05 * SIN(SINE / 1), 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1070. end
  1071. ATTACK = false
  1072. Rooted = false
  1073. end
  1074. --//=================================\\
  1075. --|| ASSIGN THINGS TO KEYS
  1076. --\\=================================//
  1077.  
  1078. function MouseDown(Mouse)
  1079. if ATTACK == false then
  1080. end
  1081. end
  1082.  
  1083. function MouseUp(Mouse)
  1084. HOLD = false
  1085. end
  1086.  
  1087. function KeyDown(Key)
  1088. KEYHOLD = true
  1089. if Key == "t" and ATTACK == false then
  1090. Taunt2()
  1091. end
  1092.  
  1093. if Key == "b" and ATTACK == false then
  1094. Dash()
  1095. end
  1096.  
  1097. if Key == "c" and ATTACK == false then
  1098. LimbRip()
  1099. end
  1100.  
  1101. if Key == "v" and ATTACK == false then
  1102. Buzzsaw()
  1103. end
  1104.  
  1105. if Key == "e" and ATTACK == false then
  1106. ReeeEEEEEE()
  1107. end
  1108.  
  1109. if Key == "x" and ATTACK == false then
  1110. Needle()
  1111. end
  1112.  
  1113. if Key == "t" and ATTACK == false then
  1114. ScrewThis()
  1115. end
  1116. end
  1117.  
  1118. function KeyUp(Key)
  1119. KEYHOLD = false
  1120. end
  1121.  
  1122. Mouse.Button1Down:connect(function(NEWKEY)
  1123. MouseDown(NEWKEY)
  1124. end)
  1125. Mouse.Button1Up:connect(function(NEWKEY)
  1126. MouseUp(NEWKEY)
  1127. end)
  1128. Mouse.KeyDown:connect(function(NEWKEY)
  1129. KeyDown(NEWKEY)
  1130. end)
  1131. Mouse.KeyUp:connect(function(NEWKEY)
  1132. KeyUp(NEWKEY)
  1133. end)
  1134.  
  1135. --//=================================\\
  1136. --\\=================================//
  1137.  
  1138. function AntiTimeStop()
  1139. for _, c in pairs(Character:GetChildren()) do
  1140. if c:IsA("BasePart") then
  1141. c.Anchored = false
  1142. end
  1143. end
  1144. for _, c in pairs(Weapon:GetChildren()) do
  1145. if c:IsA("BasePart") then
  1146. c.Anchored = false
  1147. end
  1148. end
  1149. end
  1150.  
  1151. --//=================================\\
  1152. --|| WRAP THE WHOLE SCRIPT UP
  1153. --\\=================================//
  1154.  
  1155. Humanoid.Changed:connect(function(Jump)
  1156. if Jump == "Jump" and (Disable_Jump == true) then
  1157. Humanoid.Jump = false
  1158. end
  1159. end)
  1160.  
  1161. local sick = IT("Sound")
  1162.  
  1163.  
  1164.  
  1165. while true do
  1166. Swait()
  1167. script.Parent = WEAPONGUI
  1168. ANIMATE.Parent = nil
  1169. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1170. v:Stop();
  1171. end
  1172. SINE = SINE + CHANGE
  1173. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1174. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1175. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1176. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1177. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1178. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 8))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1179. Neck.C1 = Clerp(Neck.C1, CF(0, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 4))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1180. RightHip.C1 = Clerp(RightHip.C1, CF(0, 0 - 0 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1181. LeftHip.C1 = Clerp(LeftHip.C1, CF(0, 0 + 0 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*1), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1182. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1183. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1184. 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)
  1185. RightHip.C1 = Clerp(RightHip.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1186. LeftHip.C1 = Clerp(LeftHip.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1187. end
  1188. if HITFLOOR == nil then
  1189. ANIM = "Midair"
  1190. if ATTACK == false then
  1191. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1193. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1195. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.6) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1196. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2, -0.6) * ANGLES(RAD(15), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1197. end
  1198. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1199. ANIM = "Idle"
  1200. if ATTACK == false then
  1201. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 3)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1202. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, -1 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 2)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1203. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.35 * SIN(SINE / 1), 0) * ANGLES(RAD(0), RAD(0), RAD(1 - 30 * COS(SINE / 6))) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1204. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.35 * SIN(SINE / 0.01), 0) * ANGLES(RAD(0), RAD(0), RAD(-10 + 15 * COS(SINE / 3))) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1205. RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -2 - 0.2 * COS(SINE / 2), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1206. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, -2 - 0 * COS(SINE / 4.5 ), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  1207. end
  1208. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1209. ANIM = "Walk"
  1210. if ATTACK == false then
  1211. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1212. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1213. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0, -1, 0 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
  1214. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0, -1, 0 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
  1215. RightHip.C0 = Clerp(RightHip.C0, CF(0 , -100, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1216. LeftHip.C0 = Clerp(LeftHip.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1217. end
  1218. end
  1219. sick.SoundId = "rbxassetid://2586147657"
  1220. sick.Looped = true
  1221. sick.Pitch = 1.5
  1222. sick.Volume = 10
  1223. sick.Playing = true
  1224. sick.Parent = Effects
  1225. AntiTimeStop()
  1226. if Rooted == false then
  1227. Disable_Jump = false
  1228. Humanoid.WalkSpeed = Speed
  1229. elseif Rooted == true then
  1230. Disable_Jump = true
  1231. Humanoid.WalkSpeed = 0
  1232. end
  1233. end
  1234.  
  1235. --//=================================\\
  1236. --\\=================================//
  1237.  
  1238. --//====================================================\\--
  1239. --|| END OF SCRIPT
  1240. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement