Advertisement
lafur

Untitled

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