Advertisement
EARTHWORM_SALLY

as

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