Advertisement
Void_scripter0

13

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