VoidScriptPlayer

Untitled

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