Advertisement
valentino2016

Chara fe

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