VoidScriptPlayer

Untitled

May 13th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.47 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --Edit by Lwaw.--
  88.  
  89.  
  90. local p = game:GetService("Players").owner
  91. local char = p.Character
  92. local mouse = p:GetMouse()
  93. local larm = char:WaitForChild("Left Arm")
  94. local rarm = char:WaitForChild("Right Arm")
  95. local lleg = char:WaitForChild("Left Leg")
  96. local rleg = char:WaitForChild("Right Leg")
  97. local hed = char:WaitForChild("Head")
  98. local torso = char:WaitForChild("Torso")
  99. local root = char:WaitForChild("HumanoidRootPart")
  100. local hum = char:FindFirstChildOfClass("Humanoid")
  101. local debris = game:GetService("Debris")
  102. local input = game:GetService("UserInputService")
  103. local run = game:GetService("RunService")
  104. local rs = run.Stepped
  105. local wingpose = "Idle"
  106. local DebrisModel = Instance.new("Model",char)
  107. DebrisModel.Name = "Debris"
  108. repeat rs:wait() until p.CharacterAppearanceLoaded
  109.  
  110. noidle = false
  111. shift = false
  112. control = false
  113. no_nosound_able = false
  114. kills = 0
  115.  
  116. ----------------------------------------------------------------------------
  117.  
  118. function rswait(value)
  119. if value ~= nil and value ~= 0 then
  120. for i=1,value do
  121. rs:wait()
  122. end
  123. else
  124. rs:wait()
  125. end
  126. end
  127.  
  128. ----------------------------------------------------------------------------
  129.  
  130. local timeposition = 0
  131.  
  132. function music(id)
  133. if not torso:FindFirstChild("MusicRuin") then
  134. soundz = Instance.new("Sound",torso)
  135. end
  136. soundz.Volume = 10
  137. soundz.Name = "MusicRuin"
  138. soundz.Looped = true
  139. soundz.PlaybackSpeed = 1
  140. soundz.SoundId = "rbxassetid://"..id
  141. soundz:Stop()
  142. soundz:Play()
  143. if no_nosound_able == true then
  144. soundz.TimePosition = timeposition
  145. end
  146. end
  147.  
  148. ----------------------------------------------------------------------------
  149.  
  150. function lerp(a, b, t)
  151. return a + (b - a)*t
  152. end
  153.  
  154. ----------------------------------------------------------------------------
  155.  
  156. function Lerp(c1,c2,al)
  157. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  158. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  159. for i,v in pairs(com1) do
  160. com1[i] = v+(com2[i]-v)*al
  161. end
  162. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  163. end
  164.  
  165. ----------------------------------------------------------------------------
  166.  
  167. function slerp(a, b, t)
  168. dot = a:Dot(b)
  169. if dot > 0.99999 or dot < -0.99999 then
  170. return t <= 0.5 and a or b
  171. else
  172. r = math.acos(dot)
  173. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  174. end
  175. end
  176.  
  177. ----------------------------------------------------------------------------
  178.  
  179. function clerp(c1,c2,al)
  180.  
  181. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  182.  
  183. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  184.  
  185. for i,v in pairs(com1) do
  186.  
  187. com1[i] = lerp(v,com2[i],al)
  188.  
  189. end
  190.  
  191. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  192.  
  193. end
  194.  
  195. ----------------------------------------------------------------------------
  196.  
  197. function findAllNearestTorso(pos,dist)
  198. local list = workspace:children()
  199. local torso = {}
  200. local temp = nil
  201. local human = nil
  202. local temp2 = nil
  203. for x = 1, #list do
  204. temp2 = list[x]
  205. if (temp2.className == "Model") and (temp2 ~= char) then
  206. temp = temp2:findFirstChild("Torso")
  207. human = temp2:findFirstChildOfClass("Humanoid")
  208. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  209. if (temp.Position - pos).magnitude < dist then
  210. table.insert(torso,temp)
  211. dist = (temp.Position - pos).magnitude
  212. end
  213. end
  214. end
  215. end
  216. return torso
  217. end
  218.  
  219. ----------------------------------------------------------------------------
  220.  
  221. function checkIfNotPlayer(model)
  222. if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then
  223. return true
  224. else
  225. return false
  226. end
  227. end
  228.  
  229. ----------------------------------------------------------------------------
  230.  
  231. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  232.  
  233. local wld = Instance.new("Weld", wp1)
  234.  
  235. wld.Part0 = wp0
  236.  
  237. wld.Part1 = wp1
  238.  
  239. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  240.  
  241. return wld
  242.  
  243. end
  244.  
  245. function weld(model)
  246. local parts,last = {}
  247. local function scan(parent)
  248. for _,v in pairs(parent:GetChildren()) do
  249. if (v:IsA("BasePart")) then
  250. if (last) then
  251. local w = Instance.new("Weld")
  252. w.Name = ("%s_Weld"):format(v.Name)
  253. w.Part0,w.Part1 = last,v
  254. w.C0 = last.CFrame:inverse()
  255. w.C1 = v.CFrame:inverse()
  256. w.Parent = last
  257. end
  258. last = v
  259. table.insert(parts,v)
  260. end
  261. scan(v)
  262. end
  263. end
  264. scan(model)
  265. for _,v in pairs(parts) do
  266. v.Anchored = false
  267. v.Locked = true
  268. v.Anchored = false
  269. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  270. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  271. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  272. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  273. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  274. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  275. v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
  276. end
  277. end
  278.  
  279. ----------------------------------------------------------------------------
  280.  
  281. function calculate(part,asd)
  282. local Head = hed
  283. local RightShoulder = asd
  284. local RightArm = part
  285. local MousePosition = mouse.Hit.p
  286. local ToMouse = (MousePosition - Head.Position).unit
  287. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  288. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  289. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  290. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  291. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  292. if tostring(LateralAngle) == "-1.#IND" then
  293. LateralAngle = 0
  294. end
  295. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  296. if LateralAngle > (math.pi / 2) then
  297. LateralAngle = (math.pi / 2)
  298. local Torso = root
  299. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  300. if Point.Z > 0 then
  301. if Point.X > -0 and RightArm == rarm then
  302. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
  303. elseif Point.X < 0 and RightArm == rarm then
  304. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
  305. end
  306. end
  307. end
  308. if Cross.Y < 0 then
  309. LateralAngle = -LateralAngle
  310. end
  311. return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  312. end
  313.  
  314. ----------------------------------------------------------------------------
  315.  
  316. function sound(id,position,vol,pitch,start,finish)
  317. coroutine.resume(coroutine.create(function()
  318.  
  319. local part = Instance.new("Part",workspace)
  320. part.Position = position
  321. part.Size = Vector3.new(0,0,0)
  322. part.CanCollide = false
  323. part.Transparency = 1
  324.  
  325. local sound = Instance.new("Sound",part)
  326.  
  327. sound.SoundId = "rbxassetid://"..id
  328.  
  329. repeat rs:wait() until sound.IsLoaded
  330.  
  331. if vol ~= nil then
  332. sound.Volume = vol
  333. end
  334.  
  335. if pitch ~= nil then
  336. sound.PlaybackSpeed = pitch
  337. end
  338.  
  339. if start ~= nil then
  340. sound.TimePosition = start
  341. end
  342.  
  343. if finish ~= nil then
  344. debris:AddItem(part,finish-start)
  345. else
  346. debris:AddItem(part,sound.TimeLength)
  347. end
  348.  
  349. sound:Play()
  350.  
  351. return sound
  352.  
  353. end))
  354. end
  355.  
  356. ----------------------------------------------------------------------------
  357.  
  358. function computeDirection(vec)
  359. local lenSquared = vec.magnitude * vec.magnitude
  360. local invSqrt = 1 / math.sqrt(lenSquared)
  361. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  362. end
  363.  
  364. ----------------------------------------------------------------------------
  365.  
  366. local shaking = 0
  367. function shake(num) if num > shaking then shaking = num end end
  368. game:GetService("RunService").RenderStepped:connect(function()
  369. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100)
  370. if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
  371. end)
  372.  
  373. plr = game:GetService("Players").owner
  374. DebrisModel = Instance.new("Model",plr.Character)
  375. DebrisModel.Name = "DebrisModel"
  376.  
  377. function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration)
  378.  
  379. local part = Instance.new("Part",DebrisModel)
  380. part.Anchored = true
  381. part.CanCollide = false
  382. part.Size = Vector3.new(1,1,1)
  383. part.Transparency = transparency
  384. part.Material = material
  385. part.Color = color
  386. part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z))
  387.  
  388. local partmesh = Instance.new("SpecialMesh",part)
  389. if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end
  390. partmesh.Scale = size
  391.  
  392. local pvalue = Instance.new("Vector3Value",part)
  393. pvalue.Name = "Position"
  394. pvalue.Value = part.Position
  395.  
  396. local svalue = Instance.new("Vector3Value",part)
  397. svalue.Name = "Size"
  398. svalue.Value = sizechange
  399.  
  400. local rvalue = Instance.new("Vector3Value",part)
  401. rvalue.Name = "Rotation"
  402. rvalue.Value = rotationchange
  403.  
  404. local tvalue = Instance.new("NumberValue",part)
  405. tvalue.Name = "Transparency"
  406. tvalue.Value = transparencychange
  407.  
  408. local avalue = Instance.new("NumberValue",part)
  409. avalue.Name = "Acceleration"
  410. avalue.Value = acceleration
  411.  
  412. part.Name = "EFFECT"
  413.  
  414. return part
  415.  
  416. end
  417.  
  418. game:GetService("RunService").RenderStepped:connect(function()
  419.  
  420.  
  421. if not plr.Character:FindFirstChild("DebrisModel") then
  422. DebrisModel = Instance.new("Model",plr.Character)
  423. DebrisModel.Name = "DebrisModel"
  424. end
  425.  
  426. for i,v in pairs(DebrisModel:GetChildren()) do
  427. if v:IsA("BasePart") and v.Name == "EFFECT" then
  428. local pvalue = v:FindFirstChild("Position").Value
  429. local svalue = v:FindFirstChild("Size").Value
  430. local rvalue = v:FindFirstChild("Rotation").Value
  431. local tvalue = v:FindFirstChild("Transparency").Value
  432. local avalue = v:FindFirstChild("Acceleration").Value
  433. local mesh = v:FindFirstChild("Mesh")
  434. mesh.Scale = mesh.Scale + svalue
  435. v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
  436. v.Transparency = v.Transparency + tvalue
  437. v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z))
  438. if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
  439. v:Destroy()
  440. end
  441. end
  442. end
  443.  
  444.  
  445. end)
  446.  
  447. ----------------------------------------------------------------------------
  448. skin_color = BrickColor.new("Light orange")
  449. p:ClearCharacterAppearance()
  450. --hed:WaitForChild("face"):Destroy()
  451.  
  452. ----------------------------------------------------------------------------
  453. music(540857600)
  454. equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin"))
  455.  
  456. local size = 1
  457.  
  458. newWeld(torso, larm, -1.5*size, 0.5*size, 0)
  459. larm.Weld.C1 = CFrame.new(0, 0.5*size, 0)
  460. newWeld(torso, rarm, 1.5*size, 0.5*size, 0)
  461. rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0)
  462. newWeld(torso, hed, 0, 1.5*size, 0)
  463. newWeld(torso, lleg, -0.5*size, -1, 0)
  464. lleg.Weld.C1 = CFrame.new(0, 1*size, 0)
  465. newWeld(torso, rleg, 0.5*size, -1*size, 0)
  466. rleg.Weld.C1 = CFrame.new(0, 1*size, 0)
  467. newWeld(root, torso, 0, -1*size, 0)
  468. torso.Weld.C1 = CFrame.new(0, -1*size, 0)
  469.  
  470. emitters={}
  471. for i,v in pairs(char:GetChildren()) do
  472. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  473. local emitter = Instance.new("ParticleEmitter",v)
  474. emitter.LightEmission = 1
  475. emitter.Transparency = NumberSequence.new(0.95,1)
  476. emitter.Size = NumberSequence.new(2,5)
  477. emitter.SpreadAngle = Vector2.new(360,360)
  478. emitter.Speed = NumberRange.new(1)
  479. emitter.Lifetime = NumberRange.new(0.75)
  480. emitter.Texture = "rbxassetid://133619974"
  481. emitter.Rate = 20
  482. emitter.Color = ColorSequence.new(Color3.new(1,0,0))
  483. emitter.LockedToPart = true
  484. table.insert(emitters,emitter)
  485. end
  486. end
  487. ----------------------------------------------------------------------------------------
  488. hair = Instance.new("Part",char)
  489. hair.Color = Color3.fromRGB(30,10,0)
  490. hair.CanCollide = false
  491. meshhair = Instance.new("SpecialMesh",hair)
  492. meshhair.MeshId = "rbxassetid://431809364"
  493. meshhair.Scale = Vector3.new(1,1,1)*1.1
  494. newWeld(hed,hair,0,0.22,0)
  495.  
  496. Model0 = Instance.new("Model")
  497. Part1 = Instance.new("Part")
  498. Part2 = Instance.new("Part")
  499. Part3 = Instance.new("Part")
  500. Part4 = Instance.new("Part")
  501. Part5 = Instance.new("Part")
  502. Part6 = Instance.new("Part")
  503. Part7 = Instance.new("Part")
  504. Model0.Parent = char
  505. Part1.Parent = Model0
  506. Part1.Anchored = true
  507. Part1.CanCollide = false
  508. Part1.Size = Vector3.new(2.02000022, 0.370000094, 1.01999998)
  509. Part1.CFrame = CFrame.new(87.5, 17.1749992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  510. Part1.BottomSurface = Enum.SurfaceType.Smooth
  511. Part1.TopSurface = Enum.SurfaceType.Smooth
  512. Part1.Position = Vector3.new(87.5, 17.1749992, 83.5)
  513. Part1.Color = Color3.new(0, 1, 0)
  514. Part2.Parent = Model0
  515. Part2.Anchored = true
  516. Part2.CanCollide = false
  517. Part2.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983)
  518. Part2.CFrame = CFrame.new(88.0500031, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  519. Part2.BottomSurface = Enum.SurfaceType.Smooth
  520. Part2.TopSurface = Enum.SurfaceType.Smooth
  521. Part2.Position = Vector3.new(88.0500031, 18.9549999, 83.2799988)
  522. Part2.Color = Color3.new(0, 1, 0)
  523. Part3.Parent = Model0
  524. Part3.Anchored = true
  525. Part3.CanCollide = false
  526. Part3.Size = Vector3.new(2.02000022, 0.590000093, 1.01999998)
  527. Part3.CFrame = CFrame.new(87.5, 17.6550007, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  528. Part3.BottomSurface = Enum.SurfaceType.Smooth
  529. Part3.TopSurface = Enum.SurfaceType.Smooth
  530. Part3.Position = Vector3.new(87.5, 17.6550007, 83.5)
  531. Part3.Color = Color3.new(0.992157, 0.917647, 0.552941)
  532. Part4.Parent = Model0
  533. Part4.Anchored = true
  534. Part4.CanCollide = false
  535. Part4.Size = Vector3.new(2.02000022, 0.110000037, 0.439999968)
  536. Part4.CFrame = CFrame.new(87.5, 18.9549999, 83.7900009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  537. Part4.BottomSurface = Enum.SurfaceType.Smooth
  538. Part4.TopSurface = Enum.SurfaceType.Smooth
  539. Part4.Position = Vector3.new(87.5, 18.9549999, 83.7900009)
  540. Part4.Color = Color3.new(0, 1, 0)
  541. Part5.Parent = Model0
  542. Part5.Anchored = true
  543. Part5.CanCollide = false
  544. Part5.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983)
  545. Part5.CFrame = CFrame.new(86.9499969, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  546. Part5.BottomSurface = Enum.SurfaceType.Smooth
  547. Part5.TopSurface = Enum.SurfaceType.Smooth
  548. Part5.Position = Vector3.new(86.9499969, 18.9549999, 83.2799988)
  549. Part5.Color = Color3.new(0, 1, 0)
  550. Part6.Name = "asd"
  551. Part6.Parent = Model0
  552. Part6.Transparency = 1
  553. Part6.Anchored = true
  554. Part6.CanCollide = false
  555. Part6.Size = Vector3.new(2, 2, 1)
  556. Part6.CFrame = CFrame.new(87.5, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  557. Part6.BottomSurface = Enum.SurfaceType.Smooth
  558. Part6.TopSurface = Enum.SurfaceType.Smooth
  559. Part6.Position = Vector3.new(87.5, 18, 83.5)
  560. Part7.Parent = Model0
  561. Part7.Anchored = true
  562. Part7.CanCollide = false
  563. Part7.Size = Vector3.new(2.02000022, 0.949999988, 1.01999998)
  564. Part7.CFrame = CFrame.new(87.5, 18.4249992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  565. Part7.BottomSurface = Enum.SurfaceType.Smooth
  566. Part7.TopSurface = Enum.SurfaceType.Smooth
  567. Part7.Position = Vector3.new(87.5, 18.4249992, 83.5)
  568. Part7.Color = Color3.new(0, 1, 0)
  569. weld(Model0)
  570. newWeld(torso,Model0.asd)
  571.  
  572. Model0 = Instance.new("Model")
  573. Part1 = Instance.new("Part")
  574. Part2 = Instance.new("Part")
  575. Model0.Parent = char
  576. Part1.Parent = Model0
  577. Part1.Anchored = true
  578. Part1.CanCollide = false
  579. Part1.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998)
  580. Part1.CFrame = CFrame.new(49.5, 18.0999985, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  581. Part1.BottomSurface = Enum.SurfaceType.Smooth
  582. Part1.TopSurface = Enum.SurfaceType.Smooth
  583. Part1.Position = Vector3.new(49.5, 18.0999985, 83.5)
  584. Part1.Color = Color3.new(0, 1, 0)
  585. Part2.Name = "asd"
  586. Part2.Parent = Model0
  587. Part2.Transparency = 1
  588. Part2.Anchored = true
  589. Part2.CanCollide = false
  590. Part2.Size = Vector3.new(1, 2, 1)
  591. Part2.CFrame = CFrame.new(49.5, 18.0450001, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  592. Part2.BottomSurface = Enum.SurfaceType.Smooth
  593. Part2.TopSurface = Enum.SurfaceType.Smooth
  594. Part2.Position = Vector3.new(49.5, 18.0450001, 83.5)
  595. weld(Model0)
  596. Model1=Model0:Clone()
  597. Model1.Parent=char
  598. newWeld(larm,Model0.asd,0,0,0)
  599. newWeld(rarm,Model1.asd,0,0,0)
  600.  
  601. Model0 = Instance.new("Model")
  602. Part1 = Instance.new("Part")
  603. Part2 = Instance.new("Part")
  604. Part3 = Instance.new("Part")
  605. Model0.Parent = char
  606. Part1.Parent = Model0
  607. Part1.Anchored = true
  608. Part1.CanCollide = false
  609. Part1.Size = Vector3.new(1.03999996, 0.27000007, 1.03999996)
  610. Part1.CFrame = CFrame.new(28, 17.125, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  611. Part1.BottomSurface = Enum.SurfaceType.Smooth
  612. Part1.TopSurface = Enum.SurfaceType.Smooth
  613. Part1.Position = Vector3.new(28, 17.125, 83.5)
  614. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  615. Part2.Parent = Model0
  616. Part2.Anchored = true
  617. Part2.CanCollide = false
  618. Part2.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998)
  619. Part2.CFrame = CFrame.new(28, 18.0550003, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  620. Part2.BottomSurface = Enum.SurfaceType.Smooth
  621. Part2.TopSurface = Enum.SurfaceType.Smooth
  622. Part2.Position = Vector3.new(28, 18.0550003, 83.5)
  623. Part2.Color = Color3.new(0.411765, 0.25098, 0.156863)
  624. Part3.Name = "asd"
  625. Part3.Parent = Model0
  626. Part3.Transparency = 1
  627. Part3.Anchored = true
  628. Part3.CanCollide = false
  629. Part3.Size = Vector3.new(1, 2, 1)
  630. Part3.CFrame = CFrame.new(28, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  631. Part3.BottomSurface = Enum.SurfaceType.Smooth
  632. Part3.TopSurface = Enum.SurfaceType.Smooth
  633. Part3.Position = Vector3.new(28, 18, 83.5)
  634. weld(Model0)
  635. Model1=Model0:Clone()
  636. Model1.Parent=char
  637. newWeld(lleg,Model0.asd,0,0,0)
  638. newWeld(rleg,Model1.asd,0,0,0)
  639.  
  640. ----------------------------------------------------------------------------
  641. HitBox = Instance.new("Part",DebrisModel)
  642. HitBox.Size = Vector3.new(0.5,0.5,2.45)
  643. HitBox.CanCollide = false
  644. HitBox:BreakJoints()
  645. HitBox.Transparency = 1
  646. newWeld(rarm,HitBox,0,-0.95,-1.9)
  647. atch0 = Instance.new("Attachment",HitBox)
  648. atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2)
  649. atch1 = Instance.new("Attachment",HitBox)
  650. atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2)
  651. trail = Instance.new("Trail",HitBox)
  652. trail.Attachment0 = atch0
  653. trail.Attachment1 = atch1
  654. trail.Lifetime = 0.2
  655. trail.Enabled = true
  656. trail.LightEmission = 1
  657. trail.LightInfluence = 0
  658. trail.Color = ColorSequence.new(Color3.new(1,0,0))
  659. trail.Transparency = NumberSequence.new(0,1)
  660.  
  661. function ded(model)
  662. kills = kills + 1
  663. model.Archivable = true
  664. model.Head:ClearAllChildren()
  665. local clone = model:Clone()
  666. clone.Parent = workspace
  667. clone.Name = "DED"
  668. model:Destroy()
  669. clone:FindFirstChildOfClass("Humanoid"):Destroy()
  670. local emitters={}
  671. for i,v in pairs(clone:GetChildren()) do
  672. if v:IsA("Accoutrement") then
  673. v:Destroy()
  674. end
  675. if v:IsA("Part") then
  676. v.Anchored = true
  677. v.CanCollide = false
  678. v.Transparency = 1
  679. local emitter = Instance.new("ParticleEmitter",v)
  680. emitter.LightEmission = 1
  681. emitter.Transparency = NumberSequence.new(0,1)
  682. emitter.Size = NumberSequence.new(0,0.8)
  683. emitter.SpreadAngle = Vector2.new(360,360)
  684. emitter.Speed = NumberRange.new(0.5)
  685. emitter.Lifetime = NumberRange.new(0.75)
  686. emitter.Texture = "rbxassetid://744949545"
  687. emitter.Rate = 20
  688. emitter.Color = ColorSequence.new(Color3.new(1,1,1))
  689. emitter.LockedToPart = false
  690. table.insert(emitters,emitter)
  691. end
  692. end
  693. delay(1, function()
  694. sound(427025525,clone.Head.Position,10,1)
  695. for i,v in pairs(emitters) do
  696. v.Speed = NumberRange.new(4)
  697. v.Acceleration = Vector3.new(0,10,0)
  698. delay(0.5, function()
  699. v.Enabled = false
  700. debris:AddItem(clone,0.75)
  701. end)
  702. end
  703. end)
  704. end
  705.  
  706. local alreadytouched = {}
  707. HitBox.Touched:connect(function(ht)
  708. coroutine.resume(coroutine.create(function()
  709. local hit = ht.Parent
  710. if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  711. local hurt = true
  712. for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end
  713. if hurt == true then
  714. table.insert(alreadytouched,hit)
  715. sound(388826051,ht.Position,10,1)
  716. ded(hit)
  717. end
  718. end
  719. end))
  720. end)
  721.  
  722. function createknife()
  723. Model0 = Instance.new("Model")
  724. Part1 = Instance.new("Part")
  725. BlockMesh2 = Instance.new("BlockMesh")
  726. Part3 = Instance.new("Part")
  727. BlockMesh4 = Instance.new("BlockMesh")
  728. Part5 = Instance.new("Part")
  729. Part6 = Instance.new("Part")
  730. BlockMesh7 = Instance.new("BlockMesh")
  731. Part8 = Instance.new("Part")
  732. Part9 = Instance.new("Part")
  733. Part10 = Instance.new("Part")
  734. SpecialMesh11 = Instance.new("SpecialMesh")
  735. Part12 = Instance.new("Part")
  736. Model0.Parent = char
  737. Part1.Parent = Model0
  738. Part1.Anchored = true
  739. Part1.CanCollide = false
  740. Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  741. Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  742. Part1.BottomSurface = Enum.SurfaceType.Smooth
  743. Part1.TopSurface = Enum.SurfaceType.Smooth
  744. Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997)
  745. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  746. BlockMesh2.Parent = Part1
  747. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  748. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  749. Part3.Parent = Model0
  750. Part3.Anchored = true
  751. Part3.CanCollide = false
  752. Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007)
  753. Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  754. Part3.BottomSurface = Enum.SurfaceType.Smooth
  755. Part3.TopSurface = Enum.SurfaceType.Smooth
  756. Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989)
  757. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  758. BlockMesh4.Parent = Part3
  759. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  760. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  761. Part5.Parent = Model0
  762. Part5.Anchored = true
  763. Part5.CanCollide = false
  764. Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005)
  765. Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  766. Part5.BottomSurface = Enum.SurfaceType.Smooth
  767. Part5.TopSurface = Enum.SurfaceType.Smooth
  768. Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003)
  769. Part5.Color = Color3.new(1, 0, 0)
  770. Part6.Parent = Model0
  771. Part6.Anchored = true
  772. Part6.CanCollide = false
  773. Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  774. Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  775. Part6.BottomSurface = Enum.SurfaceType.Smooth
  776. Part6.TopSurface = Enum.SurfaceType.Smooth
  777. Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997)
  778. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  779. BlockMesh7.Parent = Part6
  780. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  781. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  782. Part8.Name = "asd"
  783. Part8.Parent = Model0
  784. Part8.Anchored = true
  785. Part8.CanCollide = false
  786. Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007)
  787. Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  788. Part8.BottomSurface = Enum.SurfaceType.Smooth
  789. Part8.TopSurface = Enum.SurfaceType.Smooth
  790. Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003)
  791. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  792. Part9.Parent = Model0
  793. Part9.Anchored = true
  794. Part9.CanCollide = false
  795. Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039)
  796. Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  797. Part9.BottomSurface = Enum.SurfaceType.Smooth
  798. Part9.TopSurface = Enum.SurfaceType.Smooth
  799. Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989)
  800. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  801. Part10.Parent = Model0
  802. Part10.Rotation = Vector3.new(0, 0, 180)
  803. Part10.Anchored = true
  804. Part10.CanCollide = false
  805. Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012)
  806. Part10.CFrame = CFrame.new(49.5, 20.5750046, 50.1800003, -0.99999994, -8.74227766e-08, 3.82137093e-15, 8.74227695e-08, -1, 3.17865059e-08, 1.04250613e-15, 3.17865059e-08, 1)
  807. Part10.BottomSurface = Enum.SurfaceType.Smooth
  808. Part10.TopSurface = Enum.SurfaceType.Smooth
  809. Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003)
  810. Part10.Color = Color3.new(1, 0, 0)
  811. SpecialMesh11.Parent = Part10
  812. SpecialMesh11.MeshType = Enum.MeshType.Wedge
  813. Part12.Parent = Model0
  814. Part12.Anchored = true
  815. Part12.CanCollide = false
  816. Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039)
  817. Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  818. Part12.BottomSurface = Enum.SurfaceType.Smooth
  819. Part12.TopSurface = Enum.SurfaceType.Smooth
  820. Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997)
  821. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  822. weld(Model0)
  823. for i,v in pairs(Model0:GetChildren()) do
  824. if v:IsA("Part") and v.Color == Color3.new(1,0,0) then
  825. v.Material = Enum.Material.Neon
  826. end
  827. end
  828. return Model0
  829. end
  830.  
  831. knife = createknife()
  832. newWeld(rarm,knife.asd,0,-1,0)
  833.  
  834. ----------------------------------------------------------------------------------------
  835.  
  836. function createpistol()
  837. Model0 = Instance.new("Model")
  838. Part1 = Instance.new("Part")
  839. BlockMesh2 = Instance.new("BlockMesh")
  840. Part3 = Instance.new("Part")
  841. Part4 = Instance.new("Part")
  842. Part5 = Instance.new("Part")
  843. Part6 = Instance.new("Part")
  844. Part7 = Instance.new("Part")
  845. Part8 = Instance.new("Part")
  846. Part9 = Instance.new("Part")
  847. Part10 = Instance.new("Part")
  848. Part11 = Instance.new("Part")
  849. Part12 = Instance.new("Part")
  850. Part13 = Instance.new("Part")
  851. Part14 = Instance.new("Part")
  852. Part15 = Instance.new("Part")
  853. Part16 = Instance.new("Part")
  854. Part17 = Instance.new("Part")
  855. Part18 = Instance.new("Part")
  856. Part19 = Instance.new("Part")
  857. Model0.Name = "Pistol"
  858. Model0.Parent = char
  859. Part1.Name = "ShootPos"
  860. Part1.Parent = Model0
  861. Part1.BrickColor = BrickColor.new("Really black")
  862. Part1.Anchored = true
  863. Part1.CanCollide = false
  864. Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  865. Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  866. Part1.BottomSurface = Enum.SurfaceType.Smooth
  867. Part1.TopSurface = Enum.SurfaceType.Smooth
  868. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  869. Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434)
  870. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  871. BlockMesh2.Parent = Part1
  872. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  873. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  874. Part3.Parent = Model0
  875. Part3.BrickColor = BrickColor.new("Pearl")
  876. Part3.Anchored = true
  877. Part3.CanCollide = false
  878. Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  879. Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  880. Part3.BottomSurface = Enum.SurfaceType.Smooth
  881. Part3.TopSurface = Enum.SurfaceType.Smooth
  882. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  883. Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429)
  884. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  885. Part4.Parent = Model0
  886. Part4.BrickColor = BrickColor.new("Pearl")
  887. Part4.Anchored = true
  888. Part4.CanCollide = false
  889. Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007)
  890. Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  891. Part4.BottomSurface = Enum.SurfaceType.Smooth
  892. Part4.TopSurface = Enum.SurfaceType.Smooth
  893. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  894. Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429)
  895. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  896. Part5.Parent = Model0
  897. Part5.BrickColor = BrickColor.new("Pearl")
  898. Part5.Rotation = Vector3.new(15, 0, 0)
  899. Part5.Anchored = true
  900. Part5.CanCollide = false
  901. Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006)
  902. Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753)
  903. Part5.BottomSurface = Enum.SurfaceType.Smooth
  904. Part5.TopSurface = Enum.SurfaceType.Smooth
  905. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  906. Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469)
  907. Part5.Orientation = Vector3.new(15, 0, 0)
  908. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  909. Part6.Parent = Model0
  910. Part6.BrickColor = BrickColor.new("Pearl")
  911. Part6.Anchored = true
  912. Part6.CanCollide = false
  913. Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998)
  914. Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  915. Part6.BottomSurface = Enum.SurfaceType.Smooth
  916. Part6.TopSurface = Enum.SurfaceType.Smooth
  917. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  918. Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433)
  919. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  920. Part7.Parent = Model0
  921. Part7.BrickColor = BrickColor.new("Pearl")
  922. Part7.Anchored = true
  923. Part7.CanCollide = false
  924. Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  925. Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  926. Part7.BottomSurface = Enum.SurfaceType.Smooth
  927. Part7.TopSurface = Enum.SurfaceType.Smooth
  928. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  929. Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429)
  930. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  931. Part8.Parent = Model0
  932. Part8.BrickColor = BrickColor.new("Black")
  933. Part8.Rotation = Vector3.new(-15, 0, 0)
  934. Part8.Anchored = true
  935. Part8.CanCollide = false
  936. Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993)
  937. Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  938. Part8.BottomSurface = Enum.SurfaceType.Smooth
  939. Part8.TopSurface = Enum.SurfaceType.Smooth
  940. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  941. Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481)
  942. Part8.Orientation = Vector3.new(-15, 0, 0)
  943. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  944. Part9.Parent = Model0
  945. Part9.BrickColor = BrickColor.new("Pearl")
  946. Part9.Anchored = true
  947. Part9.CanCollide = false
  948. Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  949. Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  950. Part9.BottomSurface = Enum.SurfaceType.Smooth
  951. Part9.TopSurface = Enum.SurfaceType.Smooth
  952. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  953. Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429)
  954. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  955. Part10.Parent = Model0
  956. Part10.BrickColor = BrickColor.new("Pearl")
  957. Part10.Anchored = true
  958. Part10.CanCollide = false
  959. Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  960. Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  961. Part10.BottomSurface = Enum.SurfaceType.Smooth
  962. Part10.TopSurface = Enum.SurfaceType.Smooth
  963. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  964. Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429)
  965. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  966. Part11.Parent = Model0
  967. Part11.BrickColor = BrickColor.new("Pearl")
  968. Part11.Anchored = true
  969. Part11.CanCollide = false
  970. Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024)
  971. Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  972. Part11.BottomSurface = Enum.SurfaceType.Smooth
  973. Part11.TopSurface = Enum.SurfaceType.Smooth
  974. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  975. Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433)
  976. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  977. Part12.Parent = Model0
  978. Part12.BrickColor = BrickColor.new("Pearl")
  979. Part12.Rotation = Vector3.new(-30, 0, 0)
  980. Part12.Anchored = true
  981. Part12.CanCollide = false
  982. Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007)
  983. Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448)
  984. Part12.BottomSurface = Enum.SurfaceType.Smooth
  985. Part12.TopSurface = Enum.SurfaceType.Smooth
  986. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  987. Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431)
  988. Part12.Orientation = Vector3.new(-30, 0, 0)
  989. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  990. Part13.Parent = Model0
  991. Part13.BrickColor = BrickColor.new("Pearl")
  992. Part13.Anchored = true
  993. Part13.CanCollide = false
  994. Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007)
  995. Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  996. Part13.BottomSurface = Enum.SurfaceType.Smooth
  997. Part13.TopSurface = Enum.SurfaceType.Smooth
  998. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  999. Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429)
  1000. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1001. Part14.Parent = Model0
  1002. Part14.BrickColor = BrickColor.new("Pearl")
  1003. Part14.Rotation = Vector3.new(-30, 0, 0)
  1004. Part14.Anchored = true
  1005. Part14.CanCollide = false
  1006. Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25)
  1007. Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329)
  1008. Part14.BottomSurface = Enum.SurfaceType.Smooth
  1009. Part14.TopSurface = Enum.SurfaceType.Smooth
  1010. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1011. Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447)
  1012. Part14.Orientation = Vector3.new(-30, 0, 0)
  1013. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1014. Part15.Parent = Model0
  1015. Part15.BrickColor = BrickColor.new("White")
  1016. Part15.Rotation = Vector3.new(-105, 0, 0)
  1017. Part15.Anchored = true
  1018. Part15.CanCollide = false
  1019. Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007)
  1020. Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371)
  1021. Part15.BottomSurface = Enum.SurfaceType.Smooth
  1022. Part15.TopSurface = Enum.SurfaceType.Smooth
  1023. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1024. Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915)
  1025. Part15.Orientation = Vector3.new(-75, 180, 180)
  1026. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1027. Part16.Name = "asd"
  1028. Part16.Parent = Model0
  1029. Part16.BrickColor = BrickColor.new("Pearl")
  1030. Part16.Rotation = Vector3.new(-15, 0, 0)
  1031. Part16.Anchored = true
  1032. Part16.CanCollide = false
  1033. Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006)
  1034. Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  1035. Part16.BottomSurface = Enum.SurfaceType.Smooth
  1036. Part16.TopSurface = Enum.SurfaceType.Smooth
  1037. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1038. Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692)
  1039. Part16.Orientation = Vector3.new(-15, 0, 0)
  1040. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1041. Part17.Parent = Model0
  1042. Part17.BrickColor = BrickColor.new("Pearl")
  1043. Part17.Anchored = true
  1044. Part17.CanCollide = false
  1045. Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  1046. Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1047. Part17.BottomSurface = Enum.SurfaceType.Smooth
  1048. Part17.TopSurface = Enum.SurfaceType.Smooth
  1049. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1050. Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437)
  1051. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1052. Part18.Parent = Model0
  1053. Part18.BrickColor = BrickColor.new("Pearl")
  1054. Part18.Anchored = true
  1055. Part18.CanCollide = false
  1056. Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  1057. Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1058. Part18.BottomSurface = Enum.SurfaceType.Smooth
  1059. Part18.TopSurface = Enum.SurfaceType.Smooth
  1060. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1061. Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429)
  1062. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1063. Part19.Parent = Model0
  1064. Part19.BrickColor = BrickColor.new("Pearl")
  1065. Part19.Anchored = true
  1066. Part19.CanCollide = false
  1067. Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007)
  1068. Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1069. Part19.BottomSurface = Enum.SurfaceType.Smooth
  1070. Part19.TopSurface = Enum.SurfaceType.Smooth
  1071. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1072. Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433)
  1073. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1074. for i,v in pairs(Model0:GetChildren()) do
  1075. if v:IsA("Part") then
  1076. v.Color = Color3.new(1,1,0)
  1077. v.Material = Enum.Material.Neon
  1078. v.Transparency = 0
  1079. v.CanCollide = false
  1080. end
  1081. end
  1082. weld(Model0)
  1083. return Model0
  1084. end
  1085.  
  1086. mode = "determination"
  1087. function justice()
  1088. mode = "justice"
  1089. for i=1,5 do rs:wait()
  1090. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  1091. Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,1,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005)
  1092. end
  1093. knife:Destroy()
  1094. pistol = createpistol()
  1095. newWeld(rarm,pistol.asd,0,-1,0)
  1096. pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0)
  1097. end
  1098.  
  1099. function determination()
  1100. mode = "determination"
  1101. for i=1,5 do rs:wait()
  1102. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  1103. Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(1,0,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005)
  1104. end
  1105. pistol:Destroy()
  1106. knife = createknife()
  1107. newWeld(rarm,knife.asd,0,-1,0)
  1108. end
  1109.  
  1110. debounce = false
  1111. mouse.KeyDown:connect(function(key)
  1112. if debounce == false then
  1113. debounce = true
  1114. if key == "e" then
  1115. sound(462606062,root.Position,10,1)
  1116. if mode == "determination" then
  1117. justice()
  1118. elseif mode == "justice" then
  1119. determination()
  1120. end
  1121. end
  1122. delay(0.3,function() debounce = false end)
  1123. end
  1124. end)
  1125.  
  1126. ----------------------------------------------------------------------------------------
  1127.  
  1128. function slash()
  1129. local spd = 0.2
  1130. for i=1,15 do rs:wait()
  1131. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1132. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd)
  1133. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), spd)
  1134. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), spd)
  1135. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd)
  1136. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(-10)), spd)
  1137. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1138. end
  1139. sound(357417055,root.Position,10,1)
  1140. attacking = true
  1141. local spd = 0.4
  1142. for i=1,5 do rs:wait()
  1143. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1144. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd)
  1145. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), spd)
  1146. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), spd)
  1147. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd)
  1148. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1149. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-80),math.rad(20)), spd)
  1150. end
  1151. end
  1152.  
  1153. mouse.Button1Down:connect(function()
  1154. if debounce == false and mode == "determination" then
  1155. alreadytouched = {}
  1156. noidle = true
  1157. debounce = true
  1158. slash()
  1159. attacking = false
  1160. noidle = false
  1161. delay(0.05,function() debounce = false end)
  1162. end
  1163. end)
  1164.  
  1165. -----------------------------
  1166. local jumped = false
  1167. function boom()
  1168. freeze = true
  1169. sound(446961725,root.Position,10,1)
  1170. local bg = Instance.new("BodyGyro",root)
  1171. bg.Name = "lolnochara"
  1172. bg.P = 10000
  1173. bg.D = 100
  1174. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1175. if jumped == false then
  1176. root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1177. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1178. else
  1179. root.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1180. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1181. end
  1182.  
  1183. local spd = 0.2
  1184. for i=1,20 do rs:wait()
  1185. if jumped == false then
  1186. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1187. else
  1188. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1189. end
  1190. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1191. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1192. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1193. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(0),math.rad(90)), spd)
  1194. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1195. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd)
  1196. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd)
  1197. end
  1198.  
  1199. bg:Destroy()
  1200.  
  1201. sound(470245800,root.Position,10,1)
  1202.  
  1203. local Part0 = Instance.new("Part",DebrisModel)
  1204. Part0.Name = "Bullet"
  1205. Part0.Material = Enum.Material.Neon
  1206. Part0.Color = Color3.new(1,1,0)
  1207. Part0.Anchored = true
  1208. local mesh = Instance.new("SpecialMesh",Part0)
  1209. mesh.MeshType = Enum.MeshType.Brick
  1210. Part0.CanCollide = false
  1211. local Position = rarm.Position
  1212. local Target = mouse.Hit.p
  1213. local direction = Target - Position
  1214. local direction = computeDirection(direction)
  1215. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1216. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1217. Part0.Size = Vector3.new(5,1,5)
  1218. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1)
  1219. local pos = Position + (direction * (mesh.Scale.Y/2))
  1220. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1221. local loop = nil
  1222. local i = 0
  1223. rs:connect(function()
  1224. local lole = (i/10)
  1225. mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole)
  1226. Part0.Transparency = Part0.Transparency + 0.1
  1227. i = i + 1
  1228. if Part0.Transparency >= 1 then
  1229. Part0:Destroy()
  1230. end
  1231. end)
  1232.  
  1233. if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then
  1234. coroutine.resume(coroutine.create(function()
  1235. sound(388826051,part.Position,10,1)
  1236. ded(part.Parent)
  1237. end))
  1238. end
  1239.  
  1240. local spd = 0.5
  1241. for i=1,10 do rs:wait()
  1242. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1243. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1244. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1245. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(40),math.rad(90)), spd)
  1246. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1247. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd)
  1248. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd)
  1249. end
  1250.  
  1251. freeze = false
  1252.  
  1253. end
  1254.  
  1255. mouse.Button1Down:connect(function()
  1256. if debounce == false and mode == "justice" then
  1257. alreadytouched = {}
  1258. noidle = true
  1259. debounce = true
  1260. boom()
  1261. attacking = false
  1262. noidle = false
  1263. delay(0.05,function() debounce = false end)
  1264. end
  1265. end)
  1266.  
  1267. ----------------------------------------------------------------------------------------
  1268. velocityYFall=0
  1269. velocityYFall2=0
  1270. velocityYFall3=0
  1271. velocityYFall4=0
  1272. neckrotY=0
  1273. neckrotY2=0
  1274. torsorotY=0
  1275. torsorotY2=0
  1276. torsoY=0
  1277. torsoY2=0
  1278. colored = 0
  1279. sine = 0
  1280. change=0.4
  1281. movement=5
  1282. timeranim=0
  1283. running = false
  1284. glitched = false
  1285. backup = hed.Weld.C1
  1286. glitchedC1 = hed.Weld.C1
  1287.  
  1288. mouse.KeyDown:connect(function(key)
  1289. key = string.lower(key)
  1290. if string.byte(key) == 48 then
  1291. running = true
  1292. local keyup = mouse.KeyUp:connect(function(key)
  1293. if string.byte(key) == 48 then
  1294. running = false
  1295. end
  1296. end)
  1297. repeat rs:wait() until running == false
  1298. keyup:disconnect()
  1299. end
  1300. end)
  1301.  
  1302. icolor=1
  1303. imode=false
  1304.  
  1305. didjump = false
  1306. jumppower = 0
  1307. freeze = false
  1308. debounceimpact = false
  1309.  
  1310. function jumpimpact()
  1311. if debounceimpact == false then
  1312. debounceimpact = true
  1313. if jumppower < -150 then jumppower = -150 end
  1314. shake(-jumppower/5)
  1315. for i=1,-jumppower/20 do rs:wait()
  1316. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  1317. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)*size-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05)
  1318. end
  1319. debounceimpact = false
  1320. end
  1321. end
  1322.  
  1323. local sond = nil
  1324. rs:connect(function()
  1325.  
  1326. if not torso:FindFirstChild("STATICSOUND") then
  1327. sond=Instance.new("Sound",torso)
  1328. sond.Name = "STATICSOUND"
  1329. sond.SoundId = "rbxassetid://223103466"
  1330. sond.Looped = true
  1331. sond:Play()
  1332. end
  1333.  
  1334. if icolor > 1 then
  1335. imode = false
  1336. elseif icolor < 0 then
  1337. imode = true
  1338. end
  1339.  
  1340. if imode == true then
  1341. icolor = icolor + 0.01
  1342. else
  1343. icolor = icolor - 0.01
  1344. end
  1345.  
  1346. for i,v in pairs(emitters) do
  1347. v.Acceleration = root.CFrame.upVector*(666/100)
  1348. end
  1349.  
  1350. if p.Character.Parent == nil then
  1351. local model = Instance.new("Model")
  1352. model.Name = p.Name
  1353. p.Character = model
  1354. for i,v in pairs(char:GetChildren()) do
  1355. v.Parent = p.Character
  1356. end
  1357. end
  1358.  
  1359. char = p.Character
  1360. if p.Character.Parent ~= workspace then
  1361. p.Character.Parent = workspace
  1362. end
  1363. for i,v in pairs(char:GetChildren()) do
  1364. if v:IsA("Accoutrement") then
  1365. if v.Handle:FindFirstChild("Mesh") then
  1366. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  1367. v.Handle.Transparency = 0
  1368. end
  1369. elseif v:IsA("BasePart") then
  1370. v.Anchored = false
  1371. if v:FindFirstChildOfClass("BodyPosition") then
  1372. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  1373. end
  1374. if v:FindFirstChildOfClass("BodyVelocity") then
  1375. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  1376. end
  1377. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  1378. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  1379. end
  1380. if v:FindFirstChild("Mesh") then
  1381. v:FindFirstChild("Mesh").Offset = Vector3.new()
  1382. end
  1383. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
  1384. local force = Instance.new("Part",DebrisModel)
  1385. force.Name = v.Name.."FORCEFIELD"
  1386. force.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  1387. force.CanCollide = false
  1388. force.Transparency = 1
  1389. newWeld(v,force,0,0,0)
  1390. else
  1391. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  1392. newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)
  1393. end
  1394. end
  1395. if v.Name ~= "HumanoidRootPart" then
  1396. v.Transparency = 0
  1397. else
  1398. v.Transparency = 1
  1399. end
  1400. end
  1401. end
  1402.  
  1403. if mode == "determination" then
  1404. trail.Enabled = true
  1405. else
  1406. trail.Enabled = false
  1407. end
  1408.  
  1409. if freeze == false then
  1410. if running == false then
  1411. hum.WalkSpeed = 12*size
  1412. change=0.4
  1413. movement=5
  1414. else
  1415. hum.WalkSpeed = (666/10)*size
  1416. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then
  1417. change=1
  1418. else
  1419. change=0.4
  1420. end
  1421. movement=15
  1422. end
  1423. else
  1424. hum.WalkSpeed = 1
  1425. change=0.4
  1426. movement=5
  1427. end
  1428.  
  1429. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  1430. velocityYFall = root.Velocity.Y/1.5
  1431. else
  1432. if -root.Velocity.Y/1.5 < -5 then
  1433. velocityYFall = 5
  1434. elseif -root.Velocity.Y/1.5 > 150 then
  1435. velocityYFall = -150
  1436. end
  1437. end
  1438.  
  1439. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1440. velocityYFall2 = root.Velocity.Y/180
  1441. else
  1442. if -root.Velocity.Y/180 < 0 then
  1443. velocityYFall2 = 0
  1444. elseif -root.Velocity.Y/180 > 1.2 then
  1445. velocityYFall2 = -1.2
  1446. end
  1447. end
  1448.  
  1449. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1450. velocityYFall3 = root.Velocity.Y/1.5
  1451. else
  1452. if -root.Velocity.Y/1.5 < -5 then
  1453. velocityYFall3 = 5
  1454. elseif -root.Velocity.Y/1.5 > 50 then
  1455. velocityYFall3 = -50
  1456. end
  1457. end
  1458.  
  1459. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1460. velocityYFall4 = root.Velocity.Y/1.5
  1461. else
  1462. if -root.Velocity.Y/180 < -5 then
  1463. velocityYFall4 = 5
  1464. elseif -root.Velocity.Y/180 > 50 then
  1465. velocityYFall4 = -50
  1466. end
  1467. end
  1468.  
  1469. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1470. neckrotY = root.RotVelocity.Y/6
  1471. else
  1472. if root.RotVelocity.Y/6 < -1 then
  1473. neckrotY = -1
  1474. elseif root.RotVelocity.Y/6 > 1 then
  1475. neckrotY = 1
  1476. end
  1477. end
  1478.  
  1479. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1480. neckrotY2 = root.RotVelocity.Y/8
  1481. else
  1482. if root.RotVelocity.Y/8 < -0.6 then
  1483. neckrotY2 = -0.6
  1484. elseif root.RotVelocity.Y/8 > 0.6 then
  1485. neckrotY2 = 0.6
  1486. end
  1487. end
  1488.  
  1489. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1490. torsorotY = root.RotVelocity.Y/6
  1491. else
  1492. if root.RotVelocity.Y/6 < -0.2 then
  1493. torsorotY = -0.2
  1494. elseif root.RotVelocity.Y/6 > 0.2 then
  1495. torsorotY = 0.2
  1496. end
  1497. end
  1498.  
  1499. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1500. torsorotY2 = root.RotVelocity.Y/8
  1501. else
  1502. if root.RotVelocity.Y/8 < -0.2 then
  1503. torsorotY2 = -0.2
  1504. elseif root.RotVelocity.Y/8 > 0.2 then
  1505. torsorotY2 = 0.2
  1506. end
  1507. end
  1508.  
  1509. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1510. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1511.  
  1512. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  1513. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1514. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  1515. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1516. local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  1517. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1518. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  1519. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1520. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  1521. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1522.  
  1523. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1524.  
  1525. local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  1526. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1527.  
  1528. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  1529. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1530.  
  1531. if hum.Health > 0 and noidle == false then
  1532. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1533. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new((change/5)*math.sin(sine/4), 1.5, -.2) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4)
  1534. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.cos(sine/2)+0.1,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/2)*math.sin(sine/4)), 0.1)
  1535. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1536. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1537. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05+(change/2)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
  1538. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(sine/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1539. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1540. elseif jumped == true then
  1541. didjump = true
  1542. jumppower = root.Velocity.Y
  1543. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  1544. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1)
  1545. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(velocityYFall)), 0.2)
  1546. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(-velocityYFall)), 0.2)
  1547. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(velocityYFall3/10),math.rad(0), math.rad(0)), 0.1)
  1548. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0)*CFrame.Angles(math.rad(-35),math.rad(0),math.rad(-2)), 0.2)
  1549. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(2)), 0.2)
  1550. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then
  1551. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5*size, -.1*size) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),0, 0), 0.4)
  1552. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.cos(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1)
  1553. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(-5-5*math.cos(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2)
  1554. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(5+5*math.cos(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2)
  1555. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1*size-(0.1*size)*math.cos(sine/16)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  1556. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(10+2*math.cos(sine/16)),math.rad(-5+1*math.cos(sine/32))), 0.2)
  1557. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(-10-2*math.cos(sine/16)),math.rad(5+1*math.cos(sine/32))), 0.2)
  1558. end
  1559. end
  1560. if didjump == true and jumped == false and jumppower < 0 then
  1561. didjump = false
  1562. jumpimpact()
  1563. end
  1564.  
  1565. local chance = math.random(0,10000)/100
  1566. if chance <= 5 + (kills/2) then
  1567. if glitched == false then
  1568. backup = hed.Weld.C1
  1569. end
  1570. if torso:FindFirstChild("MusicRuin") then
  1571. equalizer.HighGain = 0
  1572. equalizer.MidGain = -20
  1573. equalizer.LowGain = -80
  1574. end
  1575. hed.Weld.C1 = glitchedC1
  1576. local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1)
  1577. hed.Color = glitch_color
  1578. torso.Color = glitch_color
  1579. rarm.Color = glitch_color
  1580. larm.Color = glitch_color
  1581. rleg.Color = glitch_color
  1582. lleg.Color = glitch_color
  1583. shake(5)
  1584. glitched = true
  1585. hed.face.Texture = "rbxassetid://1800923051"
  1586. sond:Resume()
  1587. else
  1588. if glitched == true then
  1589. glitched = false
  1590. hed.Weld.C1 = backup
  1591. glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20)))
  1592. end
  1593. if torso:FindFirstChild("MusicRuin") then
  1594. equalizer.HighGain = 0
  1595. equalizer.MidGain = 0
  1596. equalizer.LowGain = 0
  1597. end
  1598. hed.BrickColor = skin_color
  1599. torso.BrickColor = skin_color
  1600. rarm.BrickColor = skin_color
  1601. larm.BrickColor = skin_color
  1602. rleg.BrickColor = skin_color
  1603. lleg.BrickColor = skin_color
  1604. hed.face.Texture = "rbxassetid://1800923051"
  1605. sond:Pause()
  1606. end
  1607.  
  1608. timeposition = soundz.TimePosition
  1609. sine = sine + change
  1610. hum.Health = math.huge
  1611. hum.MaxHealth = math.huge
  1612. end)
Advertisement
Add Comment
Please, Sign In to add comment