Advertisement
5325325325

Untitled

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