Advertisement
lafur

Untitled

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