Advertisement
soubrhomi

ASTRONAUT

Sep 28th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.17 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. function sandbox(var,func)
  88. local env = getfenv(func)
  89. local newenv = setmetatable({},{
  90. __index = function(self,k)
  91. if k=="script" then
  92. return var
  93. else
  94. return env[k]
  95. end
  96. end,
  97. })
  98. setfenv(func,newenv)
  99. return func
  100. end
  101. cors = {}
  102. mas = Instance.new("Model",game:GetService("Lighting"))
  103. Sky0 = Instance.new("Sky")
  104. Sky0.Parent = mas
  105. Sky0.CelestialBodiesShown = false
  106. Sky0.SkyboxBk = "rbxassetid://218955819"
  107. Sky0.SkyboxDn = "rbxassetid://218953419"
  108. Sky0.SkyboxFt = "rbxassetid://218954524"
  109. Sky0.SkyboxLf = "rbxassetid://218958493"
  110. Sky0.SkyboxRt = "rbxassetid://218957134"
  111. Sky0.SkyboxUp = "rbxassetid://218950090"
  112. for i,v in pairs(mas:GetChildren()) do
  113. v.Parent = game:GetService("Lighting")
  114. pcall(function() v:MakeJoints() end)
  115. end
  116. mas:Destroy()
  117. for i,v in pairs(cors) do
  118. spawn(function()
  119. pcall(v)
  120. end)
  121. end
  122.  
  123. --lollllll
  124.  
  125. wait(0.2)
  126.  
  127. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  128.  
  129. Player = owner
  130. PlayerGui = Player.PlayerGui
  131. Cam = workspace.CurrentCamera
  132. Backpack = Player.Backpack
  133. Character = Player.Character
  134. Humanoid = Character.Humanoid
  135. RootPart = Character["HumanoidRootPart"]
  136. Torso = Character["Torso"]
  137. Head = Character["Head"]
  138. RightArm = Character["Right Arm"]
  139. LeftArm = Character["Left Arm"]
  140. RightLeg = Character["Right Leg"]
  141. LeftLeg = Character["Left Leg"]
  142. RootJoint = RootPart["RootJoint"]
  143. Neck = Torso["Neck"]
  144. RightShoulder = Torso["Right Shoulder"]
  145. LeftShoulder = Torso["Left Shoulder"]
  146. RightHip = Torso["Right Hip"]
  147. LeftHip = Torso["Left Hip"]
  148. plr = owner
  149. char = plr.Character
  150. for i,v in pairs(char:GetChildren()) do
  151. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  152. v:Destroy()
  153. end
  154. end
  155.  
  156. IT = Instance.new
  157. CF = CFrame.new
  158. VT = Vector3.new
  159. RAD = math.rad
  160. C3 = Color3.new
  161. UD2 = UDim2.new
  162. BRICKC = BrickColor.new
  163. ANGLES = CFrame.Angles
  164. EULER = CFrame.fromEulerAnglesXYZ
  165. COS = math.cos
  166. ACOS = math.acos
  167. SIN = math.sin
  168. ASIN = math.asin
  169. ABS = math.abs
  170. MRANDOM = math.random
  171. FLOOR = math.floor
  172. local LAUGHS = {834001699,834001752,834001828}
  173. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  174. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  175. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  176. local PaintBody = 'Black'
  177. local runService = S.RunService
  178. local sine = 0;
  179. local change = 1;
  180. local GlitchTime = 0;
  181.  
  182. --//=================================\\
  183. --|| USEFUL VALUES
  184. --\\=================================//
  185.  
  186. Animation_Speed = 3
  187. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  188. local Speed = 20
  189. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  190. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  191. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  192. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  193. local DAMAGEMULTIPLIER = 1
  194. local ANIM = "Idle"
  195. local ATTACK = false
  196. local EQUIPPED = false
  197. local HOLD = false
  198. local COMBO = 1
  199. local Rooted = false
  200. local SINE = 0
  201. local KEYHOLD = false
  202. local CHANGE = 2 / Animation_Speed
  203. local WALKINGANIM = false
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. --ROBLOXIDLEANIMATION.Parent = Humanoid
  210. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  211. WEAPONGUI.Name = "PIXELGUI"
  212. local Effects = IT("Folder", Character)
  213. Effects.Name = "Effects"
  214. local ANIMATOR = Humanoid.Animator
  215. local ANIMATE = Character.Animate
  216. local UNANCHOR = true
  217. local SONG = 383837680
  218. local DEAD = false
  219. local WALKINGANIM = false
  220. local WALK = 0
  221. Player_Size = 1 --Size of the player.
  222. PlayerSize = 1 --Size of the player.
  223. Animation_Speed = 3
  224. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  225.  
  226. local Speed = 16
  227. local Effects2 = {}
  228. local KILLINSTINCT = 0
  229. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  230. WEAPONGUI.Name = "Weapon GUI"
  231. local Weapon = IT("Model")
  232. Weapon.Name = "Adds"
  233. local Effects = IT("Folder", Weapon)
  234. Effects.Name = "Effects"
  235.  
  236. local plr = S.Players.LocalPlayer
  237. local char = plr.Character
  238. local hum = char:FindFirstChildOfClass'Humanoid'
  239. local rarm = char["Right Arm"]
  240. local larm= char["Left Arm"]
  241. local rleg= char["Right Leg"]
  242. local lleg = char["Left Leg"]
  243. local root = char:FindFirstChild'HumanoidRootPart'
  244. local torso = char.Torso
  245. local head = char.Head
  246.  
  247. --//=================================\\
  248. --\\=================================//
  249.  
  250.  
  251. --//=================================\\
  252. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  253. --\\=================================//
  254.  
  255. ArtificialHB = Instance.new("BindableEvent", script)
  256. ArtificialHB.Name = "ArtificialHB"
  257.  
  258. script:WaitForChild("ArtificialHB")
  259.  
  260. frame = Frame_Speed
  261. tf = 0
  262. allowframeloss = false
  263. tossremainder = false
  264. lastframe = tick()
  265. script.ArtificialHB:Fire()
  266.  
  267. game:GetService("RunService").Heartbeat:connect(function(s, p)
  268. tf = tf + s
  269. if tf >= frame then
  270. if allowframeloss then
  271. script.ArtificialHB:Fire()
  272. lastframe = tick()
  273. else
  274. for i = 1, math.floor(tf / frame) do
  275. script.ArtificialHB:Fire()
  276. end
  277. lastframe = tick()
  278. end
  279. if tossremainder then
  280. tf = 0
  281. else
  282. tf = tf - frame * math.floor(tf / frame)
  283. end
  284. end
  285. end)
  286.  
  287. --//=================================\\
  288. --\\=================================//
  289.  
  290. --//=================================\\
  291. --|| SOME FUNCTIONS
  292. --\\=================================//
  293.  
  294. local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
  295. FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  296. RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  297. LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  298. RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  299. LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  300.  
  301. local Effects,Sounds = {},{};
  302.  
  303. -- Sounds
  304. Sounds['Astronaut13'] = {Id=247896174,Loop=true,Pitch=1,Volume=10}
  305.  
  306. function ClearChildrenWithClass(where,class,recursive)
  307. local children = (recursive and where:GetDescendants() or where:GetChildren())
  308. for _,v in next, children do
  309. if(v:IsA(class))then
  310. v:destroy()
  311. end
  312. end
  313. end
  314. local NewInstance = function(instance,parent,properties)
  315. local inst = Instance.new(instance,parent)
  316. if(properties)then
  317. for i,v in next, properties do
  318. pcall(function() inst[i] = v end)
  319. end
  320. end
  321. return inst;
  322. end
  323.  
  324.  
  325. ArtificialHB = NewInstance("BindableEvent", script,{
  326. Parent = script,
  327. Name = "Heartbeat",
  328. })
  329.  
  330. script:WaitForChild("Heartbeat")
  331.  
  332. frame = 1 / 60
  333. tf = 0
  334. allowframeloss = false
  335. tossremainder = false
  336. lastframe = tick()
  337. script.Heartbeat:Fire()
  338.  
  339. game:GetService("RunService").Heartbeat:connect(function(s, p)
  340. tf = tf + s
  341. if tf >= frame then
  342. if allowframeloss then
  343. script.Heartbeat:Fire()
  344. lastframe = tick()
  345. else
  346. for i = 1, math.floor(tf / frame) do
  347. script.Heartbeat:Fire()
  348. end
  349. lastframe = tick()
  350. end
  351. if tossremainder then
  352. tf = 0
  353. else
  354. tf = tf - frame * math.floor(tf / frame)
  355. end
  356. end
  357. end)
  358.  
  359. local sndFromData = function(data,parent)
  360. assert(typeof(data) == 'table',"sndFromData's first argument must be a table!")
  361. local snd = NewInstance("Sound",parent or char,{SoundId = "rbxassetid://"..data.Id,Looped=data.Loop or false,Pitch = data.Pitch or 1,Volume = data.Volume or 1})
  362. if(not snd.Looped)then
  363. snd.Ended:connect(function()
  364. snd:Stop()
  365. snd:destroy()
  366. end)
  367. end
  368. return snd;
  369. end
  370.  
  371. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  372. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  373. end
  374.  
  375. function PositiveAngle(NUMBER)
  376. if NUMBER >= 0 then
  377. NUMBER = 0
  378. end
  379. return NUMBER
  380. end
  381.  
  382. function NegativeAngle(NUMBER)
  383. if NUMBER <= 0 then
  384. NUMBER = 0
  385. end
  386. return NUMBER
  387. end
  388.  
  389. function Swait(NUMBER)
  390. if NUMBER == 0 or NUMBER == nil then
  391. ArtificialHB.Event:wait()
  392. else
  393. for i = 1, NUMBER do
  394. ArtificialHB.Event:wait()
  395. end
  396. end
  397. end
  398.  
  399. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  400. local NEWMESH = IT(MESH)
  401. if MESH == "SpecialMesh" then
  402. NEWMESH.MeshType = MESHTYPE
  403. if MESHID ~= "nil" and MESHID ~= "" then
  404. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  405. end
  406. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  407. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  408. end
  409. end
  410. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  411. NEWMESH.Scale = SCALE
  412. NEWMESH.Parent = PARENT
  413. return NEWMESH
  414. end
  415.  
  416. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  417. local NEWPART = IT("Part")
  418. NEWPART.formFactor = FORMFACTOR
  419. NEWPART.Reflectance = REFLECTANCE
  420. NEWPART.Transparency = TRANSPARENCY
  421. NEWPART.CanCollide = false
  422. NEWPART.Locked = true
  423. NEWPART.Anchored = true
  424. if ANCHOR == false then
  425. NEWPART.Anchored = false
  426. end
  427. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  428. NEWPART.Name = NAME
  429. NEWPART.Size = SIZE
  430. NEWPART.Position = Torso.Position
  431. NEWPART.Material = MATERIAL
  432. NEWPART:BreakJoints()
  433. NEWPART.Parent = PARENT
  434. return NEWPART
  435. end
  436.  
  437. local function weldBetween(a, b)
  438. local weldd = Instance.new("ManualWeld")
  439. weldd.Part0 = a
  440. weldd.Part1 = b
  441. weldd.C0 = CFrame.new()
  442. weldd.C1 = b.CFrame:inverse() * a.CFrame
  443. weldd.Parent = a
  444. return weldd
  445. end
  446.  
  447.  
  448. function QuaternionFromCFrame(cf)
  449. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  450. local trace = m00 + m11 + m22
  451. if trace > 0 then
  452. local s = math.sqrt(1 + trace)
  453. local recip = 0.5 / s
  454. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  455. else
  456. local i = 0
  457. if m11 > m00 then
  458. i = 1
  459. end
  460. if m22 > (i == 0 and m00 or m11) then
  461. i = 2
  462. end
  463. if i == 0 then
  464. local s = math.sqrt(m00 - m11 - m22 + 1)
  465. local recip = 0.5 / s
  466. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  467. elseif i == 1 then
  468. local s = math.sqrt(m11 - m22 - m00 + 1)
  469. local recip = 0.5 / s
  470. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  471. elseif i == 2 then
  472. local s = math.sqrt(m22 - m00 - m11 + 1)
  473. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  474. end
  475. end
  476. end
  477.  
  478. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  479. local xs, ys, zs = x + x, y + y, z + z
  480. local wx, wy, wz = w * xs, w * ys, w * zs
  481. local xx = x * xs
  482. local xy = x * ys
  483. local xz = x * zs
  484. local yy = y * ys
  485. local yz = y * zs
  486. local zz = z * zs
  487. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  488. end
  489.  
  490. function QuaternionSlerp(a, b, t)
  491. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  492. local startInterp, finishInterp;
  493. if cosTheta >= 0.0001 then
  494. if (1 - cosTheta) > 0.0001 then
  495. local theta = ACOS(cosTheta)
  496. local invSinTheta = 1 / SIN(theta)
  497. startInterp = SIN((1 - t) * theta) * invSinTheta
  498. finishInterp = SIN(t * theta) * invSinTheta
  499. else
  500. startInterp = 1 - t
  501. finishInterp = t
  502. end
  503. else
  504. if (1 + cosTheta) > 0.0001 then
  505. local theta = ACOS(-cosTheta)
  506. local invSinTheta = 1 / SIN(theta)
  507. startInterp = SIN((t - 1) * theta) * invSinTheta
  508. finishInterp = SIN(t * theta) * invSinTheta
  509. else
  510. startInterp = t - 1
  511. finishInterp = t
  512. end
  513. end
  514. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  515. end
  516. function look(to)
  517. RootJoint.CFrame = CFrame.new(RootJoint.CFrame.p,Vector3.new(to.x,RootJoint.CFrame.y,to.z))
  518. end
  519. function Clerp(a, b, t)
  520. local qa = {QuaternionFromCFrame(a)}
  521. local qb = {QuaternionFromCFrame(b)}
  522. local ax, ay, az = a.x, a.y, a.z
  523. local bx, by, bz = b.x, b.y, b.z
  524. local _t = 1 - t
  525. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  526. end
  527.  
  528. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  529. local frame = IT("Frame")
  530. frame.BackgroundTransparency = TRANSPARENCY
  531. frame.BorderSizePixel = BORDERSIZEPIXEL
  532. frame.Position = POSITION
  533. frame.Size = SIZE
  534. frame.BackgroundColor3 = COLOR
  535. frame.BorderColor3 = BORDERCOLOR
  536. frame.Name = NAME
  537. frame.Parent = PARENT
  538. return frame
  539. end
  540.  
  541. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  542. local label = IT("TextLabel")
  543. label.BackgroundTransparency = 1
  544. label.Size = UD2(1, 0, 1, 0)
  545. label.Position = UD2(0, 0, 0, 0)
  546. label.TextColor3 = TEXTCOLOR
  547. label.TextStrokeTransparency = STROKETRANSPARENCY
  548. label.TextTransparency = TRANSPARENCY
  549. label.FontSize = TEXTFONTSIZE
  550. label.Font = TEXTFONT
  551. label.BorderSizePixel = BORDERSIZEPIXEL
  552. label.TextScaled = false
  553. label.Text = TEXT
  554. label.Name = NAME
  555. label.Parent = PARENT
  556. return label
  557. end
  558.  
  559. function NoOutlines(PART)
  560. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  561. end
  562.  
  563. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  564. local NEWWELD = IT(TYPE)
  565. NEWWELD.Part0 = PART0
  566. NEWWELD.Part1 = PART1
  567. NEWWELD.C0 = C0
  568. NEWWELD.C1 = C1
  569. NEWWELD.Parent = PARENT
  570. return NEWWELD
  571. end
  572.  
  573. local S = IT("Sound")
  574. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  575. local NEWSOUND = nil
  576. coroutine.resume(coroutine.create(function()
  577. NEWSOUND = S:Clone()
  578. NEWSOUND.Parent = PARENT
  579. NEWSOUND.Volume = VOLUME
  580. NEWSOUND.Pitch = PITCH
  581. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  582. NEWSOUND:play()
  583. if DOESLOOP == true then
  584. NEWSOUND.Looped = true
  585. else
  586. repeat wait(1) until NEWSOUND.Playing == false
  587. NEWSOUND:remove()
  588. end
  589. end))
  590. return NEWSOUND
  591. end
  592.  
  593. function CFrameFromTopBack(at, top, back)
  594. local right = top:Cross(back)
  595. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  596. end
  597.  
  598. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  599. function WACKYEFFECT(Table)
  600. local TYPE = (Table.EffectType or "Sphere")
  601. local SIZE = (Table.Size or VT(1,1,1))
  602. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  603. local TRANSPARENCY = (Table.Transparency or 0)
  604. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  605. local CFRAME = (Table.CFrame or Torso.CFrame)
  606. local MOVEDIRECTION = (Table.MoveToPos or nil)
  607. local ROTATION1 = (Table.RotationX or 0)
  608. local ROTATION2 = (Table.RotationY or 0)
  609. local ROTATION3 = (Table.RotationZ or 0)
  610. local MATERIAL = (Table.Material or "Neon")
  611. local COLOR = (Table.Color or C3(1,1,1))
  612. local TIME = (Table.Time or 45)
  613. local SOUNDID = (Table.SoundID or nil)
  614. local SOUNDPITCH = (Table.SoundPitch or nil)
  615. local SOUNDVOLUME = (Table.SoundVolume or nil)
  616. coroutine.resume(coroutine.create(function()
  617. local PLAYSSOUND = false
  618. local SOUND = nil
  619. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  620. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  621. PLAYSSOUND = true
  622. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  623. end
  624. EFFECT.Color = COLOR
  625. local MSH = nil
  626. if TYPE == "Sphere" then
  627. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  628. elseif TYPE == "Block" or TYPE == "Box" then
  629. MSH = IT("BlockMesh",EFFECT)
  630. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  631. elseif TYPE == "Wave" then
  632. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  633. elseif TYPE == "Ring" then
  634. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  635. elseif TYPE == "Slash" then
  636. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  637. elseif TYPE == "Round Slash" then
  638. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  639. elseif TYPE == "Swirl" then
  640. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  641. elseif TYPE == "Skull" then
  642. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  643. elseif TYPE == "Crystal" then
  644. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  645. end
  646. if MSH ~= nil then
  647. local MOVESPEED = nil
  648. if MOVEDIRECTION ~= nil then
  649. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  650. end
  651. local GROWTH = SIZE - ENDSIZE
  652. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  653. if TYPE == "Block" then
  654. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  655. else
  656. EFFECT.CFrame = CFRAME
  657. end
  658. for LOOP = 1, TIME+1 do
  659. Swait()
  660. MSH.Scale = MSH.Scale - GROWTH/TIME
  661. if TYPE == "Wave" then
  662. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  663. end
  664. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  665. if TYPE == "Block" then
  666. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  667. else
  668. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  669. end
  670. if MOVEDIRECTION ~= nil then
  671. local ORI = EFFECT.Orientation
  672. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  673. EFFECT.Orientation = ORI
  674. end
  675. end
  676. if PLAYSSOUND == false then
  677. EFFECT:remove()
  678. else
  679. repeat Swait() until SOUND.Playing == false
  680. EFFECT:remove()
  681. end
  682. else
  683. if PLAYSSOUND == false then
  684. EFFECT:remove()
  685. else
  686. repeat Swait() until SOUND.Playing == false
  687. EFFECT:remove()
  688. end
  689. end
  690. end))
  691. end
  692.  
  693. function MakeForm(PART,TYPE)
  694. if TYPE == "Cyl" then
  695. local MSH = IT("CylinderMesh",PART)
  696. elseif TYPE == "Ball" then
  697. local MSH = IT("SpecialMesh",PART)
  698. MSH.MeshType = "Sphere"
  699. elseif TYPE == "Wedge" then
  700. local MSH = IT("SpecialMesh",PART)
  701. MSH.MeshType = "Wedge"
  702. end
  703. end
  704.  
  705. Debris = game:GetService("Debris")
  706.  
  707. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  708. local DIRECTION = CF(StartPos,EndPos).lookVector
  709. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  710. end
  711.  
  712. function turnto(position)
  713. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  714. end
  715. Humanoid.Died:connect(function()
  716. Humanoid.Parent = nil
  717. Humanoid.MaxHealth = "inf"
  718. Humanoid.Health = "inf"
  719. refit()
  720. Humanoid.Parent = Character
  721. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
  722. for i = 1, 5 do
  723. end
  724. killnearest(Torso.Position, 25, 180)
  725. end)
  726. function killnearest(position, range, maxstrength)
  727. for i, v in ipairs(workspace:GetChildren()) do
  728. local body = v:GetChildren()
  729. for part = 1, #body do
  730. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
  731. if v.ClassName == "Model" then
  732. v:BreakJoints()
  733. end
  734. local bv = Instance.new("BodyVelocity")
  735. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  736. bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
  737. bv.Parent = body[part]
  738. Debris:AddItem(bv, 0.2)
  739. end
  740. end
  741. if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
  742. v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
  743. end
  744. end
  745. end
  746. local asd = Instance.new("ParticleEmitter")
  747. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.1, 0, 0))
  748. asd.LightEmission = .1
  749. asd.Size = NumberSequence.new(0.2)
  750. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  751. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  752. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  753. asd.Transparency = bbb
  754. asd.Size = aaa
  755. asd.ZOffset = .9
  756. asd.Acceleration = Vector3.new(0, -5, 0)
  757. asd.LockedToPart = false
  758. asd.EmissionDirection = "Back"
  759. asd.Lifetime = NumberRange.new(1, 2)
  760. asd.Rotation = NumberRange.new(-100, 100)
  761. asd.RotSpeed = NumberRange.new(-100, 100)
  762. asd.Speed = NumberRange.new(2)
  763. asd.Enabled = false
  764. asd.VelocitySpread = 10000
  765.  
  766. function getbloody(victim,amount)
  767. local prtcl = asd:Clone()
  768. prtcl.Parent = victim
  769. prtcl:Emit(amount)
  770. end
  771.  
  772. local TORSOVELOCITY = 0
  773. function Ragdoll(Character2,CharTorso)
  774. local svch = Character2
  775. local hum = Character2:findFirstChild("Humanoid")
  776. local q = Character2:GetChildren()
  777. local CLONE = IT("Model",Effects)
  778. local DummyHead = nil
  779. for i = 1,#q do
  780. if q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then
  781. q[i].Parent = CLONE
  782. if q[i].Name == "Head" then
  783. DummyHead = CLONE.Head:Clone()
  784. q[i]:ClearAllChildren()
  785. q[i].Transparency = 1
  786. end
  787. else
  788. if q[i].ClassName ~= "Humanoid" then
  789. q[i]:remove()
  790. end
  791. end
  792. end
  793. local chrclone = CLONE
  794.  
  795. for _, c in pairs(Character2:GetChildren()) do
  796. if c.ClassName == "Accessory" then
  797. c:remove()
  798. end
  799. end
  800.  
  801. local ch = chrclone:GetChildren()
  802. local i
  803. for i = 1,#ch do
  804. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  805. ch[i]:remove()
  806. end
  807. end
  808. local function Scan(ch)
  809. local e
  810. for e = 1,#ch do
  811. Scan(ch[e]:GetChildren())
  812. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  813. ch[e]:remove()
  814. end
  815. end
  816. end
  817. Scan(chrclone:GetChildren())
  818.  
  819. local ch = Character2:GetChildren()
  820. local i
  821. for i = 1,#ch do
  822. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  823. ch[i]:remove()
  824. end
  825. end
  826.  
  827. local ch = Character2:GetChildren()
  828. local i
  829. for i = 1,#ch do
  830. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  831. ch[i]:remove()
  832. end
  833. end
  834. Character2 = chrclone
  835. local Torso2 = Character2.Torso
  836. local movevector = Vector3.new()
  837.  
  838. if Torso2 then
  839. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  840. local Head = Character2:FindFirstChild("Head")
  841. if Head then
  842. local Neck = Instance.new("Weld")
  843. Neck.Name = "Neck"
  844. Neck.Part0 = Torso2
  845. Neck.Part1 = Head
  846. Neck.C0 = CFrame.new(0, 1.5, 0)
  847. Neck.C1 = CFrame.new()
  848. Neck.Parent = Torso2
  849. Head:ClearAllChildren()
  850. Head.Transparency = 1
  851.  
  852. end
  853. local Limb = Character2:FindFirstChild("Right Arm")
  854. if Limb then
  855.  
  856. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  857. local Joint = Instance.new("Glue")
  858. Joint.Name = "RightShoulder"
  859. Joint.Part0 = Torso2
  860. Joint.Part1 = Limb
  861. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  862. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  863. Joint.Parent = Torso2
  864.  
  865. local B = Instance.new("Part")
  866. B.TopSurface = 0
  867. B.BottomSurface = 0
  868. B.formFactor = "Symmetric"
  869. B.Size = Vector3.new(1, 1, 1)
  870. B.Transparency = 1
  871. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  872. B.Parent = Character2
  873. local W = Instance.new("Weld")
  874. W.Part0 = Limb
  875. W.Part1 = B
  876. W.C0 = CFrame.new(0, -0.5, 0)
  877. W.Parent = Limb
  878.  
  879. end
  880. local Limb = Character2:FindFirstChild("Left Arm")
  881. if Limb then
  882.  
  883. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  884. local Joint = Instance.new("Glue")
  885. Joint.Name = "LeftShoulder"
  886. Joint.Part0 = Torso2
  887. Joint.Part1 = Limb
  888. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  889. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  890. Joint.Parent = Torso2
  891.  
  892. local B = Instance.new("Part")
  893. B.TopSurface = 0
  894. B.BottomSurface = 0
  895. B.formFactor = "Symmetric"
  896. B.Size = Vector3.new(1, 1, 1)
  897. B.Transparency = 1
  898. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  899. B.Parent = Character2
  900. local W = Instance.new("Weld")
  901. W.Part0 = Limb
  902. W.Part1 = B
  903. W.C0 = CFrame.new(0, -0.5, 0)
  904. W.Parent = Limb
  905.  
  906. end
  907. local Limb = Character2:FindFirstChild("Right Leg")
  908. if Limb then
  909.  
  910. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  911. local Joint = Instance.new("Glue")
  912. Joint.Name = "RightHip"
  913. Joint.Part0 = Torso2
  914. Joint.Part1 = Limb
  915. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  916. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  917. Joint.Parent = Torso2
  918.  
  919. local B = Instance.new("Part")
  920. B.TopSurface = 0
  921. B.BottomSurface = 0
  922. B.formFactor = "Symmetric"
  923. B.Size = Vector3.new(1, 1, 1)
  924. B.Transparency = 1
  925. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  926. B.Parent = Character2
  927. local W = Instance.new("Weld")
  928. W.Part0 = Limb
  929. W.Part1 = B
  930. W.C0 = CFrame.new(0, -0.5, 0)
  931. W.Parent = Limb
  932.  
  933. end
  934. local Limb = Character2:FindFirstChild("Left Leg")
  935. if Limb then
  936.  
  937. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  938. local Joint = Instance.new("Glue")
  939. Joint.Name = "LeftHip"
  940. Joint.Part0 = Torso2
  941. Joint.Part1 = Limb
  942. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  943. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  944. Joint.Parent = Torso2
  945.  
  946. local B = Instance.new("Part")
  947. B.TopSurface = 0
  948. B.BottomSurface = 0
  949. B.formFactor = "Symmetric"
  950. B.Size = Vector3.new(1, 1, 1)
  951. B.Transparency = 1
  952. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  953. B.Parent = Character2
  954. local W = Instance.new("Weld")
  955. W.Part0 = Limb
  956. W.Part1 = B
  957. W.C0 = CFrame.new(0, -0.5, 0)
  958. W.Parent = Limb
  959.  
  960. end
  961. --[
  962. local Bar = Instance.new("Part")
  963. Bar.TopSurface = 0
  964. Bar.BottomSurface = 0
  965. Bar.formFactor = "Symmetric"
  966. Bar.Size = Vector3.new(1, 1, 1)
  967. Bar.Transparency = 1
  968. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  969. Bar.Parent = Character2
  970. local Weld = Instance.new("Weld")
  971. Weld.Part0 = Torso2
  972. Weld.Part1 = Bar
  973. Weld.C0 = CFrame.new(0, 0.5, 0)
  974. Weld.Parent = Torso2
  975. --]]
  976. end
  977. Character2.Parent = Weapon
  978. if movevector ~= Vector3.new() then
  979. for i = 1,10 do
  980. Torso2.Velocity = movevector * 30
  981. end
  982. end
  983. DummyHead.Name = "FakeHead"
  984. DummyHead.Parent = CLONE
  985. local BLOOD = CreatePart(3, DummyHead, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.25,0.65),false)
  986. BLOOD.CFrame = DummyHead.CFrame*CF(0,-DummyHead.Size.Y/2,0)
  987. MakeForm(BLOOD,"Cyl")
  988. weldBetween(DummyHead,BLOOD)
  989. local BLOOD = CreatePart(3, Torso2, "Glass", 0, 0, "Maroon", "Blood", VT(0.65,0.2,0.65),false)
  990. BLOOD.CFrame = Torso2.CFrame*CF(0,Torso2.Size.Y/2,0)
  991. MakeForm(BLOOD,"Cyl")
  992. weldBetween(Torso2,BLOOD)
  993. Character2.Name = "Corpse"
  994. local hum2 = svch:findFirstChild("Humanoid")
  995.  
  996. return Character2,Torso2,DummyHead
  997. end
  998.  
  999. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  1000. local HITFLOOR, HITPOS = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  1001. if HITFLOOR ~= nil then
  1002. if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  1003. if HITFLOOR.Name == "BloodPuddle" then
  1004. local DIST = (Position - HITFLOOR.Position).Magnitude
  1005. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  1006. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  1007. end
  1008. else
  1009. if HITFLOOR.Anchored == true then
  1010. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1,0,1))
  1011. BLOOD.CFrame = CF(HITPOS)
  1012. MakeForm(BLOOD,"Cyl")
  1013. coroutine.resume(coroutine.create(function()
  1014. Swait(75)
  1015. while true do
  1016. Swait()
  1017. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  1018. if BLOOD.Size.Z < 0.051 then
  1019. BLOOD:remove()
  1020. break
  1021. end
  1022. end
  1023. end))
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029.  
  1030. function SprayBlood(POSITION,DIRECTION,BloodSize)
  1031. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  1032. BLOOD.CFrame = CF(POSITION)
  1033. MakeForm(BLOOD,"Ball")
  1034. local bv = Instance.new("BodyVelocity",BLOOD)
  1035. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1036. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*15
  1037. bv.Name = "MOVE"
  1038. Debris:AddItem(bv,0.05)
  1039. coroutine.resume(coroutine.create(function()
  1040. local HASTOUCHEDGROUND = false
  1041. local HIT = BLOOD.Touched:Connect(function(hit)
  1042. if hit.Anchored == true then
  1043. HASTOUCHEDGROUND = true
  1044. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  1045. end
  1046. end)
  1047. for i = 1, 50 do
  1048. Swait()
  1049. if HASTOUCHEDGROUND == true then
  1050. break
  1051. end
  1052. BLOOD.Size = BLOOD.Size * 0.9
  1053. end
  1054. BLOOD:remove()
  1055. end))
  1056. end
  1057.  
  1058. function Kill(Target)
  1059. if Target.Parent ~= Weapon and Target:FindFirstChildOfClass("Humanoid") then
  1060. Target:BreakJoints()
  1061. local CFRAME = Target:FindFirstChild("Torso").CFrame or Target:FindFirstChild("UpperTorso")
  1062. local CLONE,TORS2,DummyHead = Ragdoll(Target,Torso)
  1063. getbloody(DummyHead,45)
  1064. if TORS2 ~= nil then
  1065. CreateSound("185688060", TORS2, 10, (math.random(8,12)/10))
  1066. CreateSound("337800380", DummyHead, 5, (math.random(8,18)/10))
  1067. local HUM = IT("Humanoid")
  1068. HUM.MaxHealth = 0
  1069. HUM.Health = 0
  1070. HUM.Name = "CorpseHumanoid"
  1071. HUM.PlatformStand = true
  1072. HUM.Parent = CLONE
  1073. KILLINSTINCT = KILLINSTINCT + 20
  1074. TORS2.CFrame = CFRAME
  1075. coroutine.resume(coroutine.create(function()
  1076. for i = 1, 450 do
  1077. wait()
  1078. SprayBlood(DummyHead.CFrame*CF(0,-0.25,0).p,DummyHead.CFrame*CF(0,-0.7,0).p,5)
  1079. SprayBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,TORS2.CFrame*CF(0,TORS2.Size.Y,0).p,10)
  1080. --PuddleOfBlood(DummyHead.CFrame*CF(0,-0.25,0).p,4,CLONE,3)
  1081. --PuddleOfBlood(TORS2.CFrame*CF(0,TORS2.Size.Y/2,0).p,8,CLONE,6)
  1082. end
  1083. CLONE:Remove()
  1084. end))
  1085. end
  1086. end
  1087. end
  1088.  
  1089. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1, 1, 1),false)
  1090. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "121944778", "144012208", VT(1,1,1), VT(0, 0, 0))
  1091. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1092.  
  1093. local DECAL = IT("Decal",HandlePart)
  1094. DECAL.Texture = "http://www.roblox.com/asset/?id=116830967"
  1095.  
  1096. for _, c in pairs(Weapon:GetChildren()) do
  1097. if c.ClassName == "Part" then
  1098. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1099. end
  1100. end
  1101.  
  1102. local A = IT("Attachment",HandlePart)
  1103. A.Position = VT(0, -1.5, 0)
  1104. local B = IT("Attachment",HandlePart)
  1105. B.Position = VT(0, 2.2, 0.2)
  1106. local Trail = IT("Trail",HandlePart)
  1107. Trail.Attachment0 = A
  1108. Trail.Attachment1 = B
  1109. Trail.Lifetime = 0.1
  1110. Trail.Transparency = NumberSequence.new(0.8, 1)
  1111. Trail.Enabled = false
  1112. ---hat
  1113. p = game.Players.LocalPlayer
  1114. char = p.Character
  1115. torso = char.Torso
  1116. hed = char.Head
  1117. neck = char.Torso.Neck
  1118. hum = char.Humanoid
  1119. hum.MaxHealth = math.huge
  1120. ypcall(function()
  1121. end)
  1122. function sbchat(msg,displayname)
  1123. if not displayname then
  1124. displayname = '<Bitch Smoke>'
  1125. end
  1126. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1127. local st = Instance.new('StringValue')
  1128. st.Name = 'SB_Chat'
  1129. st.Value = displayname..'/'..msg
  1130. delay(0.2,function() st.Parent = v end)
  1131. end
  1132. end
  1133. p1 = Instance.new("Part",char)
  1134. p1.FormFactor = Enum.FormFactor.Custom
  1135. p1.Size = Vector3.new(1.8,0.8,1.8)
  1136. p1.CanCollide = false
  1137. p1.Locked = true
  1138. p1.BottomSurface = Enum.SurfaceType.Smooth
  1139. p1.TopSurface = Enum.SurfaceType.Smooth
  1140. SMesh = Instance.new("SpecialMesh", p1)
  1141. SMesh.MeshId = "http://www.roblox.com/asset/?id=0"
  1142. SMesh.MeshType = Enum.MeshType.FileMesh
  1143. SMesh.Name = "Mesh"
  1144. SMesh.TextureId = "http://www.roblox.com/asset/?id=0"
  1145. w1 = Instance.new("Weld", hed)
  1146. w1.Part0 = hed
  1147. w1.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,1.5,0)
  1148. w1.Part1 = p1
  1149. w1.C1 = CFrame.new(0, -0.9, 0)
  1150. --Hair
  1151. p = game.Players.LocalPlayer
  1152. char = p.Character
  1153. torso = char.Torso
  1154. hed = char.Head
  1155. neck = char.Torso.Neck
  1156. hum = char.Humanoid
  1157. hum.MaxHealth = math.huge
  1158. ypcall(function()
  1159. shirt = Instance.new("Shirt", char)
  1160. shirt.Name = "Shirt"
  1161. pants = Instance.new("Pants", char)
  1162. pants.Name = "Pants"
  1163. end)
  1164. function sbchat(msg,displayname)
  1165. if not displayname then
  1166. displayname = '<Bitch Smoke>'
  1167. end
  1168. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1169. local st = Instance.new('StringValue')
  1170. st.Name = 'SB_Chat'
  1171. st.Value = displayname..'/'..msg
  1172. delay(0.2,function() st.Parent = v end)
  1173. end
  1174. end
  1175. p1 = Instance.new("Part",char)
  1176. p1.FormFactor = Enum.FormFactor.Custom
  1177. p1.Size = Vector3.new(1.8,0.8,1.8)
  1178. p1.CanCollide = false
  1179. p1.Locked = true
  1180. p1.BottomSurface = Enum.SurfaceType.Smooth
  1181. p1.TopSurface = Enum.SurfaceType.Smooth
  1182. SMesh = Instance.new("SpecialMesh", p1)
  1183. SMesh.MeshId = "http://www.roblox.com/asset/?id=1079902"
  1184. SMesh.MeshType = Enum.MeshType.FileMesh
  1185. SMesh.Name = "Mesh"
  1186. SMesh.TextureId = "http://www.roblox.com/asset/?id=1079903"
  1187. w1 = Instance.new("Weld", hed)
  1188. w1.Part0 = hed
  1189. w1.C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  1190. w1.Part1 = p1
  1191. w1.C1 = CFrame.new(0, -0.4, 0)
  1192. -----
  1193. if Head:FindFirstChild("face") then
  1194. Head.face.Texture = "http://www.roblox.com/asset/?id=31117192"
  1195. mouse = game.Players.LocalPlayer:GetMouse()
  1196. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1197. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" or v.ClassName == "Accessory" then
  1198. v:Remove()
  1199. end
  1200. end
  1201. dft = {}
  1202. --lollllll
  1203. wait(0.2)
  1204. p = game.Players.LocalPlayer
  1205. char = p.Character
  1206. torso = char.Torso
  1207. hed = char.Head
  1208. neck = char.Torso.Neck
  1209. hum = char.Humanoid
  1210. hum.MaxHealth = math.huge
  1211. ypcall(function()
  1212. shirt = Instance.new("Shirt", char)
  1213. shirt.Name = "Shirt"
  1214. pants = Instance.new("Pants", char)
  1215. pants.Name = "Pants"
  1216. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=58950350"
  1217. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61848751"
  1218. end)
  1219. function sbchat(msg,displayname)
  1220. if not displayname then
  1221. displayname = '<Bitch Smoke>'
  1222. end
  1223. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1224. local st = Instance.new('StringValue')
  1225. st.Name = 'SB_Chat'
  1226. st.Value = displayname..'/'..msg
  1227. delay(0.2,function() st.Parent = v end)
  1228. end
  1229. end
  1230.  
  1231. Player = owner
  1232. PlayerGui = Player.PlayerGui
  1233. Cam = workspace.CurrentCamera
  1234. Backpack = Player.Backpack
  1235. Character = Player.Character
  1236. Humanoid = Character.Humanoid
  1237. RootPart = Character["HumanoidRootPart"]
  1238. Torso = Character["Torso"]
  1239. Head = Character["Head"]
  1240. RightArm = Character["Right Arm"]
  1241. LeftArm = Character["Left Arm"]
  1242. RightLeg = Character["Right Leg"]
  1243. LeftLeg = Character["Left Leg"]
  1244. RootJoint = RootPart["RootJoint"]
  1245. Neck = Torso["Neck"]
  1246. RightShoulder = Torso["Right Shoulder"]
  1247. LeftShoulder = Torso["Left Shoulder"]
  1248. RightHip = Torso["Right Hip"]
  1249. LeftHip = Torso["Left Hip"]
  1250.  
  1251. local ff = Instance.new('ForceField', Character)
  1252. ff.Visible = false
  1253.  
  1254. local sick = Instance.new("Sound",Character)
  1255. sick.SoundId = "rbxassetid://184266396"
  1256. sick.Looped = true
  1257. sick.Pitch = 1
  1258. sick.Volume = 10
  1259. sick:Play()
  1260.  
  1261. function unanchor()
  1262. if UNANCHOR == true then
  1263. for _, c in pairs(Character:GetChildren()) do
  1264. if c:IsA("BasePart") then
  1265. c.Anchored = false
  1266. end
  1267. end
  1268. else
  1269. for _, c in pairs(Character:GetChildren()) do
  1270. if c:IsA("BasePart") then
  1271. c.Anchored = true
  1272. end
  1273. end
  1274. end
  1275. end
  1276.  
  1277. function Taunt()
  1278. ATTACK = true
  1279. Rooted = false
  1280. TAUNT = true
  1281. for i=0, 0.1, 0.1 / Animation_Speed do
  1282. Swait()
  1283. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1284. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1285. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1286. end
  1287. for i=0, 3, 0.1 / Animation_Speed do
  1288. Swait()
  1289. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1290. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1291. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1292. end
  1293. CreateSound(363808674, Torso, 10, 1.3)
  1294. for i=0, 1, 0.1 / Animation_Speed do
  1295. Swait()
  1296. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed)
  1297. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed)
  1298. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1299. end
  1300. WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Really black").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1301. CreateSound(649634100, Torso, 10, 0.8)
  1302. for i=0, 0.01, 0.1 / Animation_Speed do
  1303. Swait()
  1304. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1305. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1306. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1307. end
  1308. ATTACK = false
  1309. Rooted = false
  1310. TAUNT = false
  1311. sick:Stop()
  1312. game:service'Lighting'.FogEnd = 100
  1313. game:service'Lighting'.FogStart = 0
  1314. game:service'Lighting'.FogColor = BrickColor.new'Black'.Color
  1315. game:service'Lighting'.ClockTime = 22
  1316.  
  1317. local Sky = Instance.new("Sky",game:service'Lighting')
  1318. Sky.MoonAngularSize = 30
  1319. Sky.MoonTextureId = "http://www.roblox.com/asset/?id=156679858"
  1320. local Music = sndFromData(Sounds.Astronaut13,torso) -- incase u want music
  1321. Music.MaxDistance = 500
  1322. Music:Play()
  1323. local Distorted = NewInstance("EqualizerSoundEffect",Music,{MidGain=0,HighGain=0,LowGain=0})
  1324. ClearChildrenWithClass(char,"Decal",true)
  1325. ClearChildrenWithClass(char,"Clothing",true)
  1326. if(PaintBody)then
  1327. char['Body Colors'].LeftArmColor = BrickColor.new(PaintBody)
  1328. char['Body Colors'].RightArmColor = BrickColor.new(PaintBody)
  1329. char['Body Colors'].LeftLegColor = BrickColor.new(PaintBody)
  1330. char['Body Colors'].RightLegColor = BrickColor.new(PaintBody)
  1331. char['Body Colors'].TorsoColor = BrickColor.new(PaintBody)
  1332. char['Body Colors'].HeadColor = BrickColor.new(PaintBody)
  1333. end
  1334. local naeeym2 = Instance.new("BillboardGui", Character)
  1335. naeeym2.AlwaysOnTop = true
  1336. naeeym2.Size = UDim2.new(15, 35, 2, 15)
  1337. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  1338. naeeym2.Adornee = Character.Head
  1339. naeeym2.Name = "Name"
  1340. local tecks2 = Instance.new("TextLabel", naeeym2)
  1341. tecks2.BackgroundTransparency = 1
  1342. tecks2.TextScaled = true
  1343. tecks2.BorderSizePixel = 0
  1344. tecks2.Text = "Astronaut"
  1345. tecks2.Font = "Antique"
  1346. tecks2.TextSize = 30
  1347. tecks2.TextStrokeTransparency = 0
  1348. tecks2.TextColor3 = Color3.new(1, 1, 1)
  1349. tecks2.TextStrokeColor3 = BrickColor.new("Really black").Color
  1350. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1351. tecks2.Parent = naeeym2
  1352. local MATHS = {"0","1"}
  1353. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)].."A"..MATHS[MRANDOM(1,#MATHS)].."S"..MATHS[MRANDOM(1,#MATHS)].."T"..MATHS[MRANDOM(1,#MATHS)].."R"..MATHS[MRANDOM(1,#MATHS)].."O"..MATHS[MRANDOM(1,#MATHS)].."N"..MATHS[MRANDOM(1,#MATHS)].."A"..MATHS[MRANDOM(1,#MATHS)].."U"..MATHS[MRANDOM(1,#MATHS)].."T"..MATHS[MRANDOM(1,#MATHS)]
  1354. Humanoid.PlatformStand = false
  1355. script.Name = Humanoid.Name
  1356.  
  1357. Weapon.Parent = Character
  1358. runService:BindToRenderStep("N_Animations",Enum.RenderPriority.Character.Value + 1,function()
  1359. sine=sine+change
  1360. local GlitchEffect = math.random(1,500)
  1361. hum.WalkSpeed = 8
  1362. if(Music.TimePosition > 2.7 and Music.TimePosition < 2.75 or Music.TimePosition > 6.8 and Music.TimePosition < 6.9)then GlitchTime = time()+.45 elseif(Music.TimePosition > 7.6)then
  1363. if(GlitchEffect == 1 and time()-GlitchTime >= .5)then
  1364. GlitchTime = time()
  1365. end
  1366. end
  1367. if(time()-GlitchTime < .5)then
  1368. Distorted.MidGain = -25
  1369. Distorted.LowGain = 10
  1370. Distorted.HighGain = -25
  1371. FT.Parent = torso
  1372. RA.Parent = rarm
  1373. LA.Parent = larm
  1374. RL.Parent = rleg
  1375. LL.Parent = lleg
  1376. for _,v in next, char:GetDescendants() do
  1377. if(v:IsA'DataModelMesh')then
  1378. v.Offset = Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1379. end
  1380. end
  1381. else
  1382. Distorted.MidGain = 0
  1383. Distorted.LowGain = 0
  1384. Distorted.HighGain = 0
  1385. FT.Parent = nil
  1386. RA.Parent = nil
  1387. LA.Parent = nil
  1388. RL.Parent = nil
  1389. LL.Parent = nil
  1390. for _,v in next, char:GetDescendants() do
  1391. if(v:IsA'DataModelMesh')then
  1392. v.Offset = Vector3.new(0,0,0)
  1393. end
  1394. end
  1395. end
  1396. Swait()
  1397. ANIMATE.Parent = nil
  1398. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1399. IDLEANIMATION:Play()
  1400. SINE = SINE + CHANGE
  1401. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1402. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1403. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1404. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1405. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1406. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1407. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1408. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1409. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1410. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1411. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1412. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1413. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1414. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1415. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1416. end
  1417. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1418. ANIM = "Jump"
  1419. if ATTACK == false then
  1420. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1421. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1422. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1423. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1424. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1425. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1426. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(155), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1427. end
  1428. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1429. ANIM = "Fall"
  1430. if ATTACK == false then
  1431. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1432. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1433. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1434. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1435. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1436. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1437. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(75), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1438. end
  1439. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1440. ANIM = "Idle"
  1441. if ATTACK == false then
  1442. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1443. if VALUE1 == false then
  1444. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1445. end
  1446. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1447. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1448. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1449. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1450. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(115), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1451. if VALUE1 == false and MRANDOM(1,200) == 1 then
  1452. coroutine.resume(coroutine.create(function()
  1453. VALUE1 = true
  1454. for i = 1, 25 do
  1455. Swait()
  1456. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  1457. end
  1458. VALUE1 = false
  1459. end))
  1460. end
  1461. end
  1462. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1463. ANIM = "Walk"
  1464. WALK = WALK + 1 / Animation_Speed
  1465. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1466. WALK = 0
  1467. if WALKINGANIM == true then
  1468. WALKINGANIM = false
  1469. elseif WALKINGANIM == false then
  1470. WALKINGANIM = true
  1471. end
  1472. end
  1473. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1474. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1475. if ATTACK == false then
  1476. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1477. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(25), RAD(0)), 0.15 / Animation_Speed)
  1478. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 - 0.15 * COS(SINE / (WALKSPEEDVALUE / 2)), 0) * ANGLES(RAD(-20), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1479. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1480. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1481. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1482. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.75 + 0.3 * COS(SINE / (WALKSPEEDVALUE/2)), 0) * ANGLES(RAD(125), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1483. end
  1484. end
  1485. end
  1486. )end
  1487.  
  1488. function TAUNT1()
  1489. ATTACK = true
  1490. Humanoid.WalkSpeed = 0
  1491. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
  1492. wait(2.5)
  1493. for i = 0,12.5,0.08 do
  1494. Swait()
  1495. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * COS(SINE / 2)) * ANGLES(RAD(-30), RAD(0), RAD(0)), 0.15)
  1496. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(RAD(-30 - 2.5 * SIN(SINE / 2)), RAD(0), RAD(0)), 0.3)
  1497. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * RHCF * ANGLES(RAD(-4.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(-30)), 0.15)
  1498. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * LHCF * ANGLES(RAD(-6.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(30)), 0.15)
  1499. end
  1500. ATTACK = false
  1501. Humanoid.WalkSpeed = 20
  1502. end
  1503.  
  1504. function Swing()
  1505. ATTACK = true
  1506. Rooted = false
  1507. for i=0, 1, 0.1 / Animation_Speed do
  1508. Swait()
  1509. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.7 / Animation_Speed)
  1510. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.7 / Animation_Speed)
  1511. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1512. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1513. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1514. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1515. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(-125), RAD(0), RAD(180)), 0.5 / Animation_Speed)
  1516. end
  1517. Trail.Enabled = true
  1518. HandlePart.CanCollide = true
  1519. CreateSound("185687991", HandlePart, 1, (math.random(8,12)/10))
  1520. local HIT = HandlePart.Touched:Connect(function(hit)
  1521. Kill(hit.Parent)
  1522. end)
  1523. for i=0, 0.8, 0.1 / Animation_Speed do
  1524. Swait()
  1525. if Speed == 25 and TORSOVELOCITY > 0.3 then
  1526. RootPart.CFrame = RootPart.CFrame * CF(0,0,-1)
  1527. end
  1528. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.7 / Animation_Speed)
  1529. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.7 / Animation_Speed)
  1530. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.7) * ANGLES(RAD(15), RAD(0), RAD(90)) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1531. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1532. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1533. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1534. HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, -0.55, 0) * ANGLES(RAD(25), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1535. end
  1536. Trail.Enabled = false
  1537. HandlePart.CanCollide = false
  1538. HIT:disconnect()
  1539. ATTACK = false
  1540. Rooted = false
  1541. end
  1542.  
  1543. --//=================================\\
  1544. --|| ASSIGN THINGS TO KEYS
  1545. --\\=================================//
  1546.  
  1547. FORM=false
  1548. function KeyDown(Key)
  1549. if Key == "m" and FORM == true and ATTACK == false then
  1550. TAUNT1()
  1551. end
  1552.  
  1553. if Key == "n" and FORM == true and ATTACK == false then
  1554. Swing()
  1555. end
  1556.  
  1557. if Key == "t" and FORM == false and ATTACK ==false then
  1558. Taunt()
  1559. warn("Evil Mode Activated")
  1560. FORM = true
  1561. ATTACK = false
  1562. end
  1563. end
  1564.  
  1565. function KeyUp(Key)
  1566. KEYHOLD = false
  1567. end
  1568.  
  1569. Mouse.KeyDown:connect(function(NEWKEY)
  1570. KeyDown(NEWKEY)
  1571. end)
  1572. Mouse.KeyUp:connect(function(NEWKEY)
  1573. KeyUp(NEWKEY)
  1574. end)
  1575.  
  1576. --//=================================\\
  1577. --|| WRAP THE WHOLE SCRIPT UP
  1578. --\\=================================//
  1579.  
  1580. local JUMPED = false
  1581.  
  1582. Humanoid.Changed:connect(function(Jump)
  1583. if Jump == "Jump" and (Disable_Jump == true) then
  1584. Humanoid.Jump = false
  1585. elseif Jump == "Jump" and Disable_Jump == false and JUMPED == false then
  1586. JUMPED = true
  1587. CreateSound(158309736, Torso, 10, 1, false)
  1588. end
  1589. end)
  1590.  
  1591. while true do
  1592. Swait()
  1593. ANIMATE.Parent = nil
  1594. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1595. IDLEANIMATION:Play()
  1596. SINE = SINE + CHANGE
  1597. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1598. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1599. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1600. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1601. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1602. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1603. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1604. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1605. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1606. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1607. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1608. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1609. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1610. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1611. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1612. end
  1613. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1614. ANIM = "Jump"
  1615. if ATTACK == false then
  1616. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1617. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1618. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1619. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1620. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1621. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1622. end
  1623. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1624. ANIM = "Fall"
  1625. if ATTACK == false then
  1626. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1627. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1628. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1629. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1630. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1631. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1632. end
  1633. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1634. ANIM = "Idle"
  1635. if ATTACK == false then
  1636. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1637. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1638. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1639. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1640. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1641. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1642. end
  1643. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1644. ANIM = "Walk"
  1645. WALK = WALK + 1 / Animation_Speed
  1646. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1647. WALK = 0
  1648. if WALKINGANIM == true then
  1649. WALKINGANIM = false
  1650. elseif WALKINGANIM == false then
  1651. WALKINGANIM = true
  1652. end
  1653. end
  1654. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1655. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1656. if ATTACK == false then
  1657. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1658. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1659. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1660. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1661. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1662. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1663. end
  1664. end
  1665. unanchor()
  1666. Humanoid.MaxHealth = "inf"
  1667. Humanoid.Health = "inf"
  1668. if Rooted == false then
  1669. Disable_Jump = false
  1670. Humanoid.WalkSpeed = Speed
  1671. elseif Rooted == true then
  1672. Disable_Jump = true
  1673. Humanoid.WalkSpeed = 0
  1674. end
  1675. end
  1676. local FF = IT("ForceField", Character)
  1677. FF.Visible = false
  1678. function refit()
  1679. RootJoint.Parent = RootPart
  1680. Neck.Parent = Torso
  1681. RightShoulder.Parent = Torso
  1682. LeftShoulder.Parent = Torso
  1683. RightHip.Parent = Torso
  1684. LeftHip.Parent = Torso
  1685. RootPart.Parent = Character
  1686. LeftArm.Parent = Character
  1687. RightArm.Parent = Character
  1688. RightLeg.Parent = Character
  1689. LeftLeg.Parent = Character
  1690. Torso.Parent = Character
  1691. Head.Parent = Character
  1692. FF.Parent = Character
  1693. end
  1694.  
  1695. local COLOR = C3((0+sick.PlaybackLoudness/200)/510,(115+sick.PlaybackLoudness/25)/510,(150+sick.PlaybackLoudness*1.5)/610)
  1696. for _, c in pairs(Character:GetChildren()) do
  1697. if c:IsA("BasePart") and c.Name ~= "Detail" then
  1698. c.Material = "Neon"
  1699. if c:FindFirstChildOfClass("ParticleEmitter") then
  1700. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1701. end
  1702. if c == Head then
  1703. if c:FindFirstChild("face") then
  1704. c.face:remove()
  1705. end
  1706. end
  1707. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1708. c:remove()
  1709. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1710. c:remove()
  1711. elseif c.Name == "Detail" then
  1712. c.Material = "Neon"
  1713. c.Color = COLOR
  1714. end
  1715. end
  1716. if DEAD == false then
  1717. sick.SoundId = "rbxassetid://"..SONG
  1718. sick.Looped = true
  1719. sick.Pitch = 1
  1720. sick.Volume = 2
  1721. sick.Playing = true
  1722. sick.Parent = Torso
  1723. else
  1724. sick:remove()
  1725. end
  1726.  
  1727. --//=================================\\
  1728. --\\=================================//
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734. --//====================================================\\--
  1735. --|| END OF SCRIPT
  1736. --\\====================================================//--
  1737. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement