Godofadmin1337

esfd

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