MaxNutellaOML

chara

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