Advertisement
Pancakess

er charaa

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