Advertisement
Dark_AJ1

chara for my prima XD

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