Advertisement
NoHackJustStevePlayz

Some thingy?

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