Advertisement
pakin2549

Untitled

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