Advertisement
5sdfsadgaq5465

chara script fe editv2

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