Advertisement
memberhero

Dread Hunter FE

Nov 27th, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.94 KB | None | 0 0
  1. --FE Template
  2. if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
  3.  
  4. local remote = NS ([=[
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. Player = owner
  15. PlayerGui = Player.PlayerGui
  16. Cam = workspace.CurrentCamera
  17. Backpack = Player.Backpack
  18. Character = Player.Character
  19. Humanoid = Character.Humanoid
  20. Character.Archivable = true
  21.  
  22. RootPart = Character["HumanoidRootPart"]
  23. Torso = Character["Torso"]
  24. Head = Character["Head"]
  25. RightArm = Character["Right Arm"]
  26. LeftArm = Character["Left Arm"]
  27. RightLeg = Character["Right Leg"]
  28. LeftLeg = Character["Left Leg"]
  29. RootJoint = RootPart["RootJoint"]
  30. Neck = Torso["Neck"]
  31. RightShoulder = Torso["Right Shoulder"]
  32. LeftShoulder = Torso["Left Shoulder"]
  33. RightHip = Torso["Right Hip"]
  34. LeftHip = Torso["Left Hip"]
  35. local sick = Instance.new("Sound",Character)
  36. sick.SoundId = "rbxassetid://694828974"
  37. sick.Name = "BGM"
  38. sick.Looped = true
  39. sick.Pitch = 1
  40. sick.Volume = 1.3
  41. sick:Play()
  42. Speed = 36
  43. local ISEEYOU = Instance.new("Sound",Torso)
  44. ISEEYOU.SoundId = "rbxassetid://913821443"
  45. ISEEYOU.Pitch = 1.15
  46. ISEEYOU.Volume = 5
  47.  
  48. IT = Instance.new
  49. CF = CFrame.new
  50. VT = Vector3.new
  51. RAD = math.rad
  52. C3 = Color3.new
  53. UD2 = UDim2.new
  54. BRICKC = BrickColor.new
  55. ANGLES = CFrame.Angles
  56. EULER = CFrame.fromEulerAnglesXYZ
  57. COS = math.cos
  58. ACOS = math.acos
  59. SIN = math.sin
  60. ASIN = math.asin
  61. ABS = math.abs
  62. MRANDOM = math.random
  63. FLOOR = math.floor
  64.  
  65. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  66. local NEWMESH = IT(MESH)
  67. if MESH == "SpecialMesh" then
  68. NEWMESH.MeshType = MESHTYPE
  69. if MESHID ~= "nil" and MESHID ~= "" then
  70. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  71. end
  72. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  73. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  74. end
  75. end
  76. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  77. NEWMESH.Scale = SCALE
  78. NEWMESH.Parent = PARENT
  79. return NEWMESH
  80. end
  81.  
  82. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  83. local NEWPART = IT("Part")
  84. NEWPART.formFactor = FORMFACTOR
  85. NEWPART.Reflectance = REFLECTANCE
  86. NEWPART.Transparency = TRANSPARENCY
  87. NEWPART.CanCollide = false
  88. NEWPART.Locked = true
  89. NEWPART.Anchored = true
  90. if ANCHOR == false then
  91. NEWPART.Anchored = false
  92. end
  93. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  94. NEWPART.Name = NAME
  95. NEWPART.Size = SIZE
  96. NEWPART.Position = Torso.Position
  97. NEWPART.Material = MATERIAL
  98. NEWPART:BreakJoints()
  99. NEWPART.Parent = PARENT
  100. return NEWPART
  101. end
  102.  
  103. --//=================================\\
  104. --|| CUSTOMIZATION
  105. --\\=================================//
  106.  
  107. Player_Size = 1 --Size of the player.
  108. Animation_Speed = 3
  109. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  110.  
  111. local Speed = 16
  112. local Effects2 = {}
  113.  
  114. --//=================================\\
  115. --|| END OF CUSTOMIZATION
  116. --\\=================================//
  117.  
  118. local function weldBetween(a, b)
  119. local weldd = Instance.new("ManualWeld")
  120. weldd.Part0 = a
  121. weldd.Part1 = b
  122. weldd.C0 = CFrame.new()
  123. weldd.C1 = b.CFrame:inverse() * a.CFrame
  124. weldd.Parent = a
  125. return weldd
  126. end
  127.  
  128. --//=================================\\
  129. --|| USEFUL VALUES
  130. --\\=================================//
  131.  
  132. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  133. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  134. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  135. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  136. local CHANGEDEFENSE = 0
  137. local CHANGEDAMAGE = 0
  138. local CHANGEMOVEMENT = 0
  139. local ANIM = "Idle"
  140. local ATTACK = false
  141. local EQUIPPED = false
  142. local HOLD = false
  143. local COMBO = 1
  144. local Rooted = false
  145. local SINE = 0
  146. local KEYHOLD = false
  147. local CHANGE = 2 / Animation_Speed
  148. local WALKINGANIM = false
  149. local WALK = 0
  150. local VALUE1 = false
  151. local VALUE2 = false
  152. local ROBLOXIDLEANIMATION = IT("Animation")
  153. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  154. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  155. --ROBLOXIDLEANIMATION.Parent = Humanoid
  156. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  157. WEAPONGUI.Name = "Weapon GUI"
  158. local Weapon = IT("Model")
  159. Weapon.Name = "Adds"
  160. local Effects = IT("Folder", Weapon)
  161. Effects.Name = "Effects"
  162. local ANIMATOR = Humanoid.Animator
  163. local ANIMATE = Character.Animate
  164. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  165. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  166. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  167. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  168. local UNANCHOR = true
  169. local TARGET = nil
  170.  
  171. local EYECOLOR = 1003
  172. local SKILLTEXTCOLOR = C3(1,1,1)
  173.  
  174. --//=================================\\
  175. --\\=================================//
  176.  
  177.  
  178. --//=================================\\
  179. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  180. --\\=================================//
  181.  
  182. ArtificialHB = Instance.new("BindableEvent", script)
  183. ArtificialHB.Name = "ArtificialHB"
  184.  
  185. script:WaitForChild("ArtificialHB")
  186.  
  187. frame = Frame_Speed
  188. tf = 0
  189. allowframeloss = false
  190. tossremainder = false
  191. lastframe = tick()
  192. script.ArtificialHB:Fire()
  193.  
  194. game:GetService("RunService").Heartbeat:connect(function(s, p)
  195. tf = tf + s
  196. if tf >= frame then
  197. if allowframeloss then
  198. script.ArtificialHB:Fire()
  199. lastframe = tick()
  200. else
  201. for i = 1, math.floor(tf / frame) do
  202. script.ArtificialHB:Fire()
  203. end
  204. lastframe = tick()
  205. end
  206. if tossremainder then
  207. tf = 0
  208. else
  209. tf = tf - frame * math.floor(tf / frame)
  210. end
  211. end
  212. end)
  213.  
  214. --//=================================\\
  215. --\\=================================//
  216.  
  217.  
  218.  
  219.  
  220.  
  221. --//=================================\\
  222. --|| SOME FUNCTIONS
  223. --\\=================================//
  224.  
  225. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  226. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  227. end
  228.  
  229. function PositiveAngle(NUMBER)
  230. if NUMBER >= 0 then
  231. NUMBER = 0
  232. end
  233. return NUMBER
  234. end
  235.  
  236. function NegativeAngle(NUMBER)
  237. if NUMBER <= 0 then
  238. NUMBER = 0
  239. end
  240. return NUMBER
  241. end
  242.  
  243. function Swait(NUMBER)
  244. if NUMBER == 0 or NUMBER == nil then
  245. ArtificialHB.Event:wait()
  246. else
  247. for i = 1, NUMBER do
  248. ArtificialHB.Event:wait()
  249. end
  250. end
  251. end
  252.  
  253. function QuaternionFromCFrame(cf)
  254. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  255. local trace = m00 + m11 + m22
  256. if trace > 0 then
  257. local s = math.sqrt(1 + trace)
  258. local recip = 0.5 / s
  259. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  260. else
  261. local i = 0
  262. if m11 > m00 then
  263. i = 1
  264. end
  265. if m22 > (i == 0 and m00 or m11) then
  266. i = 2
  267. end
  268. if i == 0 then
  269. local s = math.sqrt(m00 - m11 - m22 + 1)
  270. local recip = 0.5 / s
  271. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  272. elseif i == 1 then
  273. local s = math.sqrt(m11 - m22 - m00 + 1)
  274. local recip = 0.5 / s
  275. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  276. elseif i == 2 then
  277. local s = math.sqrt(m22 - m00 - m11 + 1)
  278. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  279. end
  280. end
  281. end
  282.  
  283. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  284. local xs, ys, zs = x + x, y + y, z + z
  285. local wx, wy, wz = w * xs, w * ys, w * zs
  286. local xx = x * xs
  287. local xy = x * ys
  288. local xz = x * zs
  289. local yy = y * ys
  290. local yz = y * zs
  291. local zz = z * zs
  292. 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))
  293. end
  294.  
  295. function QuaternionSlerp(a, b, t)
  296. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  297. local startInterp, finishInterp;
  298. if cosTheta >= 0.0001 then
  299. if (1 - cosTheta) > 0.0001 then
  300. local theta = ACOS(cosTheta)
  301. local invSinTheta = 1 / SIN(theta)
  302. startInterp = SIN((1 - t) * theta) * invSinTheta
  303. finishInterp = SIN(t * theta) * invSinTheta
  304. else
  305. startInterp = 1 - t
  306. finishInterp = t
  307. end
  308. else
  309. if (1 + cosTheta) > 0.0001 then
  310. local theta = ACOS(-cosTheta)
  311. local invSinTheta = 1 / SIN(theta)
  312. startInterp = SIN((t - 1) * theta) * invSinTheta
  313. finishInterp = SIN(t * theta) * invSinTheta
  314. else
  315. startInterp = t - 1
  316. finishInterp = t
  317. end
  318. end
  319. 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
  320. end
  321.  
  322. function Clerp(a, b, t)
  323. local qa = {QuaternionFromCFrame(a)}
  324. local qb = {QuaternionFromCFrame(b)}
  325. local ax, ay, az = a.x, a.y, a.z
  326. local bx, by, bz = b.x, b.y, b.z
  327. local _t = 1 - t
  328. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  329. end
  330.  
  331. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  332. local frame = IT("Frame")
  333. frame.BackgroundTransparency = TRANSPARENCY
  334. frame.BorderSizePixel = BORDERSIZEPIXEL
  335. frame.Position = POSITION
  336. frame.Size = SIZE
  337. frame.BackgroundColor3 = COLOR
  338. frame.BorderColor3 = BORDERCOLOR
  339. frame.Name = NAME
  340. frame.Parent = PARENT
  341. return frame
  342. end
  343.  
  344. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  345. local label = IT("TextLabel")
  346. label.BackgroundTransparency = 1
  347. label.Size = UD2(1, 0, 1, 0)
  348. label.Position = UD2(0, 0, 0, 0)
  349. label.TextColor3 = TEXTCOLOR
  350. label.TextStrokeTransparency = STROKETRANSPARENCY
  351. label.TextTransparency = TRANSPARENCY
  352. label.FontSize = TEXTFONTSIZE
  353. label.Font = TEXTFONT
  354. label.BorderSizePixel = BORDERSIZEPIXEL
  355. label.TextScaled = false
  356. label.Text = TEXT
  357. label.Name = NAME
  358. label.Parent = PARENT
  359. return label
  360. end
  361.  
  362. function NoOutlines(PART)
  363. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  364. end
  365.  
  366.  
  367. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  368. local NEWWELD = IT(TYPE)
  369. NEWWELD.Part0 = PART0
  370. NEWWELD.Part1 = PART1
  371. NEWWELD.C0 = C0
  372. NEWWELD.C1 = C1
  373. NEWWELD.Parent = PARENT
  374. return NEWWELD
  375. end
  376.  
  377. function CreateSound(ID, PARENT, VOLUME, PITCH)
  378. local NEWSOUND = nil
  379. coroutine.resume(coroutine.create(function()
  380. NEWSOUND = IT("Sound", PARENT)
  381. NEWSOUND.Volume = VOLUME
  382. NEWSOUND.Pitch = PITCH
  383. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  384. Swait()
  385. NEWSOUND:play()
  386. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  387. end))
  388. return NEWSOUND
  389. end
  390.  
  391. function CFrameFromTopBack(at, top, back)
  392. local right = top:Cross(back)
  393. 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)
  394. end
  395.  
  396. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  397. local wave = CreatePart(3, Effects,"Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  398. local mesh = nil
  399. if KIND == "Base" then
  400. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  401. elseif KIND == "Thin" then
  402. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  403. elseif KIND == "Round" then
  404. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  405. end
  406. wave.CFrame = CFRAME
  407. coroutine.resume(coroutine.create(function(PART)
  408. for i = 1, WAIT do
  409. Swait()
  410. mesh.Scale = mesh.Scale + GROW/10
  411. wave.Transparency = wave.Transparency + (0.5/WAIT)
  412. if wave.Transparency > 0.99 then
  413. wave:remove()
  414. end
  415. end
  416. end))
  417. end
  418.  
  419. function MakeForm(PART,TYPE)
  420. if TYPE == "Cyl" then
  421. local MSH = IT("CylinderMesh",PART)
  422. elseif TYPE == "Ball" then
  423. local MSH = IT("SpecialMesh",PART)
  424. MSH.MeshType = "Sphere"
  425. elseif TYPE == "Wedge" then
  426. local MSH = IT("SpecialMesh",PART)
  427. MSH.MeshType = "Wedge"
  428. end
  429. end
  430.  
  431. function CheckTableForString(Table, String)
  432. for i, v in pairs(Table) do
  433. if string.find(string.lower(String), string.lower(v)) then
  434. return true
  435. end
  436. end
  437. return false
  438. end
  439.  
  440. function CheckIntangible(Hit)
  441. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  442. if Hit and Hit.Parent then
  443. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  444. return true
  445. end
  446. end
  447. return false
  448. end
  449.  
  450. Debris = game:GetService("Debris")
  451.  
  452. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  453. local Direction = CFrame.new(StartPos, Vec).lookVector
  454. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  455. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  456. if RayHit and CheckIntangible(RayHit) then
  457. if DelayIfHit then
  458. wait()
  459. end
  460. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  461. end
  462. return RayHit, RayPos, RayNormal
  463. end
  464.  
  465. function turnto(position)
  466. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  467. end
  468. remote = Instance.new 'RemoteFunction';
  469. remote.Parent = script;
  470. remote.OnServerInvoke = function (player, request, ...)
  471. if (player ~= owner) then
  472. return error ('You cannot invoke this remote', 0);
  473. end;
  474. if (request == 1) then
  475.  
  476. MouseDown(...)
  477. end
  478. if (request == 2) then
  479. local k = ...;
  480. KeyDown(k)
  481.  
  482. end;
  483. if (request == 3) then
  484.  
  485. MouseUp(...)
  486. end
  487.  
  488. if (request == 6) then
  489. local k = ...;
  490. KeyUp(k)
  491. end;
  492. end
  493. remote.Name = 'ServerRemote';
  494. function getMouseHit()
  495. return remote:InvokeClient (owner, 1);
  496. end;
  497. --//=================================\\
  498. --|| WEAPON CREATION
  499. --\\=================================//
  500.  
  501. local GYRO = IT("BodyGyro",RootPart)
  502. GYRO.D = 100
  503. GYRO.P = 2000
  504. GYRO.MaxTorque = VT(0,4000000,0)
  505. GYRO.cframe = CF(RootPart.Position,getMouseHit())
  506.  
  507. Head:ClearAllChildren()
  508. Head.Transparency = 1
  509.  
  510. function particles(art)
  511. local EyeSizes={
  512. NumberSequenceKeypoint.new(0,0.3,0),
  513. NumberSequenceKeypoint.new(1,0,0)
  514. }
  515. local EyeTrans={
  516. NumberSequenceKeypoint.new(0,0.2,0),
  517. NumberSequenceKeypoint.new(1,1,0)
  518. }
  519. local PE=Instance.new("ParticleEmitter",art)
  520. PE.LightEmission=.4
  521. PE.Size=NumberSequence.new(EyeSizes)
  522. PE.Transparency=NumberSequence.new(EyeTrans)
  523. PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
  524. PE.Rotation=NumberRange.new(0,360)
  525. PE.Rate=999
  526. PE.Acceleration = Vector3.new(0,75,0)
  527. PE.Drag = 5
  528. PE.Speed = NumberRange.new(0,0,0)
  529. PE.Texture="http://www.roblox.com/asset/?id=1179557490"
  530. PE.ZOffset = -1.5
  531. PE.Name = "PE"
  532. end
  533.  
  534. local SKULL = CreatePart(3, Character, "Wood", 0,0, "Bright violet", "FACE", VT(0,0,0),false)
  535. CreateWeldOrSnapOrMotor("Weld", SKULL, Head, SKULL, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  536. CreateMesh("SpecialMesh", SKULL, "FileMesh", "14028428", "14027832", VT(1,1,1), VT(0, 0.2, -0.35))
  537.  
  538. local SKULL = CreatePart(3, Character, "Wood", 0,0, "Bright violet", "FACE", VT(0,0,0),false)
  539. CreateWeldOrSnapOrMotor("Weld", SKULL, Head, SKULL, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  540. CreateMesh("SpecialMesh", SKULL, "FileMesh", "1271547", "186320934", VT(1,1,1)*1.5, VT(0, 1.365, 0))
  541.  
  542. local Part = CreatePart(3, Head, "Neon", 0,0, "Pearl", "Eye", VT(0.2,0.2,0.2),false)
  543. Part.Color = C3(1,1,1)
  544. CreateWeldOrSnapOrMotor("Weld", Part, Head, Part, CF(0.35, 0.1, -0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  545. MakeForm(Part,"Ball")
  546.  
  547. local A = nil
  548. local B = nil
  549.  
  550. local HandlePart = CreatePart(3, Weapon, "Wood", 0,0, "Bright violet", "Handle", VT(0.2,1.5,0.2),false)
  551. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0, -1, 0) * ANGLES(RAD(65), RAD(-35), RAD(0)), CF(0, 0, 0))
  552. MakeForm(HandlePart,"Ball")
  553.  
  554. for i = 1, 2 do
  555. local Part = CreatePart(3, Weapon, "Wood", 0,0, "Bright violet", "Handle", VT(0.2,0.2,0.2),false)
  556. CreateWeldOrSnapOrMotor("Weld", Part, HandlePart, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(360/i)), CF(0, 0.45, 0))
  557. MakeForm(Part,"Ball")
  558.  
  559. local Spike = CreatePart(3, Weapon, "Wood", 0,0, "Bright violet", "Handle", VT(0,0.45,0),false)
  560. CreateWeldOrSnapOrMotor("Weld", Spike, Part, Spike, CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0.25, 0))
  561. MakeForm(Spike,"Ball")
  562.  
  563. local BowPart = CreatePart(3, Weapon, "Wood", 0,1, "Bright violet", "Handle", VT(0.2,0.2,0.2),false)
  564. local Weld = CreateWeldOrSnapOrMotor("Weld", BowPart, HandlePart, BowPart, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(360/i)), CF(0, 0.55, 0))
  565. Weld.Name = "BowWeld"
  566.  
  567. local Part1 = CreatePart(3, Weapon, "Wood", 0,0, "Bright violet", "Handle", VT(0.2,1,0.2),false)
  568. CreateWeldOrSnapOrMotor("Weld", Part1, BowPart, Part1, CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 0.45, 0))
  569. MakeForm(Part1,"Ball")
  570. local Part2 = CreatePart(3, Weapon, "Wood", 0,0, "Bright violet", "Handle", VT(0.25,1,0.25),false)
  571. CreateWeldOrSnapOrMotor("Weld", Part2, Part1, Part2, CF(0, -0.1, 0.1) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 0.75, 0))
  572. MakeForm(Part2,"Ball")
  573. particles(Part2)
  574. if A == nil then
  575. A = IT("Attachment",Part2)
  576. A.Position = VT(0,-0.48,0)
  577. else
  578. B = IT("Attachment",Part2)
  579. B.Position = VT(0,-0.48,0)
  580. end
  581. end
  582.  
  583. local BEAM = IT("Beam",Weapon)
  584. BEAM.Attachment0 = A
  585. BEAM.Attachment1 = B
  586. BEAM.FaceCamera = true
  587. BEAM.Transparency = NumberSequence.new(0)
  588. BEAM.Width0 = 0.02
  589. BEAM.Width1 = 0.02
  590.  
  591. for _, c in pairs(Weapon:GetChildren()) do
  592. if c.ClassName == "Part" then
  593. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  594. end
  595. end
  596.  
  597. Weapon.Parent = Character
  598.  
  599. Humanoid.Died:connect(function()
  600. ATTACK = true
  601. end)
  602.  
  603. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  604. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  605. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  606. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  607.  
  608. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] I've Got You In My Sights", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 1")
  609. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[Z] Snipe'd", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text 2")
  610. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V] Point Blanc", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 3")
  611. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Arrow Rain", C3(1,0,0), 7, "Garamond", 0, 2, 0, "Text 4")
  612.  
  613. --//=================================\\
  614. --|| DAMAGE FUNCTIONS
  615. --\\=================================//
  616.  
  617. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  618. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Crimson", "Effect", VT())
  619. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  620. local BODYGYRO = IT("BodyGyro", STATPART)
  621. local BODYPOSITION = IT("BodyPosition", STATPART)
  622. BODYPOSITION.P = 2000
  623. BODYPOSITION.D = 100
  624. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  625. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  626. game:GetService("Debris"):AddItem(STATPART ,5)
  627. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  628. BILLBOARDGUI.Adornee = STATPART
  629. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  630. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  631. BILLBOARDGUI.AlwaysOnTop = false
  632. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  633. TEXTLABEL.BackgroundTransparency = 1
  634. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  635. TEXTLABEL.Text = TEXT
  636. TEXTLABEL.Font = "SciFi"
  637. TEXTLABEL.FontSize="Size42"
  638. TEXTLABEL.TextColor3 = COLOR
  639. TEXTLABEL.TextStrokeTransparency = 1
  640. TEXTLABEL.TextScaled = true
  641. TEXTLABEL.TextWrapped = true
  642. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  643. if LABELTYPE == "Normal" then
  644. for i = 1, 30 do
  645. Swait()
  646. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  647. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  648. end
  649. elseif LABELTYPE == "Debuff" then
  650. for i = 1, 30 do
  651. Swait()
  652. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  653. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  654. end
  655. elseif LABELTYPE == "Shock" then
  656. local ORIGIN = STATPART.Position
  657. for i = 1, 30 do
  658. Swait()
  659. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  660. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  661. end
  662. end
  663. THEPART.Parent = nil
  664. end),STATPART, BODYPOSITION, TEXTLABEL)
  665. end
  666.  
  667. --//=================================\\
  668. --|| DAMAGING
  669. --\\=================================//
  670.  
  671. local EyeSizes={
  672. NumberSequenceKeypoint.new(0,1,0),
  673. NumberSequenceKeypoint.new(1,0,0)
  674. }
  675. local EyeTrans={
  676. NumberSequenceKeypoint.new(0,0.8,0),
  677. NumberSequenceKeypoint.new(1,1,0)
  678. }
  679. local PE=Instance.new("ParticleEmitter",art)
  680. PE.LightEmission=.8
  681. PE.Color = ColorSequence.new(BRICKC("Bright violet").Color)
  682. PE.Size=NumberSequence.new(EyeSizes)
  683. PE.Transparency=NumberSequence.new(EyeTrans)
  684. PE.Lifetime=NumberRange.new(0.35,1.5)
  685. PE.Rotation=NumberRange.new(0,360)
  686. PE.Rate=999
  687. PE.VelocitySpread = 10000
  688. PE.Acceleration = Vector3.new(0,0,0)
  689. PE.Drag = 5
  690. PE.Speed = NumberRange.new(0,0,0)
  691. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  692. PE.ZOffset = -1.5
  693. PE.Name = "PE"
  694. PE.Enabled = true
  695.  
  696. function particles(art)
  697. local PARTICLES = PE:Clone()
  698. PARTICLES.Parent = art
  699. end
  700.  
  701. function Ragdoll(Character2,CharTorso)
  702. local svch = Character2
  703. Character2:BreakJoints()
  704. local hum = Character2:findFirstChild("Humanoid")
  705. local q = Character2:GetChildren()
  706. local CLONE = IT("Model",Effects)
  707. for i = 1,#q do
  708. if q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
  709. q[i].Parent = CLONE
  710. else
  711. if q[i].ClassName ~= "Humanoid" then
  712. q[i]:remove()
  713. end
  714. end
  715. end
  716. local chrclone = CLONE
  717. local ch = chrclone:GetChildren()
  718. local i
  719. for i = 1,#ch do
  720. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  721. ch[i]:remove()
  722. end
  723. end
  724. local function Scan(ch)
  725. local e
  726. for e = 1,#ch do
  727. Scan(ch[e]:GetChildren())
  728. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  729. ch[e]:remove()
  730. end
  731. end
  732. end
  733. Character2:remove()
  734. local NEWHUM = IT("Humanoid")
  735. NEWHUM.Name = "Corpse"
  736. NEWHUM.Health = 0
  737. NEWHUM.MaxHealth = 0
  738. NEWHUM.PlatformStand = true
  739. NEWHUM.Parent = CLONE
  740. NEWHUM.DisplayDistanceType = "None"
  741. Scan(chrclone:GetChildren())
  742.  
  743. local ch = Character2:GetChildren()
  744. local i
  745. for i = 1,#ch do
  746. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  747. ch[i]:remove()
  748. end
  749. end
  750.  
  751. local ch = Character2:GetChildren()
  752. local i
  753. for i = 1,#ch do
  754. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  755. ch[i]:remove()
  756. end
  757. end
  758. Character2 = chrclone
  759. local Torso2 = Character2.Torso
  760. local movevector = Vector3.new()
  761.  
  762. if Torso2 then
  763. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  764. local Head = Character2:FindFirstChild("Head")
  765. if Head then
  766. local Neck = Instance.new("Weld")
  767. Neck.Name = "Neck"
  768. Neck.Part0 = Torso2
  769. Neck.Part1 = Head
  770. Neck.C0 = CFrame.new(0, 1.5, 0)
  771. Neck.C1 = CFrame.new()
  772. Neck.Parent = Torso2
  773. CreateSound("337800380", Head, 5, (math.random(8,18)/10))
  774.  
  775. end
  776. local Limb = Character2:FindFirstChild("Right Arm")
  777. if Limb then
  778.  
  779. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  780. local Joint = Instance.new("Glue")
  781. Joint.Name = "RightShoulder"
  782. Joint.Part0 = Torso2
  783. Joint.Part1 = Limb
  784. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  785. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  786. Joint.Parent = Torso2
  787.  
  788. local B = Instance.new("Part")
  789. B.TopSurface = 0
  790. B.BottomSurface = 0
  791. B.formFactor = "Symmetric"
  792. B.Size = Vector3.new(1, 1, 1)
  793. B.Transparency = 1
  794. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  795. B.Parent = Character2
  796. local W = Instance.new("Weld")
  797. W.Part0 = Limb
  798. W.Part1 = B
  799. W.C0 = CFrame.new(0, -0.5, 0)
  800. W.Parent = Limb
  801.  
  802. end
  803. local Limb = Character2:FindFirstChild("Left Arm")
  804. if Limb then
  805.  
  806. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  807. local Joint = Instance.new("Glue")
  808. Joint.Name = "LeftShoulder"
  809. Joint.Part0 = Torso2
  810. Joint.Part1 = Limb
  811. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  812. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  813. Joint.Parent = Torso2
  814.  
  815. local B = Instance.new("Part")
  816. B.TopSurface = 0
  817. B.BottomSurface = 0
  818. B.formFactor = "Symmetric"
  819. B.Size = Vector3.new(1, 1, 1)
  820. B.Transparency = 1
  821. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  822. B.Parent = Character2
  823. local W = Instance.new("Weld")
  824. W.Part0 = Limb
  825. W.Part1 = B
  826. W.C0 = CFrame.new(0, -0.5, 0)
  827. W.Parent = Limb
  828.  
  829. end
  830. local Limb = Character2:FindFirstChild("Right Leg")
  831. if Limb then
  832.  
  833. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  834. local Joint = Instance.new("Glue")
  835. Joint.Name = "RightHip"
  836. Joint.Part0 = Torso2
  837. Joint.Part1 = Limb
  838. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  839. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  840. Joint.Parent = Torso2
  841.  
  842. local B = Instance.new("Part")
  843. B.TopSurface = 0
  844. B.BottomSurface = 0
  845. B.formFactor = "Symmetric"
  846. B.Size = Vector3.new(1, 1, 1)
  847. B.Transparency = 1
  848. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  849. B.Parent = Character2
  850. local W = Instance.new("Weld")
  851. W.Part0 = Limb
  852. W.Part1 = B
  853. W.C0 = CFrame.new(0, -0.5, 0)
  854. W.Parent = Limb
  855.  
  856. end
  857. local Limb = Character2:FindFirstChild("Left Leg")
  858. if Limb then
  859.  
  860. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  861. local Joint = Instance.new("Glue")
  862. Joint.Name = "LeftHip"
  863. Joint.Part0 = Torso2
  864. Joint.Part1 = Limb
  865. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  866. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  867. Joint.Parent = Torso2
  868.  
  869. local B = Instance.new("Part")
  870. B.TopSurface = 0
  871. B.BottomSurface = 0
  872. B.formFactor = "Symmetric"
  873. B.Size = Vector3.new(1, 1, 1)
  874. B.Transparency = 1
  875. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  876. B.Parent = Character2
  877. local W = Instance.new("Weld")
  878. W.Part0 = Limb
  879. W.Part1 = B
  880. W.C0 = CFrame.new(0, -0.5, 0)
  881. W.Parent = Limb
  882.  
  883. end
  884. --[
  885. local Bar = Instance.new("Part")
  886. Bar.TopSurface = 0
  887. Bar.BottomSurface = 0
  888. Bar.formFactor = "Symmetric"
  889. Bar.Size = Vector3.new(1, 1, 1)
  890. Bar.Transparency = 1
  891. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  892. Bar.Parent = Character2
  893. local Weld = Instance.new("Weld")
  894. Weld.Part0 = Torso2
  895. Weld.Part1 = Bar
  896. Weld.C0 = CFrame.new(0, 0.5, 0)
  897. Weld.Parent = Torso2
  898. --]]
  899. end
  900. Character2.Parent = Weapon
  901. if movevector ~= Vector3.new() then
  902. for i = 1,10 do
  903. Torso2.Velocity = movevector * 150
  904. end
  905. end
  906. Character2.Name = "Corpse"
  907.  
  908. return Character2,Torso2
  909. end
  910.  
  911. function KillChildren(v)
  912. v:BreakJoints()
  913. for _, c in pairs(v:GetChildren()) do
  914. if c.ClassName == "Part" or c.ClassName == "MesPart" then
  915. if c.Transparency < 1 then
  916. if c:FindFirstChildOfClass("Decal") then
  917. c:FindFirstChildOfClass("Decal"):remove()
  918. end
  919. particles(c)
  920. c.PE.Enabled = true
  921. c.Parent = Effects
  922. c.CanCollide = false
  923. c.Material = "Neon"
  924. c.Color = C3(1,0,0)
  925. c.Transparency = 0.5
  926. local grav = Instance.new("BodyPosition",c)
  927. grav.P = 20000
  928. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  929. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  930. grav.Name = "GravityForce"
  931. coroutine.resume(coroutine.create(function()
  932. for i = 1, 50 do
  933. Swait()
  934. c.Transparency = c.Transparency + 0.01
  935. end
  936. c.PE.Enabled = false
  937. Debris:AddItem(c,2)
  938. end))
  939. end
  940. end
  941. end
  942. end
  943.  
  944. --//=================================\\
  945. --|| ATTACK FUNCTIONS AND STUFF
  946. --\\=================================//
  947.  
  948. function TakeAim()
  949. if Mouse.Target then
  950. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  951. if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then
  952. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  953. TARGET = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  954. local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  955. if TORS then
  956. local DIRECTION = CF(Torso.Position,TORS.Position).lookVector
  957. local DISTANCE = (Torso.Position - TORS.Position).Magnitude
  958. local CHECKFORTARGET = Raycast(Torso.Position, DIRECTION, DISTANCE+5, Character)
  959. if CHECKFORTARGET ~= nil then
  960. if CHECKFORTARGET.Parent == TARGET.Parent or CHECKFORTARGET.Parent.Parent == TARGET.Parent then
  961. ISEEYOU.Parent = Torso
  962. ISEEYOU:Play()
  963. print("Found Target")
  964. print(TARGET.Parent)
  965. repeat
  966. Swait()
  967. if TARGET == HUM and TARGET ~= nil then
  968. local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  969. if TORS then
  970. if TARGET.Health ~= 0 then
  971. local DIRECTION = CF(Torso.Position,TORS.Position).lookVector
  972. local DISTANCE = (Torso.Position - TORS.Position).Magnitude
  973. local CHECKFORTARGET = Raycast(Torso.Position, DIRECTION, DISTANCE+5, Character)
  974. if CHECKFORTARGET ~= nil then
  975. if CHECKFORTARGET.Parent ~= TARGET.Parent and CHECKFORTARGET.Parent.Parent ~= TARGET.Parent then
  976. TARGET = nil
  977. end
  978. else
  979. TARGET = nil
  980. end
  981. else
  982. TARGET = nil
  983. end
  984. else
  985. TARGET = nil
  986. end
  987. end
  988. until TARGET ~= HUM or TARGET == nil
  989. else
  990. TARGET = nil
  991. end
  992. end
  993. end
  994. end
  995. end
  996. end
  997. end
  998.  
  999. function AttackTemplate()
  1000. ATTACK = true
  1001. Rooted = false
  1002. for i=0, 1, 0.1 / Animation_Speed do
  1003. Swait()
  1004. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(-35), RAD(0)), 0.5 / Animation_Speed)
  1005. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1006. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1007. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1008. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1009. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1010. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1011. end
  1012. ATTACK = false
  1013. Rooted = false
  1014. end
  1015.  
  1016. function SpawnTrail(FROM,TO)
  1017. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0))
  1018. MakeForm(TRAIL,"Ball")
  1019. local DIST = (FROM - TO).Magnitude
  1020. TRAIL.Size = VT(0.1,DIST,0.1)
  1021. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1022. coroutine.resume(coroutine.create(function()
  1023. for i = 1, 5 do
  1024. Swait()
  1025. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1026. end
  1027. TRAIL:remove()
  1028. end))
  1029. end
  1030.  
  1031. function ArrowShot()
  1032. ISEEYOU:Stop()
  1033. ATTACK = true
  1034. Rooted = true
  1035. local POINTTARGET = Torso
  1036. local HITPOS = nil
  1037. VALUE1 = true
  1038. local LOOP = 0
  1039. local HIT = false
  1040. local DirectAim = nil
  1041. local DECOYARROW = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,0),false)
  1042. CreateMesh("SpecialMesh", DECOYARROW, "FileMesh", "95920149", "95920067", VT(1,1,1), VT(0, 0, 0))
  1043. DECOYARROW.CFrame = HandlePart.CFrame * ANGLES(RAD(180), RAD(0), RAD(0))
  1044. weldBetween(HandlePart,DECOYARROW)
  1045. repeat
  1046. Swait()
  1047. LOOP = LOOP + 1
  1048. if TARGET then
  1049. local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  1050. if TORS then
  1051. if TARGET.Health == 0 or TARGET == nil then
  1052. break
  1053. end
  1054. local DISTANCE = (Torso.Position - TORS.Position).Magnitude
  1055. POINTTARGET = Raycast(RootPart.Position,RootPart.CFrame.lookVector, DISTANCE, workspace)
  1056. DirectAim,HITPOS = Raycast(RootPart.Position,CF(RootPart.Position,TORS.Position).lookVector, DISTANCE+5, Character)
  1057. if POINTTARGET == nil then
  1058. POINTTARGET = Torso
  1059. end
  1060. if DirectAim ~= nil then
  1061. if HITPOS.X - TORS.Position.X < 1 and DirectAim.Parent == TARGET.Parent then
  1062. HIT = true
  1063. elseif HITPOS.Z - TORS.Position.Z < 1 and DirectAim.Parent == TARGET.Parent then
  1064. HIT = true
  1065. else
  1066. HIT = false
  1067. end
  1068. else
  1069. HIT = false
  1070. end
  1071. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(35), RAD(0)), 2 / Animation_Speed)
  1072. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.15 / Animation_Speed)
  1073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 0.15 / Animation_Speed)
  1074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0.3, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1076. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1078. end
  1079. end
  1080. if TARGET == nil then
  1081. break
  1082. end
  1083. until (HIT == true and LOOP > 35) or LOOP > 300
  1084. DECOYARROW:remove()
  1085. if LOOP <= 300 then
  1086. if TARGET then
  1087. VALUE1 = false
  1088. local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  1089. if TORS then
  1090. CreateSound("145203279", HandlePart, 10, 1)
  1091. if TORS.Name == "Torso" then
  1092. local DISTANCE = (Torso.Position - TORS.Position).Magnitude
  1093. POINTTARGET,HITPOS = Raycast(HandlePart.Position, CF(HandlePart.Position,TORS.Position).lookVector, DISTANCE+5, Character)
  1094. local RAGDOLLBODY,RAGDOLLTORSO = Ragdoll(TARGET.Parent,Torso)
  1095. local ARROW = CreatePart(3, RAGDOLLBODY, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,0),false)
  1096. CreateMesh("SpecialMesh", ARROW, "FileMesh", "95920149", "95920067", VT(1,1,1), VT(0, 0, 0))
  1097. ARROW.CFrame = CF(HITPOS,RAGDOLLTORSO.Position)
  1098. weldBetween(RAGDOLLTORSO,ARROW)
  1099. Debris:AddItem(RAGDOLLBODY,5)
  1100. SpawnTrail(HandlePart.Position,HITPOS)
  1101. else
  1102. TARGET.Parent:BreakJoints()
  1103. print("No i'm not doing R15 ragdolls")
  1104. end
  1105. TARGET = nil
  1106. for i=0, 0.3, 0.1 / Animation_Speed do
  1107. Swait()
  1108. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(35), RAD(0)), 2 / Animation_Speed)
  1109. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
  1110. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
  1111. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1112. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1113. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1114. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1115. end
  1116. end
  1117. end
  1118. end
  1119. VALUE1 = false
  1120. ATTACK = false
  1121. Rooted = false
  1122. end
  1123.  
  1124. function PointBlanc()
  1125. local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  1126. if TORS then
  1127. ATTACK = true
  1128. Rooted = false
  1129. ISEEYOU:Stop()
  1130. local CLONE = Character:Clone()
  1131. CLONE.Adds:remove()
  1132. CLONE.BGM:remove()
  1133. CLONE.Parent = Effects
  1134. KillChildren(CLONE)
  1135. Debris:AddItem(CLONE,5)
  1136. RootPart.CFrame = TORS.CFrame*CF(0,0,5)
  1137. CreateSound("419011101", Torso, 10, 1)
  1138. ArrowShot()
  1139. end
  1140. end
  1141.  
  1142. function HuntersMark()
  1143. ATTACK = true
  1144. Rooted = true
  1145. VALUE1 = true
  1146. local DECOYARROW = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,1),false)
  1147. CreateMesh("SpecialMesh", DECOYARROW, "FileMesh", "95920149", "95920067", VT(1,1,1), VT(0, 0, 0))
  1148. DECOYARROW.CFrame = HandlePart.CFrame * ANGLES(RAD(180), RAD(0), RAD(0))
  1149. weldBetween(HandlePart,DECOYARROW)
  1150. CreateSound("424777055", Head, 10, 1)
  1151. for i=0, 2, 0.1 / Animation_Speed do
  1152. Swait()
  1153. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  1154. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1155. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-75), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1156. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1157. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.65, -0.4) * ANGLES(RAD(170), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1158. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1159. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1160. end
  1161. CreateSound("419011101", DECOYARROW, 10, 1)
  1162. particles(DECOYARROW)
  1163. for i=0, 1, 0.1 / Animation_Speed do
  1164. Swait()
  1165. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  1166. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1167. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-75), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1168. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1169. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.65, -0.4) * ANGLES(RAD(170), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1170. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1171. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1172. end
  1173. local ROOF,ROOFPOS = Raycast(RootPart.Position, CF(RootPart.Position,RootPart.Position+VT(0,1,0)).lookVector, 10000, Character)
  1174. DECOYARROW:remove()
  1175. VALUE1 = false
  1176. SpawnTrail(HandlePart.Position,ROOFPOS)
  1177. CreateSound("145203279", HandlePart, 10, 1)
  1178. for i=0, 0.3, 0.1 / Animation_Speed do
  1179. Swait()
  1180. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  1181. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1182. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-75), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1183. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1184. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.25, -0.3) * ANGLES(RAD(160), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1185. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1186. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1187. end
  1188. if ROOF == nil then
  1189. for i=0, 1, 0.1 / Animation_Speed do
  1190. Swait()
  1191. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1192. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(15), RAD(25)), 0.15 / Animation_Speed)
  1193. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1194. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1195. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.35, -0.2) * ANGLES(RAD(45), RAD(0), RAD(-22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1196. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(-65), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1197. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(65), RAD(35), RAD(0)), 0.2 / Animation_Speed)
  1198. end
  1199. for i = 1, 15 do
  1200. Swait(5)
  1201. local AIMPART,AIMPOS = Raycast(getMouseHit()+VT(0,500,0), CF(getMouseHit()+VT(0,500,0),getMouseHit()).lookVector, 600, Character)
  1202. SpawnTrail(getMouseHit()+VT(0,500,0),AIMPOS)
  1203. if AIMPART ~= nil then
  1204. local ARROW = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,0),false)
  1205. CreateMesh("SpecialMesh", ARROW, "FileMesh", "95920149", "95920067", VT(1,1,1), VT(0, 0, 0))
  1206. ARROW.CFrame = CF(AIMPOS+VT(0,0.5,0),AIMPOS)
  1207. CreateSound("166423137", ARROW, 10, 1)
  1208. if AIMPART.Parent:FindFirstChildOfClass("Humanoid") then
  1209. if AIMPART.Parent:FindFirstChild("Torso") then
  1210. local RAGDOLLBODY = Ragdoll(AIMPART.Parent,ARROW)
  1211. ARROW.Parent = RAGDOLLBODY
  1212. weldBetween(AIMPART,ARROW)
  1213. Debris:AddItem(RAGDOLLBODY)
  1214. else
  1215. AIMPART.Parent:BreakJoints()
  1216. end
  1217. elseif AIMPART.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1218. if AIMPART.Parent.Parent:FindFirstChild("Torso") then
  1219. local RAGDOLLBODY = Ragdoll(AIMPART.Parent.Parent,ARROW)
  1220. ARROW.Parent = RAGDOLLBODY
  1221. weldBetween(AIMPART,ARROW)
  1222. Debris:AddItem(RAGDOLLBODY)
  1223. else
  1224. AIMPART.Parent:BreakJoints()
  1225. end
  1226. else
  1227. weldBetween(AIMPART,ARROW)
  1228. Debris:AddItem(ARROW,5)
  1229. end
  1230. end
  1231. end
  1232. end
  1233. ATTACK = false
  1234. Rooted = false
  1235. end
  1236.  
  1237. --//=================================\\
  1238. --|| ASSIGN THINGS TO KEYS
  1239. --\\=================================//
  1240.  
  1241. function MouseDown(Mouse)
  1242. if ATTACK == false then
  1243. end
  1244. end
  1245.  
  1246. function MouseUp(Mouse)
  1247. HOLD = false
  1248. end
  1249.  
  1250. function KeyDown(Key)
  1251. KEYHOLD = true
  1252. if Key == "q" and ATTACK == false then
  1253. TakeAim()
  1254. end
  1255.  
  1256. if TARGET ~= nil then
  1257. if Key == "z" and ATTACK == false then
  1258. ArrowShot()
  1259. end
  1260.  
  1261. if Key == "v" and ATTACK == false then
  1262. PointBlanc()
  1263. end
  1264. end
  1265. if Key == "x" and ATTACK == false then
  1266. HuntersMark()
  1267. end
  1268. end
  1269.  
  1270. function KeyUp(Key)
  1271. KEYHOLD = false
  1272. end
  1273.  
  1274.  
  1275.  
  1276. --//=================================\\
  1277. --\\=================================//
  1278.  
  1279.  
  1280. function unanchor()
  1281. if UNANCHOR == true then
  1282. g = Character:GetChildren()
  1283. for i = 1, #g do
  1284. if g[i].ClassName == "Part" then
  1285. g[i].Anchored = false
  1286. end
  1287. end
  1288. end
  1289. end
  1290.  
  1291.  
  1292. --//=================================\\
  1293. --|| WRAP THE WHOLE SCRIPT UP
  1294. --\\=================================//
  1295.  
  1296. Humanoid.Changed:connect(function(Jump)
  1297. if Jump == "Jump" and (Disable_Jump == true) then
  1298. Humanoid.Jump = false
  1299. end
  1300. end)
  1301.  
  1302. while true do
  1303. Swait()
  1304. ANIMATE.Parent = nil
  1305. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1306. IDLEANIMATION:Play()
  1307. SINE = SINE + CHANGE
  1308. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1309. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1310. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1311. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1312. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1313. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1314. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1315. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1316. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1317. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1318. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1319. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1320. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1321. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1322. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1323. end
  1324. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1325. ANIM = "Jump"
  1326. if ATTACK == false then
  1327. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1328. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1329. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1330. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1331. end
  1332. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1333. ANIM = "Fall"
  1334. if ATTACK == false then
  1335. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1336. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1337. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1338. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1339. end
  1340. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1341. ANIM = "Idle"
  1342. if ATTACK == false then
  1343. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  1344. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(15), RAD(25)), 0.15 / Animation_Speed)
  1345. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1346. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1347. end
  1348. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1349. ANIM = "Walk"
  1350. WALK = WALK + 1 / Animation_Speed
  1351. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1352. WALK = 0
  1353. if WALKINGANIM == true then
  1354. WALKINGANIM = false
  1355. elseif WALKINGANIM == false then
  1356. WALKINGANIM = true
  1357. end
  1358. end
  1359. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1360. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1361. if ATTACK == false then
  1362. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1363. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1364. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1365. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1366. end
  1367. end
  1368. if ATTACK == false then
  1369. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.35, -0.2) * ANGLES(RAD(45), RAD(0), RAD(-22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1370. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(-65), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1371. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(65), RAD(35), RAD(0)), 0.2 / Animation_Speed)
  1372. end
  1373. unanchor()
  1374. Humanoid.MaxHealth = "inf"
  1375. Humanoid.Health = "inf"
  1376. if Rooted == false then
  1377. Disable_Jump = false
  1378. Humanoid.WalkSpeed = Speed
  1379. elseif Rooted == true then
  1380. Disable_Jump = true
  1381. Humanoid.WalkSpeed = 0
  1382. end
  1383. for _, c in pairs(Character:GetChildren()) do
  1384. if c.ClassName == "Part" and c.Transparency < 1 then
  1385. if c.Name == "Hood" or c.Name == "FACE" then
  1386. c.Color = C3(0,0,0)
  1387. end
  1388. if c:FindFirstChild("Aura") == nil and c.Name ~= "FACE" then
  1389. local AURA = CreatePart(3, c, "Neon", 0, 0.3, "Really black", "Aura", c.Size*1.02,false)
  1390. AURA.CFrame = c.CFrame
  1391. weldBetween(c,AURA)
  1392. if c:FindFirstChildOfClass("SpecialMesh") then
  1393. local COPY = c:FindFirstChildOfClass("SpecialMesh"):Clone()
  1394. COPY.Parent = AURA
  1395. COPY.Scale = COPY.Scale * 1.01
  1396. end
  1397. end
  1398. elseif c.ClassName == "Part" and c.Transparency == 1 then
  1399. if c:FindFirstChild("Aura") then
  1400. c.Aura:remove()
  1401. end
  1402. elseif c.ClassName == "Accessory" then
  1403. c:remove()
  1404. end
  1405. end
  1406. if Head:FindFirstChild("face") then
  1407. Head.face:remove()
  1408. end
  1409. for _, c in pairs(Head:GetChildren()) do
  1410. if c.Name == "Eye" then
  1411. if TARGET == nil then
  1412. if EYECOLOR < 1 then
  1413. EYECOLOR = EYECOLOR + 0.01
  1414. c.Color = C3(1,EYECOLOR,EYECOLOR)
  1415. end
  1416. elseif TARGET ~= nil then
  1417. if EYECOLOR > 0 then
  1418. if EYECOLOR > 0 then
  1419. EYECOLOR = EYECOLOR - 0.01
  1420. c.Color = C3(1,EYECOLOR,EYECOLOR)
  1421. end
  1422. end
  1423. end
  1424. end
  1425. end
  1426. for _, c in pairs(Weapon:GetChildren()) do
  1427. if c.ClassName == "Part" then
  1428. c.Anchored = false
  1429. if c:FindFirstChild("BowWeld") then
  1430. local WELD = c.BowWeld
  1431. if VALUE1 == false then
  1432. WELD.C1 = Clerp(WELD.C1, CF(0, 0.55, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1433. elseif VALUE1 == true then
  1434. WELD.C1 = Clerp(WELD.C1, CF(0, 0.45, -0.55) * ANGLES(RAD(-45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1435. end
  1436. end
  1437. end
  1438. end
  1439. if TARGET == nil then
  1440. GYRO.cframe = CF(RootPart.Position,getMouseHit())
  1441. else
  1442. local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  1443. if TORS ~= nil then
  1444. GYRO.cframe = CF(RootPart.Position,TORS.Position)
  1445. end
  1446. end
  1447. sick.Parent = Character
  1448. Humanoid.Name = "Dread Hunter"
  1449. Humanoid.PlatformStand = false
  1450. Humanoid.Parent = Character
  1451. script.Parent = WEAPONGUI
  1452. end
  1453.  
  1454. --//=================================\\
  1455. --\\=================================//
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461. --//====================================================\\--
  1462. --|| END OF SCRIPT
  1463. --\\====================================================//--
  1464.  
  1465.  
  1466.  
  1467. -------------------------------------------------
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473. ]=], owner.Character):WaitForChild 'ServerRemote';
  1474.  
  1475.  
  1476. local mouse = owner:GetMouse()
  1477.  
  1478.  
  1479.  
  1480.  
  1481. mouse.Button1Down:connect(function()
  1482. remote:InvokeServer (1,mouse);
  1483. end)
  1484. mouse.Button1Up:Connect(function()
  1485. remote:InvokeServer (3,mouse);
  1486. end)
  1487. mouse.KeyDown:connect(function(k)
  1488. k = k:lower()
  1489.  
  1490. remote:InvokeServer (2, k);
  1491. end)
  1492. mouse.KeyUp:connect(function(k)
  1493. k = k:lower()
  1494.  
  1495. remote:InvokeServer (6, k);
  1496. end)
  1497.  
  1498.  
  1499. remote.OnClientInvoke = function (request, ...)
  1500. if (request == 1) then
  1501. return mouse.Hit.p;
  1502. end;
  1503. end;
  1504.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement