Guest User

Untitled

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