Advertisement
XDMANFROMXDWORLD

ROBLOX Your CHARActer Script

Jul 12th, 2018
12,462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.65 KB | None | 0 0
  1. --// Created by 1x1x1x1IAMbck \\--
  2. --// Remake from chara \\--
  3.  
  4. --// Whitelist \\--
  5.  
  6.  
  7. -- friend list
  8. print([[
  9. ___________________________________
  10.  
  11. your CHARActer by 1x1x1x1IAMbck
  12. Build 0001
  13. Working whitelist
  14. __________________________________
  15.  
  16. Since i give it to VengefulProgram,then it will be leaked.
  17. Why? GUESS WHAT DREAMER LEAKED IT FIRST AGAGGSGshsHahsqaHAAhaBHAshghga
  18. ]])
  19.  
  20.  
  21. --// Main \\--
  22.  
  23. local p = game:service'Players'.LocalPlayer
  24. local char = p.Character
  25. local plr = game.Players.LocalPlayer
  26. local character = plr.Character
  27. player = game:GetService("Players").LocalPlayer
  28. chara = player.Character
  29. local humanoid = character.Humanoid
  30. chara.Humanoid.MaxHealth = math.huge
  31. chara.Humanoid.Health = math.huge
  32.  
  33. humanoid.Changed:connect(function()
  34. if chara.Humanoid.Health > math.huge then
  35. chara.Humanoid.Health = math.huge
  36. end
  37. end)
  38. mouse = game.Players.LocalPlayer:GetMouse()
  39. player = game.Players.LocalPlayer
  40. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/0,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))}
  41. local Player = game.Players.LocalPlayer
  42. local Character = Player.Character
  43. local torso = Character.Torso
  44. local hed = Character.Head
  45. local p = game.Players.LocalPlayer
  46. local char = p.Character
  47. RArm = Character["Right Arm"]
  48. LArm = Character["Left Arm"]
  49. RLeg = Character["Right Leg"]
  50. LLeg = Character["Left Leg"]
  51. local p = game:GetService("Players").LocalPlayer
  52. local char = p.Character
  53. local mouse = p:GetMouse()
  54. local larm = char:WaitForChild("Left Arm")
  55. local rarm = char:WaitForChild("Right Arm")
  56. local lleg = char:WaitForChild("Left Leg")
  57. local rleg = char:WaitForChild("Right Leg")
  58. local hed = char:WaitForChild("Head")
  59. local torso = char:WaitForChild("Torso")
  60. local root = char:WaitForChild("HumanoidRootPart")
  61. local hum = char:FindFirstChildOfClass("Humanoid")
  62. local debris = game:GetService("Debris")
  63. local input = game:GetService("UserInputService")
  64. local run = game:GetService("RunService")
  65. local rs = run.RenderStepped
  66. local wingpose = "Idle"
  67. local DebrisModel = Instance.new("Model",char)
  68. DebrisModel.Name = "Debris"
  69. repeat rs:wait() until p.CharacterAppearanceLoaded
  70. local slashsound1 = Instance.new("Sound", hed)
  71. slashsound1.SoundId = "rbxassetid://935501955"
  72. slashsound1.Volume = 1.2
  73. slashsound1.Pitch = 1
  74. slashsound1.Looped = true
  75. local slashsound2 = Instance.new("Sound", hed)
  76. slashsound2.SoundId = "rbxassetid://323578832"
  77. slashsound2.Volume = 5
  78. local slashsound3 = Instance.new("Sound", hed)
  79. slashsound3.SoundId = "rbxassetid://587998408"
  80. slashsound3.Volume = 50
  81. local slashsoundglobal = Instance.new("Sound", hed)
  82. slashsoundglobal.SoundId = "rbxassetid://323578832" --323578832
  83. slashsoundglobal.Volume = 500
  84. slashsoundglobal.MaxDistance = 10000
  85. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  86. local Plrs = S.Players
  87. local Plr = Plrs.LocalPlayer
  88. local Char = Plr.Character
  89. local Hum = Char:FindFirstChildOfClass'Humanoid'
  90. local RArm = Char["Right Arm"]
  91. local LArm = Char["Left Arm"]
  92. local RLeg = Char["Right Leg"]
  93. local LLeg = Char["Left Leg"]
  94. local Root = Char:FindFirstChild'HumanoidRootPart'
  95. local Torso = Char.Torso
  96. local Head = Char.Head
  97. local NeutralAnims = true
  98. local Attack = false
  99. local BloodPuddles = {}
  100. local Effects = {}
  101. local Debounces = {Debounces={}}
  102. local Mouse = Plr:GetMouse()
  103. local Hit = {}
  104. local Sine = 0
  105. local Change = 1
  106. local Souls = 0
  107. mouse = game.Players.LocalPlayer:GetMouse()
  108. player = game.Players.LocalPlayer
  109. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/0,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))}
  110. local Player = game.Players.LocalPlayer
  111. local Character = Player.Character
  112. local torso = Character.Torso
  113. local hed = Character.Head
  114. local p = game.Players.LocalPlayer
  115. local char = p.Character
  116. RArm = Character["Right Arm"]
  117. LArm = Character["Left Arm"]
  118. RLeg = Character["Right Leg"]
  119. LLeg = Character["Left Leg"]
  120.  
  121. noidle = false
  122. shift = false
  123. control = false
  124. no_nosound_able = false
  125. kills = -20
  126.  
  127. --// Shortcut Variables \\--
  128.  
  129. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  130. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  131. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  132. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  133. local R3 = {N=Region3.new}
  134. local De = S.Debris
  135. local WS = workspace
  136. local Lght = S.Lighting
  137. local RepS = S.ReplicatedStorage
  138. local IN = Instance.new
  139. local CSK = ColorSequenceKeypoint.new
  140. local CS = ColorSequence.new
  141. IT = Instance.new
  142. CF = CFrame.new
  143. VT = Vector3.new
  144. RAD = math.rad
  145. UD2 = UDim2.new
  146. BRICKC = BrickColor.new
  147. ANGLES = CFrame.Angles
  148. EULER = CFrame.fromEulerAnglesXYZ
  149. COS = math.cos
  150. ACOS = math.acos
  151. SIN = math.sin
  152. ASIN = math.asin
  153. ABS = math.abs
  154. MRANDOM = math.random
  155. FLOOR = math.floor
  156.  
  157. --// Controls \\--
  158.  
  159. if 1 then
  160. local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  161. local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
  162. Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
  163. local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
  164. idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new()
  165. idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1)
  166. idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end)
  167. local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
  168. normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
  169. normal.TextXAlignment="Left"normal.TextYAlignment="Top"
  170. normal.Text=[[THX For using it my friend
  171. ----------------------------------
  172. *Q : WIP
  173. *E : Switch weapons
  174. *F : Teleport
  175. *T : Scary tount
  176. *L/K : mute / unmute music
  177. Shift : Sprint
  178.  
  179. Created By 1x1x1x1IAMbck
  180. Inspirated by CKbackups Chara
  181. ]]
  182. spawn(function()
  183. while game:service'RunService'.RenderStepped:wait()do
  184. Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1)
  185. end end)
  186. end
  187. --------------------------------------------------------
  188.  
  189. --// Debounce System \\--
  190.  
  191.  
  192. function Debounces:New(name,cooldown)
  193. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  194. setmetatable(aaaaa,{__index = Debounces})
  195. Debounces.Debounces[name] = aaaaa
  196. return aaaaa
  197. end
  198.  
  199. function Debounces:Use(overrideUsable)
  200. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  201. if(self.Usable or overrideUsable)then
  202. self.Usable = false
  203. self.CoolingDown = true
  204. local LastUse = time()
  205. self.LastUse = LastUse
  206. delay(self.Cooldown or 2,function()
  207. if(self.LastUse == LastUse)then
  208. self.CoolingDown = false
  209. self.Usable = true
  210. end
  211. end)
  212. end
  213. end
  214.  
  215. function Debounces:Get(name)
  216. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  217. for i,v in next, Debounces.Debounces do
  218. if(i == name)then
  219. return v;
  220. end
  221. end
  222. end
  223.  
  224. function Debounces:GetProgressPercentage()
  225. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  226. if(self.CoolingDown and not self.Usable)then
  227. return math.max(
  228. math.floor(
  229. (
  230. (time()-self.LastUse)/self.Cooldown or 2
  231. )*100
  232. )
  233. )
  234. else
  235. return 100
  236. end
  237. end
  238.  
  239. --// Create instance roblox \\--
  240.  
  241. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  242. local Sound = IN("Sound")
  243. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  244. Sound.Pitch = pitch or 1
  245. Sound.Volume = volume or 1
  246. Sound.Looped = looped or false
  247. if(autoPlay)then
  248. coroutine.wrap(function()
  249. repeat wait() until Sound.IsLoaded
  250. Sound.Playing = autoPlay or false
  251. end)()
  252. end
  253. if(not looped and effect)then
  254. Sound.Stopped:connect(function()
  255. Sound.Volume = 0
  256. Sound:destroy()
  257. end)
  258. elseif(effect)then
  259. warn("Sound can't be looped and a sound effect!")
  260. end
  261. Sound.Parent =parent or Torso
  262. return Sound
  263. end
  264.  
  265. function Part(parent,color,material,size,cframe,anchored,cancollide)
  266. local part = IN("Part")
  267. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  268. part.Material = (material or Enum.Material.SmoothPlastic)
  269. part.TopSurface,part.BottomSurface=10,10
  270. part.Size = (size or V3.N(1,1,1))
  271. part.CFrame = (cframe or CF.N(0,0,0))
  272. part.Anchored = (anchored or false)
  273. part.CanCollide = (cancollide or false)
  274. part.Parent = (parent or Char)
  275. return part
  276. end
  277. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  278. local part = IN("SpecialMesh")
  279. part.MeshId = meshid or ""
  280. part.TextureId = textid or ""
  281. part.Scale = scale or V3.N(1,1,1)
  282. part.Offset = offset or V3.N(0,0,0)
  283. part.MeshType = meshtype or Enum.MeshType.Sphere
  284. part.Parent = parent
  285. return part
  286. end
  287.  
  288. NewInstance = function(instance,parent,properties)
  289. local inst = Instance.new(instance,parent)
  290. if(properties)then
  291. for i,v in next, properties do
  292. pcall(function() inst[i] = v end)
  293. end
  294. end
  295. return inst;
  296. end
  297.  
  298. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  299. local NEWMESH = IT(MESH)
  300. if MESH == "SpecialMesh" then
  301. NEWMESH.MeshType = MESHTYPE
  302. if MESHID ~= "nil" and MESHID ~= "" then
  303. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  304. end
  305. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  306. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  307. end
  308. end
  309. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  310. NEWMESH.Scale = SCALE
  311. NEWMESH.Parent = PARENT
  312. return NEWMESH
  313. end
  314.  
  315. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  316. local NEWPART = IT("Part")
  317. NEWPART.formFactor = FORMFACTOR
  318. NEWPART.Reflectance = REFLECTANCE
  319. NEWPART.Transparency = TRANSPARENCY
  320. NEWPART.CanCollide = false
  321. NEWPART.Locked = true
  322. NEWPART.Anchored = true
  323. if ANCHOR == false then
  324. NEWPART.Anchored = false
  325. end
  326. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  327. NEWPART.Name = NAME
  328. NEWPART.Size = SIZE
  329. NEWPART.Position = Torso.Position
  330. NEWPART.Material = MATERIAL
  331. NEWPART:BreakJoints()
  332. NEWPART.Parent = PARENT
  333. return NEWPART
  334. end
  335.  
  336. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  337. local NEWWELD = IT(TYPE)
  338. NEWWELD.Part0 = PART0
  339. NEWWELD.Part1 = PART1
  340. NEWWELD.C0 = C0
  341. NEWWELD.C1 = C1
  342. NEWWELD.Parent = PARENT
  343. return NEWWELD
  344. end
  345.  
  346. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  347.  
  348.  
  349.  
  350.  
  351. --// RSwait \\--
  352.  
  353. function rswait(value)
  354. if value ~= nil and value ~= 0 then
  355. for i=1,value do
  356. rs:wait()
  357. end
  358. else
  359. rs:wait()
  360. end
  361. end
  362.  
  363. --// Timestop \\--
  364.  
  365. local timeposition = 0
  366.  
  367. function music(id)
  368. if not torso:FindFirstChild("MusicRuin") then
  369. soundz = Instance.new("Sound",torso)
  370. end
  371. soundz.Volume = 10
  372. soundz.Name = "MusicRuin"
  373. soundz.Looped = true
  374. soundz.PlaybackSpeed = 1
  375. soundz.SoundId = "rbxassetid://"..id
  376. soundz:Stop()
  377. soundz:Play()
  378. if no_nosound_able == true then
  379. soundz.TimePosition = timeposition
  380. end
  381. end
  382.  
  383. --// Lerp \\--
  384.  
  385. function lerp(a, b, t)
  386. return a + (b - a)*t
  387. end
  388.  
  389. function Lerp(c1,c2,al)
  390. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  391. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  392. for i,v in pairs(com1) do
  393. com1[i] = v+(com2[i]-v)*al
  394. end
  395. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  396. end
  397.  
  398. --// SLerp \\--
  399.  
  400. function slerp(a, b, t)
  401. dot = a:Dot(b)
  402. if dot > 0.99999 or dot < -0.99999 then
  403. return t <= 0.5 and a or b
  404. else
  405. r = math.acos(dot)
  406. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  407. end
  408. end
  409.  
  410. --// CLerp \\--
  411.  
  412. function clerp(c1,c2,al)
  413.  
  414. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  415.  
  416. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  417.  
  418. for i,v in pairs(com1) do
  419.  
  420. com1[i] = lerp(v,com2[i],al)
  421.  
  422. end
  423.  
  424. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  425.  
  426. end
  427.  
  428. --// Find torso \\--
  429.  
  430. function findAllNearestTorso(pos,dist)
  431. local list = workspace:children()
  432. local torso = {}
  433. local temp = nil
  434. local human = nil
  435. local temp2 = nil
  436. for x = 1, #list do
  437. temp2 = list[x]
  438. if (temp2.className == "Model") and (temp2 ~= char) then
  439. temp = temp2:findFirstChild("Torso")
  440. human = temp2:findFirstChildOfClass("Humanoid")
  441. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  442. if (temp.Position - pos).magnitude < dist then
  443. table.insert(torso,temp)
  444. dist = (temp.Position - pos).magnitude
  445. end
  446. end
  447. end
  448. end
  449. return torso
  450. end
  451.  
  452. --// Player Check \\--
  453.  
  454. function checkIfNotPlayer(model)
  455. 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
  456. return true
  457. else
  458. return false
  459. end
  460. end
  461.  
  462. --// Weld \\--
  463.  
  464. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  465.  
  466. local wld = Instance.new("Weld", wp1)
  467.  
  468. wld.Part0 = wp0
  469.  
  470. wld.Part1 = wp1
  471.  
  472. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  473.  
  474. return wld
  475.  
  476. end
  477.  
  478. function weld(model)
  479. local parts,last = {}
  480. local function scan(parent)
  481. for _,v in pairs(parent:GetChildren()) do
  482. if (v:IsA("BasePart")) then
  483. if (last) then
  484. local w = Instance.new("Weld")
  485. w.Name = ("%s_Weld"):format(v.Name)
  486. w.Part0,w.Part1 = last,v
  487. w.C0 = last.CFrame:inverse()
  488. w.C1 = v.CFrame:inverse()
  489. w.Parent = last
  490. end
  491. last = v
  492. table.insert(parts,v)
  493. end
  494. scan(v)
  495. end
  496. end
  497. scan(model)
  498. for _,v in pairs(parts) do
  499. v.Anchored = false
  500. v.Locked = true
  501. v.Anchored = false
  502. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  503. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  504. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  505. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  506. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  507. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  508. v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
  509. end
  510. end
  511.  
  512. --// Weapon Creation \\--
  513.  
  514. function calculate(part,asd)
  515. local Head = hed
  516. local RightShoulder = asd
  517. local RightArm = part
  518. local MousePosition = mouse.Hit.p
  519. local ToMouse = (MousePosition - Head.Position).unit
  520. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  521. 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)))
  522. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  523. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  524. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  525. if tostring(LateralAngle) == "-1.#IND" then
  526. LateralAngle = 0
  527. end
  528. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  529. if LateralAngle > (math.pi / 2) then
  530. LateralAngle = (math.pi / 2)
  531. local Torso = root
  532. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  533. if Point.Z > 0 then
  534. if Point.X > -0 and RightArm == rarm then
  535. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
  536. elseif Point.X < 0 and RightArm == rarm then
  537. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
  538. end
  539. end
  540. end
  541. if Cross.Y < 0 then
  542. LateralAngle = -LateralAngle
  543. end
  544. return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  545. end
  546.  
  547. --// Sound \\--
  548.  
  549. function sound(id,position,vol,pitch,start,finish)
  550. coroutine.resume(coroutine.create(function()
  551.  
  552. local part = Instance.new("Part",workspace)
  553. part.Position = position
  554. part.Size = Vector3.new(0,0,0)
  555. part.CanCollide = false
  556. part.Transparency = 1
  557.  
  558. local sound = Instance.new("Sound",part)
  559.  
  560. sound.SoundId = "rbxassetid://"..id
  561.  
  562. repeat rs:wait() until sound.IsLoaded
  563.  
  564. if vol ~= nil then
  565. sound.Volume = vol
  566. end
  567.  
  568. if pitch ~= nil then
  569. sound.PlaybackSpeed = pitch
  570. end
  571.  
  572. if start ~= nil then
  573. sound.TimePosition = start
  574. end
  575.  
  576. if finish ~= nil then
  577. debris:AddItem(part,finish-start)
  578. else
  579. debris:AddItem(part,sound.TimeLength)
  580. end
  581.  
  582. sound:Play()
  583.  
  584. return sound
  585.  
  586. end))
  587. end
  588.  
  589. --// Computedirection \\--
  590.  
  591. function computeDirection(vec)
  592. local lenSquared = vec.magnitude * vec.magnitude
  593. local invSqrt = 1 / math.sqrt(lenSquared)
  594. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  595. end
  596.  
  597. --// Shake \\--
  598.  
  599. local shaking = 0
  600. function shake(num) if num > shaking then shaking = num end end
  601. game:GetService("RunService").RenderStepped:connect(function()
  602. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100)
  603. if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
  604. end)
  605.  
  606. plr = game:GetService("Players").LocalPlayer
  607. DebrisModel = Instance.new("Model",plr.Character)
  608. DebrisModel.Name = "DebrisModel"
  609.  
  610. function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration)
  611.  
  612. local part = Instance.new("Part",DebrisModel)
  613. part.Anchored = true
  614. part.CanCollide = false
  615. part.Size = Vector3.new(1,1,1)
  616. part.Transparency = transparency
  617. part.Material = material
  618. part.Color = color
  619. part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z))
  620.  
  621. local partmesh = Instance.new("SpecialMesh",part)
  622. if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end
  623. partmesh.Scale = size
  624.  
  625. local pvalue = Instance.new("Vector3Value",part)
  626. pvalue.Name = "Position"
  627. pvalue.Value = part.Position
  628.  
  629. local svalue = Instance.new("Vector3Value",part)
  630. svalue.Name = "Size"
  631. svalue.Value = sizechange
  632.  
  633. local rvalue = Instance.new("Vector3Value",part)
  634. rvalue.Name = "Rotation"
  635. rvalue.Value = rotationchange
  636.  
  637. local tvalue = Instance.new("NumberValue",part)
  638. tvalue.Name = "Transparency"
  639. tvalue.Value = transparencychange
  640.  
  641. local avalue = Instance.new("NumberValue",part)
  642. avalue.Name = "Acceleration"
  643. avalue.Value = acceleration
  644.  
  645. part.Name = "EFFECT"
  646.  
  647. return part
  648.  
  649. end
  650.  
  651. game:GetService("RunService").RenderStepped:connect(function()
  652.  
  653.  
  654. if not plr.Character:FindFirstChild("DebrisModel") then
  655. DebrisModel = Instance.new("Model",plr.Character)
  656. DebrisModel.Name = "DebrisModel"
  657. end
  658.  
  659. for i,v in pairs(DebrisModel:GetChildren()) do
  660. if v:IsA("BasePart") and v.Name == "EFFECT" then
  661. local pvalue = v:FindFirstChild("Position").Value
  662. local svalue = v:FindFirstChild("Size").Value
  663. local rvalue = v:FindFirstChild("Rotation").Value
  664. local tvalue = v:FindFirstChild("Transparency").Value
  665. local avalue = v:FindFirstChild("Acceleration").Value
  666. local mesh = v:FindFirstChild("Mesh")
  667. mesh.Scale = mesh.Scale + svalue
  668. v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
  669. v.Transparency = v.Transparency + tvalue
  670. v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z))
  671. if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
  672. v:Destroy()
  673. end
  674. end
  675. end
  676.  
  677.  
  678. end)
  679.  
  680. --// Main 2# \\--
  681.  
  682. player = game.Players.LocalPlayer
  683. chara = player.Character
  684. plr = game.Players.LocalPlayer
  685. char = plr.Character
  686. mouse = plr:GetMouse()
  687. whitecolor = Color3.new(1,1,1)
  688. mouse = game.Players.LocalPlayer:GetMouse()
  689. player = game.Players.LocalPlayer
  690. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/0,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))}
  691. local Player = game.Players.LocalPlayer
  692. local Character = Player.Character
  693. local torso = Character.Torso
  694. local hed = Character.Head
  695. local p = game.Players.LocalPlayer
  696. local char = p.Character
  697. for i,v in pairs(char:GetChildren()) do
  698. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  699. v:Destroy()
  700. end
  701. end
  702. for i,v in pairs(char:GetChildren()) do
  703. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  704. v:Destroy()
  705. end
  706. end
  707. for _,v in next, char:children() do
  708. if(v:IsA'Accessory')then
  709. v:destroy()
  710. end
  711. end
  712.  
  713.  
  714. --// Short keys \\--
  715.  
  716. RArm = Character["Right Arm"]
  717. LArm = Character["Left Arm"]
  718. RLeg = Character["Right Leg"]
  719. LLeg = Character["Left Leg"]
  720.  
  721. --// Clothes \\--
  722.  
  723. shirt = Instance.new("Shirt", char)
  724. shirt.Name = "Shirt"
  725. pants = Instance.new("Pants", char)
  726. pants.Name = "Pants"
  727. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=344089667"
  728. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=344084364"
  729. hed.face.Texture = "http://www.roblox.com/asset/?id=679717479"
  730.  
  731. RArm.BrickColor = BrickColor.new'Nougat'
  732. LArm.BrickColor = BrickColor.new'Nougat'
  733. RLeg.BrickColor = BrickColor.new'Nougat'
  734. LLeg.BrickColor = BrickColor.new'Nougat'
  735. torso.BrickColor = BrickColor.new'Nougat'
  736. hed.BrickColor = BrickColor.new'Nougat'
  737. char['Body Colors'].HeadColor = BrickColor.new'Nougat'
  738. char['Body Colors'].TorsoColor = BrickColor.new'Nougat'
  739. char['Body Colors'].RightArmColor = BrickColor.new'Nougat'
  740. char['Body Colors'].LeftArmColor = BrickColor.new'Nougat'
  741. char['Body Colors'].RightLegColor = BrickColor.new'Nougat'
  742. char['Body Colors'].LeftLegColor = BrickColor.new'Nougat'
  743.  
  744.  
  745. local Hair = char:FindFirstChild("Hair_F") or Instance.new("Hat")
  746. Hair.AttachmentPos = Vector3.new(0, 0.33, 0)
  747. Hair.Name = "Hair_F"
  748. local HairHandle = Hair:FindFirstChild("Handle") or Instance.new("Part", Hair)
  749. if HairHandle.Name ~= "Handle" then
  750. HairHandle.Size = Vector3.new(1,1,1)
  751. end
  752. HairHandle.BottomSurface = 0
  753. HairHandle.Name = "Handle"
  754. HairHandle.TopSurface = 0
  755. HairHandle.Locked = 1
  756. local Mesh = Hair:FindFirstChild("Mesh") or Instance.new("SpecialMesh", HairHandle)
  757. Mesh.TextureId = ""
  758. Mesh.MeshId = "http://www.roblox.com/asset/?id=212966179"
  759. Mesh.Scale = Vector3.new(1.1,1.1,1.1)
  760. Mesh.Offset = Vector3.new(0,0.125,0)
  761. Hair.Parent = Character
  762. HairHandle.BrickColor = BrickColor.new("Really black")
  763. HairHandle.Material = Enum.Material.Granite
  764. local tail = Instance.new("Part",chara)
  765. tail.Name = "Tail"
  766. tail.Size = Vector3.new(0,0,0)
  767. tail.Position = chara.Torso.Position
  768. tail.BrickColor = BrickColor.new("Nougat")
  769. local tailmesh = Instance.new("SpecialMesh",tail)
  770. tailmesh.MeshType = "FileMesh"
  771. tailmesh.MeshId = "http://www.roblox.com/asset/?id=188635159"
  772. tailmesh.Scale = Vector3.new(1,1,2)
  773. local tailweld = Instance.new("Weld",tail)
  774. tailweld.Part0 = chara.Torso
  775. tailweld.Part1 = tail
  776. tailweld.C0 = CFrame.new(-1.1,-1.5,.7)
  777. tailweld.C0 = tailweld.C0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180))
  778. local p = Instance.new("Part",chara)
  779. p.Name = "Ears"
  780. p.BrickColor = BrickColor.new("Nougat")
  781. p.Size = Vector3.new(0,0,0)
  782. p.BottomSurface = 0
  783. p.TopSurface = 0
  784. p.Position = chara.Head.Position
  785. local pweld = Instance.new("Weld",p)
  786. pweld.Part0 = chara.Head
  787. pweld.Part1 = p
  788. pweld.C0 = CFrame.new(0,.7,0)
  789. pweld.C0 = pweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180),0,math.rad(180))
  790. local earmesh = Instance.new("SpecialMesh",p)
  791. earmesh.MeshType = "FileMesh"
  792. earmesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
  793. earmesh.Scale = Vector3.new(1.1,1.5,3)
  794. local heart1 = CreatePart(0.7, hed, "SmoothPlastic", 0, 0, "Really red", "Heart1", VT(1,1,1), false)
  795. local msh1 = CreateMesh("SpecialMesh", heart1, "FileMesh", "431221914", "", VT(0.15, 0.15, 0.15), VT(0,0,0))
  796. CreateWeldOrSnapOrMotor("Weld", hed, heart1, hed,CF(0, 1, 1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  797.  
  798.  
  799.  
  800. --// Chat \\--
  801.  
  802. local talksound = Instance.new("Sound",char.Torso)
  803. talksound.SoundId = "rbxassetid://455601633"talksound.Volume = 1
  804. function swait(num)
  805. if num==0 or num==nil then
  806. game:service'RunService'.Stepped:wait(0)
  807. else
  808. for i=0,num do
  809. game:service'RunService'.Stepped:wait(0)
  810. end
  811. end
  812. end
  813.  
  814. function chatfunc(text)
  815. local chat = coroutine.wrap(function()
  816. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  817. char:FindFirstChild("TalkingBillBoard"):Destroy()
  818. end
  819. local naeeym2 = Instance.new("BillboardGui",char)
  820. naeeym2.Size = UDim2.new(0,100,0,40)
  821. naeeym2.StudsOffset = Vector3.new(0,3,0)
  822. naeeym2.Adornee = char.Head
  823. naeeym2.Name = "TalkingBillBoard"
  824. local tecks2 = Instance.new("TextLabel",naeeym2)
  825. tecks2.BackgroundTransparency = 1
  826. tecks2.BorderSizePixel = 0
  827. tecks2.Text = ""
  828. tecks2.Font = "Fantasy"
  829. tecks2.TextSize = 30
  830. tecks2.TextStrokeTransparency = 0
  831. tecks2.TextColor3 = Color3.new(200,0,0)
  832. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  833. tecks2.Size = UDim2.new(1,0,0.5,0)
  834. local tecks3 = Instance.new("TextLabel",naeeym2)
  835. tecks3.BackgroundTransparency = 1
  836. tecks3.BorderSizePixel = 0
  837. tecks3.Text = ""
  838. tecks3.Font = "Fantasy"
  839. tecks3.TextSize = 30
  840. tecks3.TextStrokeTransparency = 0
  841. tecks3.TextColor3 = Color3.new(200,0,0)
  842. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  843. tecks3.Size = UDim2.new(1,0,0.5,0)
  844. for i = 1,string.len(text),1 do
  845. tecks2.Text = string.sub(text,1,i)
  846. tecks3.Text = string.sub(text,1,i)
  847. talksound:Play()
  848. wait(0.01)
  849. end
  850. wait(2)
  851. for i = 1, 50 do
  852. swait()
  853. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  854. tecks2.Rotation = tecks2.Rotation - .8
  855. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  856. tecks2.TextTransparency = tecks2.TextTransparency + .04
  857. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  858. tecks3.Rotation = tecks2.Rotation + .8
  859. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  860. tecks3.TextTransparency = tecks2.TextTransparency + .04
  861. end
  862. naeeym2:Destroy()
  863. end)
  864. chat()
  865. end
  866. function onChatted(msg)
  867. chatfunc(msg)
  868. end
  869. wait(0.5)
  870. chatfunc("This souls I´ve extracted. . .")
  871. wait(2)
  872. chatfunc(". . .it´s from Frisk. . .")
  873. wait(2)
  874. chatfunc(". .But even with many of them. .")
  875. wait(2)
  876. chatfunc(". .I still feel. . empty.")
  877. wait(3)
  878. chatfunc("So why don´t you. .")
  879. wait(2)
  880. chatfunc(". .Lend your. . . ?")
  881. wait(4)
  882. chatfunc("I promise. . .")
  883. wait(2)
  884. chatfunc(". .the process. . .")
  885. wait(4)
  886. chatfunc("WOULDN´T HURT.")
  887. LeyeColor = BrickColor.new("Really red")
  888. local eyemodel = Instance.new("Model",char)
  889. eyemodel.Name = "Eyes"
  890. local reye = Instance.new("Part",eyemodel)
  891. reye.Name = "BurningEff"
  892. reye.Color = Color3.new(1,1,1)
  893. reye.Material = "Neon"
  894. reye.Transparency = 1
  895. local reyemesh = Instance.new("SpecialMesh",reye)
  896. reyemesh.MeshType = "Sphere"
  897. reye.Size = Vector3.new(0.14, 0.39, 0.29)
  898. local reyeweld = Instance.new("Weld",reye)
  899. reyeweld.Part0 = reye
  900. reyeweld.Part1 = char.Head
  901. reyeweld.C0 = CFrame.new(-0.551300049, -0.19681406, -0.198293686, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  902. local leye = Instance.new("Part",eyemodel)
  903. leye.Name = "LeftEye"
  904. leye.BrickColor = LeyeColor
  905. leye.Material = "Neon"
  906. leye.Size = Vector3.new(0.2,0.2,0.2)
  907. local leyemesh = Instance.new("SpecialMesh",leye)
  908. leyemesh.MeshType = "Sphere"
  909. leyemesh.Scale = Vector3.new(0.7,1.1,0.7)
  910. local leyeweld = Instance.new("Weld",leye)
  911. leyeweld.Part0 = leye
  912. leyeweld.Part1 = char.Head
  913. leyeweld.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  914. local leyeclone = leye:Clone()
  915. leyeclone.Transparency = 0
  916. leyeclone.Name = "RightEye"
  917. leyeclone.Parent = eyemodel
  918. for i,v in pairs(leyeclone:GetChildren()) do
  919. if v.ClassName == "Weld" then
  920. v:Destroy()
  921. end
  922. end
  923. local leyeweld2 = Instance.new("Weld",leyeclone)
  924. leyeweld2.Part0 = leyeclone
  925. leyeweld2.Part1 = char.Head
  926. leyeweld2.C0 = CFrame.new(0.0864697844, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  927.  
  928. local p = game.Players.LocalPlayer --Get the localplayer
  929. local char = p.Character
  930. local tor = char.Torso
  931. local cam = workspace.CurrentCamera
  932. local terst = true
  933. local used = false
  934. p.Chatted:connect(function(msg) --When a player chats..
  935. if msg == "ssj" then
  936. game:GetService("Chat"):Chat(char.Head, string.upper("grr..."), 2)
  937. used = true
  938. local part = Instance.new("Part", workspace)
  939. part.CanCollide = false
  940. part.Anchored = true
  941. part.Position = p.Character.Torso.Position
  942. part.BrickColor = BrickColor.new("Really red")
  943. part.Shape = "Ball"
  944. part.formFactor = 'Symmetric'
  945. part.Size = Vector3.new(10, 10, 10)
  946. spawn(function()
  947. wait(1)
  948. game:GetService("Chat"):Chat(char.Head, string.upper("im going to destroy you!"), 2)
  949. end)
  950. for i= 1, 50 do
  951. part.Size = part.Size + Vector3.new(.2,.2,.2)
  952. part.Transparency = part.Transparency + .01
  953. wait(.01)
  954. end
  955. part:Destroy()
  956. terst = false
  957. end
  958. if msg == "off" and used == true then
  959. game:GetService("Chat"):Chat(char.Head, string.upper("Hmph!"), 2)
  960. local part = Instance.new("Part", workspace)
  961. part.CanCollide = false
  962. part.Anchored = true
  963. part.Transparency = 1
  964. part.Position = p.Character.Torso.Position
  965. part.BrickColor = BrickColor.new("Really black")
  966. part.Shape = "Ball"
  967. part.formFactor = 'Symmetric'
  968. part.Size = Vector3.new(20, 20, 20)
  969. for i= 1, 100 do
  970. part.Size = part.Size - Vector3.new(.2,.2,.2)
  971. part.Transparency = part.Transparency - .01
  972. wait(.01)
  973. end
  974. used = false
  975. end
  976. end)
  977. plr.Chatted:connect(onChatted)
  978. hed.face.Texture = "http://www.roblox.com/asset/?id=404306534"
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986. --// Head func \\--
  987.  
  988. New = function(Object, Parent, Name, Data)
  989. local Object = Instance.new(Object)
  990. for Index, Value in pairs(Data or {}) do
  991. Object[Index] = Value
  992. end
  993. Object.Parent = Parent
  994. Object.Name = Name
  995. return Object
  996. end
  997.  
  998.  
  999. FakeHead = New("Model",chara,"FakeHead",{})
  1000. MainPart = New("Part",FakeHead,"MainPart",{BrickColor = BrickColor.new("Institutional white"),Transparency = 1,Size = Vector3.new(2, 1, 1),CFrame = CFrame.new(18, 4.50000381, -6.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  1001. Mesh = New("SpecialMesh",MainPart,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  1002. Decal = New("Decal",MainPart,"Decal",{Texture = "http://www.roblox.com/asset/?id=0",})
  1003. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara.Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 3.81469727e-006, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  1004. OutfitPart = New("Part",FakeHead,"OutfitPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.399999976, 1),CFrame = CFrame.new(18, 4.80000114, -6.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1005. Mesh = New("CylinderMesh",OutfitPart,"Mesh",{Scale = Vector3.new(1.25999999, 1, 1.25999999),})
  1006. Weld = New("ManualWeld",OutfitPart,"Weld",{Part0 = OutfitPart,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.29999733, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  1007. OutfitPart = New("Part",FakeHead,"OutfitPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 0.5,Transparency = 0.5,Size = Vector3.new(2, 0.399999976, 1),CFrame = CFrame.new(18, 4.79999971, -6.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1008. Mesh = New("CylinderMesh",OutfitPart,"Mesh",{Scale = Vector3.new(1.25, 1.5, 1.25),})
  1009. Weld = New("ManualWeld",OutfitPart,"Weld",{Part0 = OutfitPart,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.299995899, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  1010. OutfitPart = New("Part",FakeHead,"OutfitPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 0.25,Transparency = 0.25,Size = Vector3.new(2, 0.399999976, 1),CFrame = CFrame.new(18, 4.79999924, -6.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1011. Mesh = New("CylinderMesh",OutfitPart,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  1012. Weld = New("ManualWeld",OutfitPart,"Weld",{Part0 = OutfitPart,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.299995422, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  1013.  
  1014.  
  1015.  
  1016.  
  1017. --// Another attacks \\--
  1018.  
  1019. local root = char.HumanoidRootPart
  1020. function teleport(key)
  1021. key = key:lower()
  1022. if key == "f" and not teleportlimit then
  1023. slashsoundglobal:Play()
  1024. teleportlimit = true
  1025. hed.face.Texture = "http://www.roblox.com/asset/?id=435233416"
  1026. root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
  1027. wait(5)
  1028. hed.face.Texture = "http://www.roblox.com/asset/?id=404306534"
  1029. wait(0)
  1030. teleportlimit = false
  1031. end
  1032. end
  1033. mouse.KeyDown:connect(teleport)
  1034.  
  1035. local root = char.HumanoidRootPart
  1036. function laugh(key)
  1037. key = key:lower()
  1038. if key == "t" then
  1039. slashsound3:Play()
  1040. end
  1041. end
  1042. mouse.KeyDown:connect(laugh)
  1043.  
  1044.  
  1045.  
  1046. function musicoff(key)
  1047. key = key:lower()
  1048. if key == "l" then
  1049. slashsound1:Stop()
  1050. end
  1051. end
  1052. mouse.KeyDown:connect(musicoff)
  1053.  
  1054. function musicon(key)
  1055. key = key:lower()
  1056. if key == "k" then
  1057. slashsound1:Play()
  1058. end
  1059. end
  1060. mouse.KeyDown:connect(musicon)
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067. --// Smoke and Body functions \\--
  1068.  
  1069. music(0)
  1070. equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin"))
  1071.  
  1072. local size = 1
  1073.  
  1074. newWeld(torso, larm, -1.5*size, 0.5*size, 0)
  1075. larm.Weld.C1 = CFrame.new(0, 0.5*size, 0)
  1076. newWeld(torso, rarm, 1.5*size, 0.5*size, 0)
  1077. rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0)
  1078. newWeld(torso, hed, 0, 1.5*size, 0)
  1079. newWeld(torso, lleg, -0.5*size, -1, 0)
  1080. lleg.Weld.C1 = CFrame.new(0, 1*size, 0)
  1081. newWeld(torso, rleg, 0.5*size, -1*size, 0)
  1082. rleg.Weld.C1 = CFrame.new(0, 1*size, 0)
  1083. newWeld(root, torso, 0, -1*size, 0)
  1084. torso.Weld.C1 = CFrame.new(0, -1*size, 0)
  1085.  
  1086. emitters={}
  1087. for i,v in pairs(char:GetChildren()) do
  1088. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  1089. local emitter = Instance.new("ParticleEmitter",v)
  1090. emitter.LightEmission = 1
  1091. emitter.Transparency = NumberSequence.new(0.95,1)
  1092. emitter.Size = NumberSequence.new(2,5)
  1093. emitter.SpreadAngle = Vector2.new(360,360)
  1094. emitter.Speed = NumberRange.new(1)
  1095. emitter.Lifetime = NumberRange.new(0.75)
  1096. emitter.Texture = "rbxassetid://133619974"
  1097. emitter.Rate = 20
  1098. emitter.Color = ColorSequence.new(Color3.new(1,0,0))
  1099. emitter.LockedToPart = true
  1100. table.insert(emitters,emitter)
  1101. end
  1102. end
  1103.  
  1104.  
  1105. --// Knife \\--
  1106.  
  1107. HitBox = Instance.new("Part",DebrisModel)
  1108. HitBox.Size = Vector3.new(0.5,0.5,2.45)
  1109. HitBox.CanCollide = false
  1110. HitBox:BreakJoints()
  1111. HitBox.Transparency = 1
  1112. newWeld(rarm,HitBox,-0.1,-0.95,-1.2)
  1113. atch0 = Instance.new("Attachment",HitBox)
  1114. atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2)
  1115. atch1 = Instance.new("Attachment",HitBox)
  1116. atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2)
  1117. trail = Instance.new("Trail",HitBox)
  1118. trail.Attachment0 = atch0
  1119. trail.Attachment1 = atch1
  1120. trail.Lifetime = 0.25
  1121. trail.Enabled = true
  1122. trail.LightEmission = 1
  1123. trail.LightInfluence = 0
  1124. trail.Color = ColorSequence.new(Color3.new(1,0,0))
  1125. trail.Transparency = NumberSequence.new(0,1)
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132. function ded(model)
  1133. kills = kills + 0
  1134. model.Archivable = true
  1135. model.Head:ClearAllChildren()
  1136. local clone = model:Clone()
  1137. clone.Parent = workspace
  1138. clone.Name = "DED"
  1139. model:Destroy()
  1140. clone:FindFirstChildOfClass("Humanoid"):Destroy()
  1141. local emitters={}
  1142. for i,v in pairs(clone:GetChildren()) do
  1143. if v:IsA("Accoutrement") then
  1144. v:Destroy()
  1145. end
  1146. if v:IsA("Part") then
  1147. v.Anchored = true
  1148. v.CanCollide = false
  1149. v.Transparency = 0.7
  1150. v.BrickColor = BrickColor.new'Institutional white'
  1151. local emitter = Instance.new("ParticleEmitter",v)
  1152. emitter.LightEmission = 1
  1153. emitter.Transparency = NumberSequence.new(0,1)
  1154. emitter.Size = NumberSequence.new(0,0.5)
  1155. emitter.SpreadAngle = Vector2.new(360,360)
  1156. emitter.Speed = NumberRange.new(0.5)
  1157. emitter.Lifetime = NumberRange.new(0.75)
  1158. emitter.Texture = "rbxassetid://744949545"
  1159. emitter.Rate = 300
  1160. emitter.Color = ColorSequence.new(Color3.new(1,1,1))
  1161. emitter.LockedToPart = false
  1162. table.insert(emitters,emitter)
  1163. end
  1164. end
  1165. delay(1, function()
  1166. sound(427025525,clone.Torso.Position,10,1)
  1167. for i,v in pairs(emitters) do
  1168. v.Speed = NumberRange.new(4)
  1169. v.Acceleration = Vector3.new(0,10,0)
  1170. delay(0.5, function()
  1171. v.Enabled = false
  1172. debris:AddItem(clone,0.75)
  1173. end)
  1174. end
  1175. end)
  1176. end
  1177.  
  1178. local alreadytouched = {}
  1179. HitBox.Touched:connect(function(ht)
  1180. coroutine.resume(coroutine.create(function()
  1181. local hit = ht.Parent
  1182. if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  1183. local hurt = true
  1184. for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end
  1185. if hurt == true then
  1186. table.insert(alreadytouched,hit)
  1187. sound(388826051,ht.Position,10,1)
  1188. ded(hit)
  1189. end
  1190. end
  1191. end))
  1192. end)
  1193.  
  1194.  
  1195.  
  1196. handle = Instance.new("Part", char)
  1197. handle.TopSurface = "Smooth"
  1198. handle.BottomSurface = "Smooth"
  1199. handle.Material = "Neon"
  1200.  
  1201. handle.Size = Vector3.new(0.2, 0.5, 0.5)
  1202. handle.CanCollide = false
  1203.  
  1204. handle.FormFactor = "Custom"
  1205. local Weldb = Instance.new("Weld", char)
  1206. Weldb.Part0 = char["Right Arm"]
  1207. Weldb.Part1 = handle
  1208. Weldb.C1 = CFrame.new(0.1, -1, 1) * CFrame.fromEulerAnglesXYZ(-4.7, 0, 0)
  1209. local KnifeMesh = Instance.new("SpecialMesh", handle)
  1210. KnifeMesh.MeshType = "FileMesh"
  1211. KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
  1212. KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=362719969"
  1213.  
  1214. local FireEmitter = NewInstance("ParticleEmitter",HitBox,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.3,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://744949545",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
  1215.  
  1216.  
  1217. function createknife()
  1218. Model0 = Instance.new("Model")
  1219. Part1 = Instance.new("Part")
  1220. BlockMesh2 = Instance.new("BlockMesh")
  1221. Part3 = Instance.new("Part")
  1222. BlockMesh4 = Instance.new("BlockMesh")
  1223. Part5 = Instance.new("Part")
  1224. Part6 = Instance.new("Part")
  1225. BlockMesh7 = Instance.new("BlockMesh")
  1226. Part8 = Instance.new("Part")
  1227. Part9 = Instance.new("Part")
  1228. Part10 = Instance.new("Part")
  1229. SpecialMesh11 = Instance.new("SpecialMesh")
  1230. Part12 = Instance.new("Part")
  1231. Part13 = Instance.new("Part")
  1232. Model0.Parent = char
  1233. Part1.Parent = Model0
  1234. Part1.Anchored = true
  1235. Part1.Transparency =1
  1236. Part1.CanCollide = false
  1237. Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  1238. Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1239. Part1.BottomSurface = Enum.SurfaceType.Smooth
  1240. Part1.TopSurface = Enum.SurfaceType.Smooth
  1241. Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997)
  1242. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1243. BlockMesh2.Parent = Part1
  1244. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  1245. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  1246. Part3.Parent = Model0
  1247. Part3.Anchored = true
  1248. Part3.Transparency =1
  1249. Part3.CanCollide = false
  1250. Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007)
  1251. Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1252. Part3.BottomSurface = Enum.SurfaceType.Smooth
  1253. Part3.TopSurface = Enum.SurfaceType.Smooth
  1254. Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989)
  1255. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1256. BlockMesh4.Parent = Part3
  1257. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  1258. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  1259. Part5.Parent = Model0
  1260. Part5.Anchored = true
  1261. Part5.Transparency =1
  1262. Part5.CanCollide = false
  1263. Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005)
  1264. Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1265. Part5.BottomSurface = Enum.SurfaceType.Smooth
  1266. Part5.TopSurface = Enum.SurfaceType.Smooth
  1267. Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003)
  1268. Part5.Color = Color3.new(1, 0, 0)
  1269. Part6.Parent = Model0
  1270. Part6.Anchored = true
  1271. Part6.Transparency =1
  1272. Part6.CanCollide = false
  1273. Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  1274. Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1275. Part6.BottomSurface = Enum.SurfaceType.Smooth
  1276. Part6.TopSurface = Enum.SurfaceType.Smooth
  1277. Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997)
  1278. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1279. BlockMesh7.Parent = Part6
  1280. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  1281. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  1282. Part8.Name = "asd"
  1283. Part8.Parent = Model0
  1284. Part8.Anchored = true
  1285. Part8.Transparency =1
  1286. Part8.CanCollide = false
  1287. Part8.Size = Vector3.new(0.200000003, 0.100000009, 1.30000007)
  1288. Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1289. Part8.BottomSurface = Enum.SurfaceType.Smooth
  1290. Part8.TopSurface = Enum.SurfaceType.Smooth
  1291. Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003)
  1292. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1293. Part9.Parent = Model0
  1294. Part9.Anchored = true
  1295. Part9.Transparency =1
  1296. Part9.CanCollide = false
  1297. Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039)
  1298. Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1299. Part9.BottomSurface = Enum.SurfaceType.Smooth
  1300. Part9.TopSurface = Enum.SurfaceType.Smooth
  1301. Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989)
  1302. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1303. Part10.Parent = Model0
  1304. Part10.Rotation = Vector3.new(0, 0, 180)
  1305. Part10.Anchored = true
  1306. Part10.Transparency =1
  1307. Part10.CanCollide = false
  1308. Part10.Size = Vector3.new(4.7, 0, 0)
  1309. 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)
  1310. Part10.BottomSurface = Enum.SurfaceType.Smooth
  1311. Part10.TopSurface = Enum.SurfaceType.Smooth
  1312. Part10.Position = Vector3.new(0.2, -1, 1)
  1313. Part10.Color = Color3.new(1, 0, 0)
  1314. SpecialMesh11.Parent = Part10
  1315. SpecialMesh11.MeshType = Enum.MeshType.Wedge
  1316. Part12.Parent = Model0
  1317. Part12.Anchored = true
  1318. Part12.Transparency =1
  1319. Part12.CanCollide = false
  1320. Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039)
  1321. Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  1322. Part12.BottomSurface = Enum.SurfaceType.Smooth
  1323. Part12.TopSurface = Enum.SurfaceType.Smooth
  1324. Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997)
  1325. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1326. weld(Model0)
  1327. for i,v in pairs(Model0:GetChildren()) do
  1328. if v:IsA("Part") and v.Color == Color3.new(1,0,0) then
  1329. v.Material = Enum.Material.Neon
  1330. end
  1331. end
  1332. return Model0
  1333. end
  1334.  
  1335. knife = createknife()
  1336. newWeld(rarm,knife.asd,0,-1,0)
  1337.  
  1338. --// Pistol \\--
  1339.  
  1340. function createpistol()
  1341. Model0 = Instance.new("Model")
  1342. Part1 = Instance.new("Part")
  1343. BlockMesh2 = Instance.new("BlockMesh")
  1344. Part3 = Instance.new("Part")
  1345. Part4 = Instance.new("Part")
  1346. Part5 = Instance.new("Part")
  1347. Part6 = Instance.new("Part")
  1348. Part7 = Instance.new("Part")
  1349. Part8 = Instance.new("Part")
  1350. Part9 = Instance.new("Part")
  1351. Part10 = Instance.new("Part")
  1352. Part11 = Instance.new("Part")
  1353. Part12 = Instance.new("Part")
  1354. Part13 = Instance.new("Part")
  1355. Part14 = Instance.new("Part")
  1356. Part15 = Instance.new("Part")
  1357. Part16 = Instance.new("Part")
  1358. Part17 = Instance.new("Part")
  1359. Part18 = Instance.new("Part")
  1360. Part19 = Instance.new("Part")
  1361. Model0.Name = "Pistol"
  1362. Model0.Parent = char
  1363. Part1.Name = "ShootPos"
  1364. Part1.Parent = Model0
  1365. Part1.BrickColor = BrickColor.new("Really black")
  1366. Part1.Anchored = true
  1367. Part1.CanCollide = false
  1368. Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  1369. Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1370. Part1.BottomSurface = Enum.SurfaceType.Smooth
  1371. Part1.TopSurface = Enum.SurfaceType.Smooth
  1372. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1373. Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434)
  1374. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1375. BlockMesh2.Parent = Part1
  1376. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  1377. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  1378. Part3.Parent = Model0
  1379. Part3.BrickColor = BrickColor.new("Pearl")
  1380. Part3.Anchored = true
  1381. Part3.CanCollide = false
  1382. Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  1383. Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1384. Part3.BottomSurface = Enum.SurfaceType.Smooth
  1385. Part3.TopSurface = Enum.SurfaceType.Smooth
  1386. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1387. Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429)
  1388. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1389. Part4.Parent = Model0
  1390. Part4.BrickColor = BrickColor.new("Pearl")
  1391. Part4.Anchored = true
  1392. Part4.CanCollide = false
  1393. Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007)
  1394. Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1395. Part4.BottomSurface = Enum.SurfaceType.Smooth
  1396. Part4.TopSurface = Enum.SurfaceType.Smooth
  1397. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1398. Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429)
  1399. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1400. Part5.Parent = Model0
  1401. Part5.BrickColor = BrickColor.new("Pearl")
  1402. Part5.Rotation = Vector3.new(15, 0, 0)
  1403. Part5.Anchored = true
  1404. Part5.CanCollide = false
  1405. Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006)
  1406. Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753)
  1407. Part5.BottomSurface = Enum.SurfaceType.Smooth
  1408. Part5.TopSurface = Enum.SurfaceType.Smooth
  1409. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1410. Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469)
  1411. Part5.Orientation = Vector3.new(15, 0, 0)
  1412. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1413. Part6.Parent = Model0
  1414. Part6.BrickColor = BrickColor.new("Pearl")
  1415. Part6.Anchored = true
  1416. Part6.CanCollide = false
  1417. Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998)
  1418. Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1419. Part6.BottomSurface = Enum.SurfaceType.Smooth
  1420. Part6.TopSurface = Enum.SurfaceType.Smooth
  1421. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1422. Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433)
  1423. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1424. Part7.Parent = Model0
  1425. Part7.BrickColor = BrickColor.new("Pearl")
  1426. Part7.Anchored = true
  1427. Part7.CanCollide = false
  1428. Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  1429. Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1430. Part7.BottomSurface = Enum.SurfaceType.Smooth
  1431. Part7.TopSurface = Enum.SurfaceType.Smooth
  1432. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1433. Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429)
  1434. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1435. Part8.Parent = Model0
  1436. Part8.BrickColor = BrickColor.new("Black")
  1437. Part8.Rotation = Vector3.new(-15, 0, 0)
  1438. Part8.Anchored = true
  1439. Part8.CanCollide = false
  1440. Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993)
  1441. Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  1442. Part8.BottomSurface = Enum.SurfaceType.Smooth
  1443. Part8.TopSurface = Enum.SurfaceType.Smooth
  1444. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1445. Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481)
  1446. Part8.Orientation = Vector3.new(-15, 0, 0)
  1447. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1448. Part9.Parent = Model0
  1449. Part9.BrickColor = BrickColor.new("Pearl")
  1450. Part9.Anchored = true
  1451. Part9.CanCollide = false
  1452. Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  1453. Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1454. Part9.BottomSurface = Enum.SurfaceType.Smooth
  1455. Part9.TopSurface = Enum.SurfaceType.Smooth
  1456. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1457. Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429)
  1458. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1459. Part10.Parent = Model0
  1460. Part10.BrickColor = BrickColor.new("Pearl")
  1461. Part10.Anchored = true
  1462. Part10.CanCollide = false
  1463. Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  1464. Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1465. Part10.BottomSurface = Enum.SurfaceType.Smooth
  1466. Part10.TopSurface = Enum.SurfaceType.Smooth
  1467. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1468. Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429)
  1469. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1470. Part11.Parent = Model0
  1471. Part11.BrickColor = BrickColor.new("Pearl")
  1472. Part11.Anchored = true
  1473. Part11.CanCollide = false
  1474. Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024)
  1475. Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1476. Part11.BottomSurface = Enum.SurfaceType.Smooth
  1477. Part11.TopSurface = Enum.SurfaceType.Smooth
  1478. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1479. Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433)
  1480. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1481. Part12.Parent = Model0
  1482. Part12.BrickColor = BrickColor.new("Pearl")
  1483. Part12.Rotation = Vector3.new(-30, 0, 0)
  1484. Part12.Anchored = true
  1485. Part12.CanCollide = false
  1486. Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007)
  1487. Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448)
  1488. Part12.BottomSurface = Enum.SurfaceType.Smooth
  1489. Part12.TopSurface = Enum.SurfaceType.Smooth
  1490. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1491. Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431)
  1492. Part12.Orientation = Vector3.new(-30, 0, 0)
  1493. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1494. Part13.Parent = Model0
  1495. Part13.BrickColor = BrickColor.new("Pearl")
  1496. Part13.Anchored = true
  1497. Part13.CanCollide = false
  1498. Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007)
  1499. Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1500. Part13.BottomSurface = Enum.SurfaceType.Smooth
  1501. Part13.TopSurface = Enum.SurfaceType.Smooth
  1502. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1503. Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429)
  1504. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1505. Part14.Parent = Model0
  1506. Part14.BrickColor = BrickColor.new("Pearl")
  1507. Part14.Rotation = Vector3.new(-30, 0, 0)
  1508. Part14.Anchored = true
  1509. Part14.CanCollide = false
  1510. Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25)
  1511. Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329)
  1512. Part14.BottomSurface = Enum.SurfaceType.Smooth
  1513. Part14.TopSurface = Enum.SurfaceType.Smooth
  1514. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1515. Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447)
  1516. Part14.Orientation = Vector3.new(-30, 0, 0)
  1517. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1518. Part15.Parent = Model0
  1519. Part15.BrickColor = BrickColor.new("White")
  1520. Part15.Rotation = Vector3.new(-105, 0, 0)
  1521. Part15.Anchored = true
  1522. Part15.CanCollide = false
  1523. Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007)
  1524. Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371)
  1525. Part15.BottomSurface = Enum.SurfaceType.Smooth
  1526. Part15.TopSurface = Enum.SurfaceType.Smooth
  1527. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1528. Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915)
  1529. Part15.Orientation = Vector3.new(-75, 180, 180)
  1530. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1531. Part16.Name = "asd"
  1532. Part16.Parent = Model0
  1533. Part16.BrickColor = BrickColor.new("Pearl")
  1534. Part16.Rotation = Vector3.new(-15, 0, 0)
  1535. Part16.Anchored = true
  1536. Part16.CanCollide = false
  1537. Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006)
  1538. Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  1539. Part16.BottomSurface = Enum.SurfaceType.Smooth
  1540. Part16.TopSurface = Enum.SurfaceType.Smooth
  1541. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1542. Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692)
  1543. Part16.Orientation = Vector3.new(-15, 0, 0)
  1544. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1545. Part17.Parent = Model0
  1546. Part17.BrickColor = BrickColor.new("Pearl")
  1547. Part17.Anchored = true
  1548. Part17.CanCollide = false
  1549. Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  1550. Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1551. Part17.BottomSurface = Enum.SurfaceType.Smooth
  1552. Part17.TopSurface = Enum.SurfaceType.Smooth
  1553. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1554. Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437)
  1555. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1556. Part18.Parent = Model0
  1557. Part18.BrickColor = BrickColor.new("Pearl")
  1558. Part18.Anchored = true
  1559. Part18.CanCollide = false
  1560. Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  1561. Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1562. Part18.BottomSurface = Enum.SurfaceType.Smooth
  1563. Part18.TopSurface = Enum.SurfaceType.Smooth
  1564. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1565. Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429)
  1566. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1567. Part19.Parent = Model0
  1568. Part19.BrickColor = BrickColor.new("Pearl")
  1569. Part19.Anchored = true
  1570. Part19.CanCollide = false
  1571. Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007)
  1572. Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  1573. Part19.BottomSurface = Enum.SurfaceType.Smooth
  1574. Part19.TopSurface = Enum.SurfaceType.Smooth
  1575. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1576. Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433)
  1577. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  1578. for i,v in pairs(Model0:GetChildren()) do
  1579. if v:IsA("Part") then
  1580. v.Color = Color3.new(1,1,0)
  1581. v.Material = Enum.Material.Neon
  1582. v.Transparency = 0
  1583. v.CanCollide = false
  1584. end
  1585. end
  1586. weld(Model0)
  1587. return Model0
  1588. end
  1589.  
  1590. mode = "determination"
  1591. function justice()
  1592. mode = "justice"
  1593. for i=1,5 do rs:wait()
  1594. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  1595. 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)
  1596. end
  1597. knife:Destroy()
  1598. pistol = createpistol()
  1599. newWeld(rarm,pistol.asd,0,-1,0)
  1600. pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0)
  1601. end
  1602.  
  1603. function determination()
  1604. mode = "determination"
  1605. for i=1,5 do rs:wait()
  1606. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  1607. 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)
  1608. end
  1609. pistol:Destroy()
  1610. knife = createknife()
  1611. newWeld(rarm,knife.asd,0,-1,0)
  1612. end
  1613.  
  1614. debounce = false
  1615. mouse.KeyDown:connect(function(key)
  1616. if debounce == false then
  1617. debounce = true
  1618. if key == "e" then
  1619. sound(462606062,root.Position,10,1)
  1620. if mode == "determination" then
  1621. justice()
  1622. elseif mode == "justice" then
  1623. determination()
  1624. end
  1625. end
  1626. delay(0,function() debounce = false end)
  1627. end
  1628. end)
  1629.  
  1630.  
  1631. --// Slash \\--
  1632.  
  1633. function slash()
  1634. local spd = 0.2
  1635. for i=1,15 do rs:wait()
  1636. 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)
  1637. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd)
  1638. 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)
  1639. 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)
  1640. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd)
  1641. 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)
  1642. 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)
  1643. end
  1644. sound(357417055,root.Position,10,1)
  1645. attacking = true
  1646. local spd = 0.4
  1647. for i=1,5 do rs:wait()
  1648. 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)
  1649. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd)
  1650. 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)
  1651. 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)
  1652. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd)
  1653. 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)
  1654. 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)
  1655. end
  1656. end
  1657.  
  1658. mouse.Button1Down:connect(function()
  1659. if debounce == false and mode == "determination" then
  1660. alreadytouched = {}
  1661. noidle = true
  1662. debounce = true
  1663. slash()
  1664. attacking = false
  1665. noidle = false
  1666. delay(0,function() debounce = false end)
  1667. end
  1668. end)
  1669.  
  1670. --// Shooting gun \\--
  1671.  
  1672. local jumped = false
  1673. function boom()
  1674. freeze = true
  1675. sound(446961725,root.Position,10,1)
  1676. local bg = Instance.new("BodyGyro",root)
  1677. bg.Name = "lolnochara"
  1678. bg.P = 10000
  1679. bg.D = 100
  1680. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1681. if jumped == false then
  1682. root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1683. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1684. else
  1685. root.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1686. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1687. end
  1688.  
  1689. local spd = 0.2
  1690. for i=1,20 do rs:wait()
  1691. if jumped == false then
  1692. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1693. else
  1694. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1695. end
  1696. 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)
  1697. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1698. 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)
  1699. 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)
  1700. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1701. 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)
  1702. 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)
  1703. end
  1704.  
  1705. bg:Destroy()
  1706.  
  1707. sound(470245800,root.Position,10,1)
  1708.  
  1709. local Part0 = Instance.new("Part",DebrisModel)
  1710. Part0.Name = "Bullet"
  1711. Part0.Material = Enum.Material.Neon
  1712. Part0.Color = Color3.new(1,1,0)
  1713. Part0.Anchored = true
  1714. local mesh = Instance.new("SpecialMesh",Part0)
  1715. mesh.MeshType = Enum.MeshType.Brick
  1716. Part0.CanCollide = false
  1717. local Position = rarm.Position
  1718. local Target = mouse.Hit.p
  1719. local direction = Target - Position
  1720. local direction = computeDirection(direction)
  1721. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1722. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1723. Part0.Size = Vector3.new(5,1,5)
  1724. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1)
  1725. local pos = Position + (direction * (mesh.Scale.Y/2))
  1726. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1727. local loop = nil
  1728. local i = 0
  1729. rs:connect(function()
  1730. local lole = (i/10)
  1731. mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole)
  1732. Part0.Transparency = Part0.Transparency + 0.1
  1733. i = i + 1
  1734. if Part0.Transparency >= 1 then
  1735. Part0:Destroy()
  1736. end
  1737. end)
  1738.  
  1739. if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then
  1740. coroutine.resume(coroutine.create(function()
  1741. sound(388826051,part.Position,10,1)
  1742. ded(part.Parent)
  1743. end))
  1744. end
  1745.  
  1746. local spd = 0.5
  1747. for i=1,10 do rs:wait()
  1748. 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)
  1749. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1750. 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)
  1751. 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)
  1752. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1753. 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)
  1754. 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)
  1755. end
  1756.  
  1757. freeze = false
  1758.  
  1759. end
  1760.  
  1761. mouse.Button1Down:connect(function()
  1762. if debounce == false and mode == "justice" then
  1763. alreadytouched = {}
  1764. noidle = true
  1765. debounce = true
  1766. boom()
  1767. attacking = false
  1768. noidle = false
  1769. delay(0,function() debounce = false end)
  1770. end
  1771. end)
  1772.  
  1773. --// Animation and others . . . \\--
  1774.  
  1775. velocityYFall=0
  1776. velocityYFall2=0
  1777. velocityYFall3=0
  1778. velocityYFall4=0
  1779. neckrotY=0
  1780. neckrotY2=0
  1781. torsorotY=0
  1782. torsorotY2=0
  1783. torsoY=0
  1784. torsoY2=0
  1785. colored = 0
  1786. sine = 0
  1787. change=0.4
  1788. movement=5
  1789. timeranim=0
  1790. running = false
  1791. glitched = false
  1792. backup = hed.Weld.C1
  1793. glitchedC1 = hed.Weld.C1
  1794.  
  1795. mouse.KeyDown:connect(function(key)
  1796. key = string.lower(key)
  1797. if string.byte(key) == 48 then
  1798. running = true
  1799. local keyup = mouse.KeyUp:connect(function(key)
  1800. if string.byte(key) == 48 then
  1801. running = false
  1802. end
  1803. end)
  1804. repeat rs:wait() until running == false
  1805. keyup:disconnect()
  1806. end
  1807. end)
  1808.  
  1809. icolor=1
  1810. imode=false
  1811.  
  1812. didjump = false
  1813. jumppower = 0
  1814. freeze = false
  1815. debounceimpact = false
  1816.  
  1817. function jumpimpact()
  1818. if debounceimpact == false then
  1819. debounceimpact = true
  1820. if jumppower < -150 then jumppower = -150 end
  1821. shake(-jumppower/5)
  1822. for i=1,-jumppower/20 do rs:wait()
  1823. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  1824. 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)
  1825. end
  1826. debounceimpact = false
  1827. end
  1828. end
  1829.  
  1830. local sond = nil
  1831. rs:connect(function()
  1832.  
  1833. if not torso:FindFirstChild("STATICSOUND") then
  1834. sond=Instance.new("Sound",torso)
  1835. sond.Name = "STATICSOUND"
  1836. sond.SoundId = "rbxassetid://223103466"
  1837. sond.Looped = true
  1838. sond:Play()
  1839. end
  1840.  
  1841. if icolor > 1 then
  1842. imode = false
  1843. elseif icolor < 0 then
  1844. imode = true
  1845. end
  1846.  
  1847. if imode == true then
  1848. icolor = icolor + 0.01
  1849. else
  1850. icolor = icolor - 0.01
  1851. end
  1852.  
  1853. for i,v in pairs(emitters) do
  1854. v.Acceleration = root.CFrame.upVector*(666/100)
  1855. end
  1856.  
  1857. if p.Character.Parent == nil then
  1858. local model = Instance.new("Model")
  1859. model.Name = p.Name
  1860. p.Character = model
  1861. for i,v in pairs(char:GetChildren()) do
  1862. v.Parent = p.Character
  1863. end
  1864. end
  1865.  
  1866. char = p.Character
  1867. if p.Character.Parent ~= workspace then
  1868. p.Character.Parent = workspace
  1869. end
  1870. for i,v in pairs(char:GetChildren()) do
  1871. if v:IsA("Accoutrement") then
  1872. if v.Handle:FindFirstChild("Mesh") then
  1873. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  1874. v.Handle.Transparency = 0
  1875. end
  1876. elseif v:IsA("BasePart") then
  1877. v.Anchored = false
  1878. if v:FindFirstChildOfClass("BodyPosition") then
  1879. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  1880. end
  1881. if v:FindFirstChildOfClass("BodyVelocity") then
  1882. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  1883. end
  1884. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  1885. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  1886. end
  1887. if v:FindFirstChild("Mesh") then
  1888. v:FindFirstChild("Mesh").Offset = Vector3.new()
  1889. end
  1890. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
  1891. local force = Instance.new("Part",DebrisModel)
  1892. force.Name = v.Name.."FORCEFIELD"
  1893. force.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  1894. force.CanCollide = false
  1895. force.Transparency = 1
  1896. newWeld(v,force,0,0,0)
  1897. else
  1898. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  1899. newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)
  1900. end
  1901. end
  1902. if v.Name ~= "HumanoidRootPart" then
  1903. v.Transparency = 0
  1904. else
  1905. v.Transparency = 1
  1906. end
  1907. end
  1908. end
  1909.  
  1910. if mode == "determination" then
  1911. trail.Enabled = true
  1912. else
  1913. trail.Enabled = false
  1914. end
  1915.  
  1916. if freeze == false then
  1917. if running == false then
  1918. hum.WalkSpeed = 12*size
  1919. change=0.4
  1920. movement=5
  1921. else
  1922. hum.WalkSpeed = (666/10)*size
  1923. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then
  1924. change=1
  1925. else
  1926. change=0.4
  1927. end
  1928. movement=15
  1929. end
  1930. else
  1931. hum.WalkSpeed = 1
  1932. change=0.4
  1933. movement=5
  1934. end
  1935.  
  1936. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  1937. velocityYFall = root.Velocity.Y/1.5
  1938. else
  1939. if -root.Velocity.Y/1.5 < -5 then
  1940. velocityYFall = 5
  1941. elseif -root.Velocity.Y/1.5 > 150 then
  1942. velocityYFall = -150
  1943. end
  1944. end
  1945.  
  1946. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1947. velocityYFall2 = root.Velocity.Y/180
  1948. else
  1949. if -root.Velocity.Y/180 < 0 then
  1950. velocityYFall2 = 0
  1951. elseif -root.Velocity.Y/180 > 1.2 then
  1952. velocityYFall2 = -1.2
  1953. end
  1954. end
  1955.  
  1956. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1957. velocityYFall3 = root.Velocity.Y/1.5
  1958. else
  1959. if -root.Velocity.Y/1.5 < -5 then
  1960. velocityYFall3 = 5
  1961. elseif -root.Velocity.Y/1.5 > 50 then
  1962. velocityYFall3 = -50
  1963. end
  1964. end
  1965.  
  1966. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1967. velocityYFall4 = root.Velocity.Y/1.5
  1968. else
  1969. if -root.Velocity.Y/180 < -5 then
  1970. velocityYFall4 = 5
  1971. elseif -root.Velocity.Y/180 > 50 then
  1972. velocityYFall4 = -50
  1973. end
  1974. end
  1975.  
  1976. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1977. neckrotY = root.RotVelocity.Y/6
  1978. else
  1979. if root.RotVelocity.Y/6 < -1 then
  1980. neckrotY = -1
  1981. elseif root.RotVelocity.Y/6 > 1 then
  1982. neckrotY = 1
  1983. end
  1984. end
  1985.  
  1986. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1987. neckrotY2 = root.RotVelocity.Y/8
  1988. else
  1989. if root.RotVelocity.Y/8 < -0.6 then
  1990. neckrotY2 = -0.6
  1991. elseif root.RotVelocity.Y/8 > 0.6 then
  1992. neckrotY2 = 0.6
  1993. end
  1994. end
  1995.  
  1996. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1997. torsorotY = root.RotVelocity.Y/6
  1998. else
  1999. if root.RotVelocity.Y/6 < -0.2 then
  2000. torsorotY = -0.2
  2001. elseif root.RotVelocity.Y/6 > 0.2 then
  2002. torsorotY = 0.2
  2003. end
  2004. end
  2005.  
  2006. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  2007. torsorotY2 = root.RotVelocity.Y/8
  2008. else
  2009. if root.RotVelocity.Y/8 < -0.2 then
  2010. torsorotY2 = -0.2
  2011. elseif root.RotVelocity.Y/8 > 0.2 then
  2012. torsorotY2 = 0.2
  2013. end
  2014. end
  2015.  
  2016. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  2017. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  2018.  
  2019. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  2020. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  2021. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  2022. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  2023. local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  2024. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  2025. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  2026. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  2027. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  2028. local part, endPoint = workspace:FindPartOnRay(ray, char)
  2029.  
  2030. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  2031.  
  2032. local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  2033. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  2034.  
  2035. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  2036. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  2037.  
  2038. if hum.Health > 0 and noidle == false then
  2039. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  2040. 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)
  2041. 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)
  2042. 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)
  2043. 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)
  2044. 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)
  2045. 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)
  2046. 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)
  2047. elseif jumped == true then
  2048. didjump = true
  2049. jumppower = root.Velocity.Y
  2050. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  2051. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1)
  2052. 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)
  2053. 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)
  2054. 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)
  2055. 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)
  2056. 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)
  2057. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then
  2058. 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)
  2059. 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)
  2060. 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)
  2061. 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)
  2062. 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)
  2063. 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)
  2064. 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)
  2065. end
  2066. end
  2067. if didjump == true and jumped == false and jumppower < 0 then
  2068. didjump = false
  2069. jumpimpact()
  2070. end
  2071.  
  2072. local chance = math.random(0,10000)/100
  2073. if chance <= 5 + (kills/2) then
  2074. if glitched == false then
  2075. backup = hed.Weld.C1
  2076. end
  2077. if torso:FindFirstChild("MusicRuin") then
  2078. equalizer.HighGain = 0
  2079. equalizer.MidGain = -20
  2080. equalizer.LowGain = -80
  2081. end
  2082. hed.Weld.C1 = glitchedC1
  2083. local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1)
  2084. glitched = true
  2085. sond:Resume()
  2086. else
  2087. if glitched == true then
  2088. glitched = false
  2089. hed.Weld.C1 = backup
  2090. glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20)))
  2091. end
  2092. if torso:FindFirstChild("MusicRuin") then
  2093. equalizer.HighGain = 0
  2094. equalizer.MidGain = 0
  2095. equalizer.LowGain = 0
  2096. end
  2097. sond:Pause()
  2098. end
  2099.  
  2100.  
  2101. timeposition = soundz.TimePosition
  2102. sine = sine + change
  2103. hum.Health = math.huge
  2104. hum.MaxHealth = math.huge
  2105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement