Advertisement
Dowuer

Untitled

Jan 4th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5. warn("if ur reading this ur gay")
  6. Player = owner
  7. PlayerGui = Player.PlayerGui
  8. Cam = workspace.CurrentCamera
  9. Backpack = Player.Backpack
  10. Character = Player.Character
  11. Humanoid = Character.Humanoid
  12. RootPart = Character["HumanoidRootPart"]
  13. Torso = Character["Torso"]
  14. Head = Character["Head"]
  15. RightArm = Character["Right Arm"]
  16. LeftArm = Character["Left Arm"]
  17. RightLeg = Character["Right Leg"]
  18. LeftLeg = Character["Left Leg"]
  19. RootJoint = RootPart["RootJoint"]
  20. Neck = Torso["Neck"]
  21. RightShoulder = Torso["Right Shoulder"]
  22. LeftShoulder = Torso["Left Shoulder"]
  23. RightHip = Torso["Right Hip"]
  24. LeftHip = Torso["Left Hip"]
  25. local TIME = 0
  26. local sick = Instance.new("Sound",Torso)
  27.  
  28. IT = Instance.new
  29. CF = CFrame.new
  30. VT = Vector3.new
  31. RAD = math.rad
  32. C3 = Color3.new
  33. UD2 = UDim2.new
  34. BRICKC = BrickColor.new
  35. ANGLES = CFrame.Angles
  36. EULER = CFrame.fromEulerAnglesXYZ
  37. COS = math.cos
  38. ACOS = math.acos
  39. SIN = math.sin
  40. ASIN = math.asin
  41. ABS = math.abs
  42. MRANDOM = math.random
  43. FLOOR = math.floor
  44.  
  45. --//=================================\\
  46. --|| Value shit things
  47. --\\=================================//
  48.  
  49. Animation_Speed = 3
  50. local FORCERESET = false
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local SIZE = 1
  53. local Speed = 24
  54. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  56. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  57. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  58. local DAMAGEMULTIPLIER = 1
  59. local ANIM = "Idle"
  60. local ATTACK = false
  61. local EQUIPPED = false
  62. local HOLD = false
  63. local COMBO = 1
  64. local Rooted = false
  65. local SINE = 0
  66. local KEYHOLD = false
  67. local CHANGE = 2 / Animation_Speed
  68. local WALKINGANIM = false
  69. local VALUE1 = false
  70. local VALUE2 = false
  71. local ROBLOXIDLEANIMATION = IT("Animation")
  72. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  73. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  74. --ROBLOXIDLEANIMATION.Parent = Humanoid
  75. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  76. WEAPONGUI.Name = "BanishV3Gui"
  77. local Weapon = IT("Model")
  78. Weapon.Name = "Adds"
  79. local Effects = IT("Folder", Weapon)
  80. Effects.Name = "Effects"
  81. local ANIMATOR = Humanoid.Animator
  82. local ANIMATE = Character:FindFirstChild("Animate")
  83. local UNANCHOR = true
  84. local TOBANISH = {}
  85. Player_Size = 1
  86. local kan = Instance.new("Sound",Character)
  87. kan.Volume = 1.25
  88. kan.TimePosition = 0
  89. kan.PlaybackSpeed = 1
  90. kan.Pitch = 1
  91. kan.SoundId = "rbxassetid://614032233"
  92. kan.Name = "wrecked"
  93. kan.Looped = true
  94. kan:Play()
  95. local Mode = 1
  96. local currentThemePlaying = kan.SoundId
  97. local currentPitch = kan.Pitch
  98. local currentVol = kan.Volume
  99. --//=================================\\
  100. --\\=================================//
  101. for i,v in pairs(Character:children()) do
  102. if v:IsA("Accessory") then
  103. v:Destroy()
  104. end
  105. end
  106.  
  107. warn("CREATED BY AlmightyToast#6465")
  108. warn("aka KrYn0MoRe or ShrekBenson")
  109. warn("DOnt rEm0vE tH1s 0r uR gAy")
  110. --//=================================\\
  111. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  112. --\\=================================//
  113.  
  114. ArtificialHB = Instance.new("BindableEvent", script)
  115. ArtificialHB.Name = "ArtificialHB"
  116.  
  117. script:WaitForChild("ArtificialHB")
  118.  
  119. frame = Frame_Speed
  120. tf = 0
  121. allowframeloss = false
  122. tossremainder = false
  123. lastframe = tick()
  124. script.ArtificialHB:Fire()
  125.  
  126. game:GetService("RunService").Heartbeat:connect(function(s, p)
  127. tf = tf + s
  128. if tf >= frame then
  129. if allowframeloss then
  130. script.ArtificialHB:Fire()
  131. lastframe = tick()
  132. else
  133. for i = 1, math.floor(tf / frame) do
  134. script.ArtificialHB:Fire()
  135. end
  136. lastframe = tick()
  137. end
  138. if tossremainder then
  139. tf = 0
  140. else
  141. tf = tf - frame * math.floor(tf / frame)
  142. end
  143. end
  144. end)
  145.  
  146. --//=================================\\
  147. --\\=================================//
  148.  
  149. --//=================================\\
  150. --|| MOST FUNCTIONS
  151. --\\=================================//
  152.  
  153. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  154. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  155. end
  156.  
  157. function PositiveAngle(NUMBER)
  158. if NUMBER >= 0 then
  159. NUMBER = 0
  160. end
  161. return NUMBER
  162. end
  163.  
  164. function NegativeAngle(NUMBER)
  165. if NUMBER <= 0 then
  166. NUMBER = 0
  167. end
  168. return NUMBER
  169. end
  170.  
  171. function Swait(NUMBER)
  172. if NUMBER == 0 or NUMBER == nil then
  173. ArtificialHB.Event:wait()
  174. else
  175. for i = 1, NUMBER do
  176. ArtificialHB.Event:wait()
  177. end
  178. end
  179. end
  180.  
  181. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  182. local NEWMESH = IT(MESH)
  183. if MESH == "SpecialMesh" then
  184. NEWMESH.MeshType = MESHTYPE
  185. if MESHID ~= "nil" and MESHID ~= "" then
  186. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  187. end
  188. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  189. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  190. end
  191. end
  192. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  193. NEWMESH.Scale = SCALE
  194. NEWMESH.Parent = PARENT
  195. return NEWMESH
  196. end
  197.  
  198. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  199. local NEWPART = IT("Part")
  200. NEWPART.formFactor = FORMFACTOR
  201. NEWPART.Reflectance = REFLECTANCE
  202. NEWPART.Transparency = TRANSPARENCY
  203. NEWPART.CanCollide = false
  204. NEWPART.Locked = true
  205. NEWPART.Anchored = true
  206. if ANCHOR == false then
  207. NEWPART.Anchored = false
  208. end
  209. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  210. NEWPART.Name = NAME
  211. NEWPART.Size = SIZE
  212. NEWPART.Position = Torso.Position
  213. NEWPART.Material = MATERIAL
  214. NEWPART:BreakJoints()
  215. NEWPART.Parent = PARENT
  216. return NEWPART
  217. end
  218.  
  219. local function weldBetween(a, b)
  220. local weldd = IT("Weld")
  221. weldd.Part0 = a
  222. weldd.Part1 = b
  223. weldd.C0 = CF()
  224. weldd.C1 = b.CFrame:inverse() * a.CFrame
  225. weldd.Parent = a
  226. return weldd
  227. end
  228.  
  229.  
  230. function QuaternionFromCFrame(cf)
  231. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  232. local trace = m00 + m11 + m22
  233. if trace > 0 then
  234. local s = math.sqrt(1 + trace)
  235. local recip = 0.5 / s
  236. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  237. else
  238. local i = 0
  239. if m11 > m00 then
  240. i = 1
  241. end
  242. if m22 > (i == 0 and m00 or m11) then
  243. i = 2
  244. end
  245. if i == 0 then
  246. local s = math.sqrt(m00 - m11 - m22 + 1)
  247. local recip = 0.5 / s
  248. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  249. elseif i == 1 then
  250. local s = math.sqrt(m11 - m22 - m00 + 1)
  251. local recip = 0.5 / s
  252. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  253. elseif i == 2 then
  254. local s = math.sqrt(m22 - m00 - m11 + 1)
  255. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  256. end
  257. end
  258. end
  259.  
  260. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  261. local xs, ys, zs = x + x, y + y, z + z
  262. local wx, wy, wz = w * xs, w * ys, w * zs
  263. local xx = x * xs
  264. local xy = x * ys
  265. local xz = x * zs
  266. local yy = y * ys
  267. local yz = y * zs
  268. local zz = z * zs
  269. 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))
  270. end
  271.  
  272. function QuaternionSlerp(a, b, t)
  273. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  274. local startInterp, finishInterp;
  275. if cosTheta >= 0.0001 then
  276. if (1 - cosTheta) > 0.0001 then
  277. local theta = ACOS(cosTheta)
  278. local invSinTheta = 1 / SIN(theta)
  279. startInterp = SIN((1 - t) * theta) * invSinTheta
  280. finishInterp = SIN(t * theta) * invSinTheta
  281. else
  282. startInterp = 1 - t
  283. finishInterp = t
  284. end
  285. else
  286. if (1 + cosTheta) > 0.0001 then
  287. local theta = ACOS(-cosTheta)
  288. local invSinTheta = 1 / SIN(theta)
  289. startInterp = SIN((t - 1) * theta) * invSinTheta
  290. finishInterp = SIN(t * theta) * invSinTheta
  291. else
  292. startInterp = t - 1
  293. finishInterp = t
  294. end
  295. end
  296. 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
  297. end
  298.  
  299. function Clerp(a, b, t)
  300. local qa = {QuaternionFromCFrame(a)}
  301. local qb = {QuaternionFromCFrame(b)}
  302. local ax, ay, az = a.x, a.y, a.z
  303. local bx, by, bz = b.x, b.y, b.z
  304. local _t = 1 - t
  305. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  306. end
  307.  
  308. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  309. local frame = IT("Frame")
  310. frame.BackgroundTransparency = TRANSPARENCY
  311. frame.BorderSizePixel = BORDERSIZEPIXEL
  312. frame.Position = POSITION
  313. frame.Size = SIZE
  314. frame.BackgroundColor3 = COLOR
  315. frame.BorderColor3 = BORDERCOLOR
  316. frame.Name = NAME
  317. frame.Parent = PARENT
  318. return frame
  319. end
  320.  
  321. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  322. local label = IT("TextLabel")
  323. label.BackgroundTransparency = 1
  324. label.Size = UD2(1, 0, 1, 0)
  325. label.Position = UD2(0, 0, 0, 0)
  326. label.TextColor3 = TEXTCOLOR
  327. label.TextStrokeTransparency = STROKETRANSPARENCY
  328. label.TextTransparency = TRANSPARENCY
  329. label.FontSize = TEXTFONTSIZE
  330. label.Font = TEXTFONT
  331. label.BorderSizePixel = BORDERSIZEPIXEL
  332. label.TextScaled = false
  333. label.Text = TEXT
  334. label.Name = NAME
  335. label.Parent = PARENT
  336. return label
  337. end
  338.  
  339. function NoOutlines(PART)
  340. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  341. end
  342.  
  343. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  344. local NEWWELD = IT(TYPE)
  345. NEWWELD.Part0 = PART0
  346. NEWWELD.Part1 = PART1
  347. NEWWELD.C0 = C0
  348. NEWWELD.C1 = C1
  349. NEWWELD.Parent = PARENT
  350. return NEWWELD
  351. end
  352.  
  353. local S = IT("Sound")
  354. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  355. local NEWSOUND = nil
  356. coroutine.resume(coroutine.create(function()
  357. NEWSOUND = S:Clone()
  358. NEWSOUND.Parent = PARENT
  359. NEWSOUND.Volume = VOLUME
  360. NEWSOUND.Pitch = PITCH
  361. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  362. NEWSOUND:play()
  363. if DOESLOOP == true then
  364. NEWSOUND.Looped = true
  365. else
  366. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  367. NEWSOUND:remove()
  368. end
  369. end))
  370. return NEWSOUND
  371. end
  372.  
  373. function CFrameFromTopBack(at, top, back)
  374. local right = top:Cross(back)
  375. 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)
  376. end
  377.  
  378. --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})
  379. function WACKYEFFECT(Table)
  380. local TYPE = (Table.EffectType or "Sphere")
  381. local SIZE = (Table.Size or VT(1,1,1))
  382. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  383. local TRANSPARENCY = (Table.Transparency or 0)
  384. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  385. local CFRAME = (Table.CFrame or Torso.CFrame)
  386. local MOVEDIRECTION = (Table.MoveToPos or nil)
  387. local ROTATION1 = (Table.RotationX or 0)
  388. local ROTATION2 = (Table.RotationY or 0)
  389. local ROTATION3 = (Table.RotationZ or 0)
  390. local MATERIAL = (Table.Material or "Neon")
  391. local COLOR = (Table.Color or C3(1,1,1))
  392. local TIME = (Table.Time or 45)
  393. local SOUNDID = (Table.SoundID or nil)
  394. local SOUNDPITCH = (Table.SoundPitch or nil)
  395. local SOUNDVOLUME = (Table.SoundVolume or nil)
  396. coroutine.resume(coroutine.create(function()
  397. local PLAYSSOUND = false
  398. local SOUND = nil
  399. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  400. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  401. PLAYSSOUND = true
  402. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  403. end
  404. EFFECT.Color = COLOR
  405. local MSH = nil
  406. if TYPE == "Sphere" then
  407. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  408. elseif TYPE == "Block" then
  409. MSH = IT("BlockMesh",EFFECT)
  410. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  411. elseif TYPE == "Wave" then
  412. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  413. elseif TYPE == "Ring" then
  414. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  415. elseif TYPE == "Slash" then
  416. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  417. elseif TYPE == "Round Slash" then
  418. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  419. elseif TYPE == "Swirl" then
  420. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  421. elseif TYPE == "Skull" then
  422. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  423. elseif TYPE == "Crystal" then
  424. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  425. end
  426. if MSH ~= nil then
  427. local MOVESPEED = nil
  428. if MOVEDIRECTION ~= nil then
  429. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  430. end
  431. local GROWTH = SIZE - ENDSIZE
  432. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  433. if TYPE == "Block" then
  434. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  435. else
  436. EFFECT.CFrame = CFRAME
  437. end
  438. for LOOP = 1, TIME+1 do
  439. Swait()
  440. MSH.Scale = MSH.Scale - GROWTH/TIME
  441. if TYPE == "Wave" then
  442. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  443. end
  444. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  445. if TYPE == "Block" then
  446. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  447. else
  448. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  449. end
  450. if MOVEDIRECTION ~= nil then
  451. local ORI = EFFECT.Orientation
  452. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  453. EFFECT.Orientation = ORI
  454. end
  455. end
  456. if PLAYSSOUND == false then
  457. EFFECT:remove()
  458. else
  459. SOUND.Stopped:Connect(function()
  460. EFFECT:remove()
  461. end)
  462. end
  463. else
  464. if PLAYSSOUND == false then
  465. EFFECT:remove()
  466. else
  467. repeat Swait() until SOUND.Playing == false
  468. EFFECT:remove()
  469. end
  470. end
  471. end))
  472. end
  473.  
  474. function MakeForm(PART,TYPE)
  475. if TYPE == "Cyl" then
  476. local MSH = IT("CylinderMesh",PART)
  477. elseif TYPE == "Ball" then
  478. local MSH = IT("SpecialMesh",PART)
  479. MSH.MeshType = "Sphere"
  480. elseif TYPE == "Wedge" then
  481. local MSH = IT("SpecialMesh",PART)
  482. MSH.MeshType = "Wedge"
  483. end
  484. end
  485.  
  486. function SpawnTrail(FROM,TO,BIG)
  487. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  488. MakeForm(TRAIL,"Cyl")
  489. local DIST = (FROM - TO).Magnitude
  490. if BIG == true then
  491. TRAIL.Size = VT(0.5,DIST,0.5)
  492. else
  493. TRAIL.Size = VT(0.25,DIST,0.25)
  494. end
  495. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  496. coroutine.resume(coroutine.create(function()
  497. for i = 1, 5 do
  498. Swait()
  499. TRAIL.Transparency = TRAIL.Transparency + 0.1
  500. end
  501. TRAIL:remove()
  502. end))
  503. end
  504.  
  505. Debris = game:GetService("Debris")
  506.  
  507. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  508. local DIRECTION = CF(StartPos,EndPos).lookVector
  509. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  510. end
  511.  
  512. function turnto(position)
  513. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  514. end
  515. local asd = Instance.new("ParticleEmitter")
  516. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  517. asd.LightEmission = .1
  518. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  519. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  520. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  521. asd.Transparency = bbb
  522. asd.Size = aaa
  523. asd.ZOffset = .9
  524. asd.Acceleration = Vector3.new(0, -15, 0)
  525. asd.LockedToPart = false
  526. asd.EmissionDirection = "Back"
  527. asd.Lifetime = NumberRange.new(1, 2)
  528. asd.Rotation = NumberRange.new(-100, 100)
  529. asd.RotSpeed = NumberRange.new(-100, 100)
  530. asd.Speed = NumberRange.new(10)
  531. asd.Enabled = false
  532. asd.VelocitySpread = 999
  533.  
  534. function getbloody(victim,amount)
  535. local PART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Blood", victim.Size)
  536. PART.CFrame = victim.CFrame
  537. local HITPLAYERSOUNDS = {"356551938","264486467"}
  538. Debris:AddItem(PART,5)
  539. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  540. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  541. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  542. local prtcl = asd:Clone()
  543. prtcl.Parent = PART
  544. prtcl:Emit(amount*10)
  545. end
  546.  
  547. local Particle = IT("ParticleEmitter",nil)
  548. Particle.Enabled = false
  549. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  550. Particle.LightEmission = 0.5
  551. Particle.Rate = 150
  552. Particle.ZOffset = 1
  553. Particle.Rotation = NumberRange.new(-180, 180)
  554. Particle.RotSpeed = NumberRange.new(-180, 180)
  555. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  556. Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
  557.  
  558. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  559. function ParticleEmitter(Table)
  560. local PRTCL = Particle:Clone()
  561. local Speed = Table.Speed or 5
  562. local Drag = Table.Drag or 0
  563. local Size1 = Table.Size1 or 1
  564. local Size2 = Table.Size2 or 5
  565. local Lifetime1 = Table.Lifetime1 or 1
  566. local Lifetime2 = Table.Lifetime2 or 1.5
  567. local Parent = Table.Parent or Torso
  568. local Emit = Table.Emit or 100
  569. local Offset = Table.Offset or 360
  570. local Acel = Table.Acel or VT(0,0,0)
  571. local Enabled = Table.Enabled or false
  572. PRTCL.Parent = Parent
  573. PRTCL.Size = NumberSequence.new(Size1,Size2)
  574. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  575. PRTCL.Speed = NumberRange.new(Speed)
  576. PRTCL.VelocitySpread = Offset
  577. PRTCL.Drag = Drag
  578. PRTCL.Acceleration = Acel
  579. if Enabled == false then
  580. PRTCL:Emit(Emit)
  581. Debris:AddItem(PRTCL,Lifetime2)
  582. else
  583. PRTCL.Enabled = true
  584. end
  585. return PRTCL
  586. end
  587.  
  588. function unanchor()
  589. if UNANCHOR == true then
  590. g = Character:GetChildren()
  591. for i = 1, #g do
  592. if g[i].ClassName == "Part" then
  593. g[i].Anchored = false
  594. end
  595. end
  596. end
  597. end
  598.  
  599. function newTheme(ID,timepos,pitch,vol)
  600. local kanz = kan
  601. --kanz:Stop()
  602. kanz.Volume = vol
  603. --kanz.TimePosition = timepos
  604. kanz.PlaybackSpeed = pitch
  605. kanz.Pitch = pitch
  606. kanz.SoundId = ID
  607. kanz.Name = "wrecked"
  608. kanz.Looped = true
  609. currentThemePlaying = kanz.SoundId
  610. currentVol = kanz.Volume
  611. currentPitch = kanz.Pitch
  612. --kanz:Play()
  613. --coroutine.resume(coroutine.create(function()
  614. --wait(0.05)
  615. --end))
  616. end
  617. newTheme("rbxassetid://1191722766",0,1,1)
  618.  
  619. --//=================================\\
  620. --|| Clothing,Meshes,etc
  621. --\\=================================//
  622. for i,v in pairs(Character:children()) do
  623. if v:IsA("Clothing") then
  624. v:Destroy()
  625. end
  626. end
  627.  
  628. local top = Instance.new("Shirt")
  629. top.ShirtTemplate = "rbxassetid://2370477670"
  630. top.Parent = Character
  631. top.Name = "Shirt"
  632.  
  633. local bottom = Instance.new("Pants")
  634. bottom.PantsTemplate = "rbxassetid://1134873684"
  635. bottom.Parent = Character
  636. bottom.Name = "Pants"
  637.  
  638. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royale purple", "Top Hat", VT(1,1,1),false)
  639. PRT.Color = C3(0.7,0,1)
  640. local TopHat = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.87,0), CF(0, 0, 0))
  641. CreateMesh("SpecialMesh", PRT, "FileMesh", "1033213385", "", VT(1,1,1)*1.05, VT(0,0,0))
  642. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royale purple", "Top Hat", VT(1,1,1),false)
  643. PRT.Color = C3(0.7,0,1)
  644.  
  645. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Hair", VT(1,1,1),false)
  646. PRT.Color = C3(86,66,54)
  647. local Hair = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,0), ANGLES(0,3.5,0))
  648. CreateMesh("SpecialMesh", PRT, "FileMesh", "1702831244", "1702831287", VT(1,1,1)*1.05, VT(0,0,0))
  649. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Hair", VT(1,1,1),false)
  650. PRT.Color = C3(0.86,0.66,0.54)
  651.  
  652. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Umbrella", VT(1, 4.1, 0.532),false)
  653. PRT.Color = C3(86,66,54)
  654. local Umbrella = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, PRT, CF(-1.3,-0.8,0), ANGLES(0,0,-1.5))
  655. CreateMesh("SpecialMesh", PRT, "FileMesh", "1304506613", "1304506638", VT(1,1,1)*1.05, VT(0,0,0))
  656. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Umbrella", VT(1,1,1),false)
  657. PRT.Color = C3(0.86,0.66,0.54)
  658.  
  659. for i = 1, 10 do
  660. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FAAEC", VT(1.01,0.5,1.01),false)
  661. FACE.Color = C3(0,0,0)
  662. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  663. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  664. end
  665. Head.face.Texture = "http://www.roblox.com/asset/?id=632698682"
  666. --//=================================\\
  667. --|| Attacks
  668. --\\=================================//
  669. function switch()
  670. ATTACK = true
  671. Rooted = true
  672. CreateSound("363808674",workspace,8,1,false)
  673. for i=0, 1.5, 0.1 / Animation_Speed do
  674. Swait()
  675. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(18), RAD(0)), 1 / Animation_Speed)
  676. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  677. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  678. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  679. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  680. end
  681. CreateSound("363808674",workspace,8,1,false)
  682. for i=0, 1.5, 0.1 / Animation_Speed do
  683. Swait()
  684. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-18), RAD(0)), 1 / Animation_Speed)
  685. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  686. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(24)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  687. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  688. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  689. end
  690. if Mode == 1 and Mode ~= 2 then
  691. Mode = 2
  692. Speed = 38
  693. Humanoid.WalkSpeed = Speed
  694. newTheme("rbxassetid://228255592",0,1,1)
  695. elseif Mode == 2 and Mode ~= 1 then
  696. Mode = 1
  697. Speed = 24
  698. Humanoid.WalkSpeed = Speed
  699. newTheme("rbxassetid://1191722766",0,1,1)
  700. end
  701. ATTACK = false
  702. Rooted = false
  703. end
  704.  
  705. function Spinning_Attack()
  706. ATTACK = true
  707. CreatePart("Block",LeftArm,"Plastic",0,1,BrickColor.new(0,0,0),"HitBox",Vector3.new(1,2,1),false)
  708. local HitBox = LeftArm.HitBox
  709. weldBetween(HitBox, LeftArm)
  710. Humanoid.WalkSpeed = 3.01
  711. for i = 0, 1.2, 0.1 do
  712. Swait()
  713. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(-65)), 0.3)
  714. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  715. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  716. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-35), math.rad(0), math.rad(-10)), 0.3)
  717. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
  718. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
  719. end
  720. for i = 0, 4.6, 0.1 do
  721. Swait()
  722. CreateSound("2304904662",workspace,3,1,false)
  723. HitBox.Touched:connect(function(hit)
  724. if hit.Parent and hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass('Humanoid') then
  725. hit.Parent:FindFirstChildOfClass('Humanoid').Health = 1 - 9999e+999
  726. end
  727. end)
  728. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(65 + 255.45 * i)), 0.3)
  729. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  730. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(0), math.rad(47)), 0.1)
  731. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(-90), math.rad(-47)), 0.3)
  732. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
  733. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-4.5), math.rad(0), math.rad(30)), 0.3)
  734. end
  735. ATTACK = false
  736. Humanoid.WalkSpeed = 8
  737. HitBox:Destroy()
  738. end
  739.  
  740. --//=================================\\
  741. --|| Animations
  742. --\\=================================//
  743.  
  744. local CONNECT = nil
  745.  
  746. while true do
  747. Swait()
  748. ANIMATE.Parent = nil
  749. if Character:FindFirstChildOfClass("Humanoid") == nil then
  750. Humanoid = IT("Humanoid",Character)
  751. end
  752. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  753. v:Stop();
  754. end
  755. SINE = SINE + CHANGE
  756. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  757. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  758. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  759. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 12)
  760. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  761. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  762. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  763. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  764. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  765. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  766. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  767. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  768. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  769. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  770. end
  771. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  772. ANIM = "Jump"
  773. if ATTACK == false then
  774. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  775. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  776. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  777. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  778. 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)
  779. 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)
  780. end
  781. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  782. ANIM = "Fall"
  783. if ATTACK == false then
  784. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  785. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  786. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  787. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  788. 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)
  789. 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)
  790. end
  791. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  792. ANIM = "Idle"
  793. if ATTACK == false and Mode == 1 then
  794. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  795. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  796. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(220), RAD(45), RAD(-75))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  797. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  798. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  799. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  800. end
  801. if Mode == 2 then
  802. ANIM = "Idle"
  803. RightHip.C0=Clerp(RightHip.C0,CF(1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(25 - 2 * math.cos(SINE / 32))),.1)
  804. LeftHip.C0=Clerp(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(-25 + 2 * math.cos(SINE / 32))),.1)
  805. RootJoint.C0=Clerp(RootJoint.C0,ROOTC0*CF(0,-0.25 + 0.02 * math.cos(SINE / 32),-0.1 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(25 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(0)),.1)
  806. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  807. RightShoulder.C0=Clerp(RightShoulder.C0,CF(1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 + 5 * math.cos(SINE / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(SINE / 53)),math.rad(1 + 3 * math.cos(SINE / 45))),.1)
  808. LeftShoulder.C0=Clerp(LeftShoulder.C0,CF(-1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 - 3 * math.cos(SINE / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(SINE / 55)),math.rad(-3 - 3 * math.cos(SINE / 45))),.1)
  809. end
  810. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  811. ANIM = "Walk"
  812. if ATTACK == false then
  813. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  814. 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)
  815. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  816. 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)
  817. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  818. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  819. end
  820. end
  821. unanchor()
  822. Humanoid.MaxHealth = "inf"
  823. Humanoid.Health = "inf"
  824. if Rooted == false then
  825. Disable_Jump = false
  826. Humanoid.WalkSpeed = Speed
  827. elseif Rooted == true then
  828. Disable_Jump = true
  829. Humanoid.WalkSpeed = 0
  830. end
  831. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement