sawgamer1

Untitled

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