Advertisement
Dark_AJ1

13

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