Advertisement
Bendy928443534

Untitled

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