Advertisement
HenloMyDude

Cubic

Sep 7th, 2019
660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.19 KB | None | 0 0
  1.  
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = Player
  6. do
  7. print("FE Compatibility code V2 by Mokiros")
  8. local RealPlayer = RealPlayer
  9. script.Parent = RealPlayer.Character
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local Disconnect_Function = function(this)
  13. this[1].Functions[this[2]] = nil
  14. end
  15. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  16. local FakeEvent_Metatable = {__index={
  17. Connect = function(this,f)
  18. local i = tostring(math.random(0,10000))
  19. while this.Functions[i] do
  20. i = tostring(math.random(0,10000))
  21. end
  22. this.Functions[i] = f
  23. return setmetatable({this,i},Disconnect_Metatable)
  24. end
  25. }}
  26. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  27. local function fakeEvent()
  28. return setmetatable({Functions={}},FakeEvent_Metatable)
  29. end
  30.  
  31. --Creating fake input objects with fake variables
  32. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  33. FakeMouse.keyUp = FakeMouse.KeyUp
  34. FakeMouse.keyDown = FakeMouse.KeyDown
  35. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  36. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  37. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  38. end}
  39. --Merged 2 functions into one by checking amount of arguments
  40. CAS.UnbindAction = CAS.BindAction
  41.  
  42. --This function will trigger the events that have been :Connect()'ed
  43. local function TriggerEvent(self,ev,...)
  44. for _,f in pairs(self[ev].Functions) do
  45. f(...)
  46. end
  47. end
  48. FakeMouse.TriggerEvent = TriggerEvent
  49. UIS.TriggerEvent = TriggerEvent
  50.  
  51. --Client communication
  52. local Event = Instance.new("RemoteEvent")
  53. Event.Name = "UserInput_Event"
  54. Event.OnServerEvent:Connect(function(plr,io)
  55. if plr~=RealPlayer then return end
  56. FakeMouse.Target = io.Target
  57. FakeMouse.Hit = io.Hit
  58. if not io.isMouse then
  59. local b = io.UserInputState == Enum.UserInputState.Begin
  60. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  61. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  62. end
  63. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  64. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  65. end
  66. for _,t in pairs(CAS.Actions) do
  67. for _,k in pairs(t.Keys) do
  68. if k==io.KeyCode then
  69. t.Function(t.Name,io.UserInputState,io)
  70. end
  71. end
  72. end
  73. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  74. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  75. end
  76. end)
  77. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  78. local Mouse = owner:GetMouse()
  79. local UIS = game:GetService("UserInputService")
  80. local input = function(io,RobloxHandled)
  81. if RobloxHandled then return end
  82. --Since InputObject is a client-side instance, we create and pass table instead
  83. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  84. end
  85. UIS.InputBegan:Connect(input)
  86. UIS.InputEnded:Connect(input)
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153. local plr = owner
  154. local mouse = plr:GetMouse()
  155. local char = plr.Character
  156. local hum = char.Humanoid
  157. local sine = 0
  158.  
  159. --clerp stuff--
  160.  
  161. Swait,swait = function(number)
  162. if number == 0 or number == nil then
  163. game:GetService("RunService").Heartbeat:Wait()
  164. else
  165. for i = 1,number do
  166. game:GetService("RunService").Heartbeat:Wait()
  167. end
  168. end
  169. end
  170.  
  171. clerp = function(toclerp, cf, number)
  172. local joint = toclerp
  173. joint.C0 = joint.C0:Lerp(cf, number)
  174. end
  175. clerp2 = function(toclerp, cf)
  176. local joint = toclerp
  177. joint.C0 = cf
  178. end
  179.  
  180.  
  181. ---------------
  182.  
  183. --functions--
  184.  
  185. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  186. local NEWMESH = Instance.new(MESH)
  187. if MESH == "SpecialMesh" then
  188. NEWMESH.MeshType = MESHTYPE
  189. if MESHID ~= "nil" and MESHID ~= "" then
  190. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  191. end
  192. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  193. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  194. end
  195. end
  196. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  197. NEWMESH.Scale = SCALE
  198. NEWMESH.Parent = PARENT
  199. return NEWMESH
  200. end
  201.  
  202. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  203. local NEWPART = Instance.new("Part")
  204. NEWPART.formFactor = FORMFACTOR
  205. NEWPART.Reflectance = REFLECTANCE
  206. NEWPART.Transparency = TRANSPARENCY
  207. NEWPART.CanCollide = false
  208. NEWPART.Locked = true
  209. NEWPART.Anchored = true
  210. if ANCHOR == false then
  211. NEWPART.Anchored = false
  212. end
  213. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  214. NEWPART.Name = NAME
  215. NEWPART.Size = SIZE
  216. NEWPART.Position = char.Torso.Position
  217. NEWPART.Material = MATERIAL
  218. NEWPART:BreakJoints()
  219. NEWPART.Parent = PARENT
  220. return NEWPART
  221. end
  222.  
  223. local S = Instance.new("Sound")
  224. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  225. local NEWSOUND = nil
  226. coroutine.resume(coroutine.create(function()
  227. NEWSOUND = S:Clone()
  228. NEWSOUND.Parent = PARENT
  229. NEWSOUND.Volume = VOLUME
  230. NEWSOUND.Pitch = PITCH
  231. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  232. NEWSOUND:play()
  233. if DOESLOOP == true then
  234. NEWSOUND.Looped = true
  235. else
  236. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  237. NEWSOUND:remove()
  238. end
  239. end))
  240. return NEWSOUND
  241. end
  242.  
  243. -------------
  244.  
  245. Create,New = function(Type, ...)
  246. local Object = Instance.new(Type)
  247. for i,v in next,(...) do
  248. Object[i] = v
  249. end
  250. return Object
  251. end
  252.  
  253. -----effects---------
  254.  
  255. --[[
  256. local Weapon = Instance.new("Model")
  257. Weapon.Name = "Adds"
  258. Weapon.Parent = char
  259. local Effects = Instance.new("Folder", Weapon)
  260. Effects.Name = "Effects"
  261. --]]
  262. Effects = char
  263.  
  264. IT = Instance.new
  265. CF = CFrame.new
  266. cf = CFrame.new
  267. VT = Vector3.new
  268. RAD = math.rad
  269. C3 = Color3.new
  270. UD2 = UDim2.new
  271. BRICKC = BrickColor.new
  272. ANGLES = CFrame.Angles
  273. angles = CFrame.Angles
  274. EULER = CFrame.fromEulerAnglesXYZ
  275. COS = math.cos
  276. ACOS = math.acos
  277. SIN = math.sin
  278. ASIN = math.asin
  279. ABS = math.abs
  280. MRANDOM = math.random
  281. FLOOR = math.floor
  282. MSH = nil
  283.  
  284. --Converted with ttyyuu12345's model to script plugin v4
  285. function sandbox(var,func)
  286. local env = getfenv(func)
  287. local newenv = setmetatable({},{
  288. __index = function(self,k)
  289. if k=="script" then
  290. return var
  291. else
  292. return env[k]
  293. end
  294. end,
  295. })
  296. setfenv(func,newenv)
  297. return func
  298. end
  299. cors = {}
  300. mas = Instance.new("Model",game:GetService("Lighting"))
  301. Model0 = Instance.new("Model")
  302. Part1 = Instance.new("Part")
  303. Decal2 = Instance.new("Decal")
  304. Part3 = Instance.new("Part")
  305. SpecialMesh4 = Instance.new("SpecialMesh")
  306. Part5 = Instance.new("Part")
  307. SpecialMesh6 = Instance.new("SpecialMesh")
  308. Part7 = Instance.new("Part")
  309. SpecialMesh8 = Instance.new("SpecialMesh")
  310. Part9 = Instance.new("Part")
  311. SpecialMesh10 = Instance.new("SpecialMesh")
  312. Model0.Name = "owner"
  313. Model0.Parent = mas
  314. Part1.Name = "Head"
  315. Part1.Parent = Model0
  316. Part1.CFrame = CFrame.new(147, 1.99999905, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  317. Part1.Orientation = Vector3.new(0, 90, 0)
  318. Part1.Position = Vector3.new(147, 1.99999905, 86)
  319. Part1.Rotation = Vector3.new(0, 90, 0)
  320. Part1.Color = Color3.new(0.639216, 0.294118, 0.294118)
  321. Part1.Size = Vector3.new(2, 2, 2)
  322. Part1.Anchored = true
  323. Part1.BottomSurface = Enum.SurfaceType.Smooth
  324. Part1.BrickColor = BrickColor.new("Dusty Rose")
  325. Part1.TopSurface = Enum.SurfaceType.Smooth
  326. Part1.brickColor = BrickColor.new("Dusty Rose")
  327. Decal2.Name = "Smile"
  328. Decal2.Parent = Part1
  329. Decal2.Texture = "http://www.roblox.com/asset/?id=149118265"
  330. Decal2.Face = Enum.NormalId.Right
  331. Part3.Name = "Left Arm"
  332. Part3.Parent = Model0
  333. Part3.CFrame = CFrame.new(145.5, 1.99999905, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  334. Part3.Orientation = Vector3.new(0, 90, 0)
  335. Part3.Position = Vector3.new(145.5, 1.99999905, 86)
  336. Part3.Rotation = Vector3.new(0, 90, 0)
  337. Part3.Color = Color3.new(0.639216, 0.294118, 0.294118)
  338. Part3.Size = Vector3.new(1, 1, 1)
  339. Part3.Anchored = true
  340. Part3.BottomSurface = Enum.SurfaceType.Smooth
  341. Part3.BrickColor = BrickColor.new("Dusty Rose")
  342. Part3.TopSurface = Enum.SurfaceType.Smooth
  343. Part3.brickColor = BrickColor.new("Dusty Rose")
  344. SpecialMesh4.Parent = Part3
  345. SpecialMesh4.MeshType = Enum.MeshType.Brick
  346. Part5.Name = "Left Leg"
  347. Part5.Parent = Model0
  348. Part5.CFrame = CFrame.new(146.5, 0.499998987, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  349. Part5.Orientation = Vector3.new(0, 90, 0)
  350. Part5.Position = Vector3.new(146.5, 0.499998987, 86)
  351. Part5.Rotation = Vector3.new(0, 90, 0)
  352. Part5.Color = Color3.new(0.458824, 0, 0)
  353. Part5.Size = Vector3.new(1, 1, 1)
  354. Part5.Anchored = true
  355. Part5.BottomSurface = Enum.SurfaceType.Smooth
  356. Part5.BrickColor = BrickColor.new("Maroon")
  357. Part5.TopSurface = Enum.SurfaceType.Smooth
  358. Part5.brickColor = BrickColor.new("Maroon")
  359. SpecialMesh6.Parent = Part5
  360. SpecialMesh6.MeshType = Enum.MeshType.Brick
  361. Part7.Name = "Right Leg"
  362. Part7.Parent = Model0
  363. Part7.CFrame = CFrame.new(147.5, 0.499998987, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  364. Part7.Orientation = Vector3.new(0, 90, 0)
  365. Part7.Position = Vector3.new(147.5, 0.499998987, 86)
  366. Part7.Rotation = Vector3.new(0, 90, 0)
  367. Part7.Color = Color3.new(0.458824, 0, 0)
  368. Part7.Size = Vector3.new(1, 1, 1)
  369. Part7.Anchored = true
  370. Part7.BottomSurface = Enum.SurfaceType.Smooth
  371. Part7.BrickColor = BrickColor.new("Maroon")
  372. Part7.TopSurface = Enum.SurfaceType.Smooth
  373. Part7.brickColor = BrickColor.new("Maroon")
  374. SpecialMesh8.Parent = Part7
  375. SpecialMesh8.MeshType = Enum.MeshType.Brick
  376. Part9.Name = "Right Arm"
  377. Part9.Parent = Model0
  378. Part9.CFrame = CFrame.new(148.5, 1.99999905, 86, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  379. Part9.Orientation = Vector3.new(0, 90, 0)
  380. Part9.Position = Vector3.new(148.5, 1.99999905, 86)
  381. Part9.Rotation = Vector3.new(0, 90, 0)
  382. Part9.Color = Color3.new(0.639216, 0.294118, 0.294118)
  383. Part9.Size = Vector3.new(1, 1, 1)
  384. Part9.Anchored = true
  385. Part9.BottomSurface = Enum.SurfaceType.Smooth
  386. Part9.BrickColor = BrickColor.new("Dusty Rose")
  387. Part9.TopSurface = Enum.SurfaceType.Smooth
  388. Part9.brickColor = BrickColor.new("Dusty Rose")
  389. SpecialMesh10.Parent = Part9
  390. SpecialMesh10.MeshType = Enum.MeshType.Brick
  391. for i,v in pairs(mas:GetChildren()) do
  392. v.Parent = char
  393. pcall(function() v:MakeJoints() end)
  394. end
  395. for i,v in pairs(Model0:GetChildren()) do
  396. v.Anchored = false
  397. v.CanCollide = false
  398. end
  399. for i,v in pairs(char:GetChildren()) do
  400. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Torso" then
  401. v.Size = Vector3.new(0.000001, 0.0000001, 0.0000001)
  402. end
  403. if v:IsA("Part") then
  404. v.Transparency = 1
  405. end
  406. if v:IsA("Hat") or v:IsA("Accessory") then
  407. v:Destroy()
  408. end
  409. end
  410. char.Head.Transparency = 0.9
  411. char.Head.BrickColor = BrickColor.new("Institutional white")
  412. mas:Destroy()
  413. for i,v in pairs(cors) do
  414. spawn(function()
  415. pcall(v)
  416. end)
  417. end
  418.  
  419. ezweld = function(p, a, b, cf)
  420. local weld = Instance.new("Weld",p)
  421. weld.Part0 = a
  422. weld.Part1 = b
  423. weld.C0 = cf
  424. return weld
  425. end
  426.  
  427. local root = char.HumanoidRootPart
  428. rootj = ezweld(char, Model0["Head"], char.HumanoidRootPart, CFrame.new(0, -0.75, 0) * CFrame.Angles(0, -77, 0))
  429. RS = ezweld(char, Model0["Right Arm"], char.HumanoidRootPart, CFrame.new(-1.5, -0.75, 0))
  430. LS = ezweld(char, Model0["Left Arm"], char.HumanoidRootPart, CFrame.new(1.5, -0.75, 0))
  431. RH = ezweld(char, Model0["Right Leg"], char.HumanoidRootPart, CFrame.new(-0.5, 0.75, 0))
  432. LH = ezweld(char, Model0["Left Leg"], char.HumanoidRootPart, CFrame.new(0.5, 0.75, 0))
  433.  
  434. local RSnor = RS.C0
  435. local LSnor = LS.C0
  436. local RHnor = RH.C0
  437. local LHnor = LH.C0
  438. local rootjnor = rootj.C0
  439. local Anim = "Idle"
  440. Cos = math.cos
  441.  
  442. local remote = Instance.new("RemoteEvent",char)
  443. remote.Name = "jumpremote"
  444.  
  445. function djumpanim()
  446. attack = true
  447. local spinme = 0
  448. for i = 1,15 do
  449. Swait()
  450. spinme = spinme + 1
  451. clerp2(rootj, rootjnor * CFrame.Angles(spinme, 0, 0))
  452. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  453. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  454. clerp(RH, RHnor * CFrame.new(0, 0, spinme) * CFrame.Angles(spinme, 0, 0), 0.15)
  455. clerp(LH, LHnor * CFrame.new(0, 0, spinme) * CFrame.Angles(spinme, 0, 0), 0.15)
  456. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.5, 0, 0), 0.15)
  457. end
  458. attack = false
  459. end
  460.  
  461. function a(e)
  462. if e == "djump" then
  463. djumpanim()
  464. end
  465. end
  466.  
  467. local DoubleJump = NLS([[
  468.  
  469. local players = game:GetService("Players")
  470. local UserInputService = game:GetService("UserInputService")
  471. local plr = players.LocalPlayer
  472. local mouse = plr:GetMouse()
  473. local character = plr.Character
  474. local remote = character.jumpremote
  475. local sprint = false
  476.  
  477. local humanoid = character:WaitForChild("Humanoid")
  478.  
  479. local doubleJumpEnabled = false
  480.  
  481. humanoid.StateChanged:Connect(function(oldState, newState)
  482. if newState == Enum.HumanoidStateType.Jumping then
  483. if not doubleJumpEnabled then
  484. wait(.2)
  485. if humanoid:GetState() == Enum.HumanoidStateType.Freefall then
  486. doubleJumpEnabled = true
  487. end
  488. end
  489. elseif newState == Enum.HumanoidStateType.Landed then
  490. doubleJumpEnabled = false
  491. end
  492. end)
  493.  
  494. UserInputService.InputBegan:Connect(function(inputObject)
  495. if inputObject.KeyCode == Enum.KeyCode.Space then
  496. if doubleJumpEnabled then
  497. if humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
  498. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  499. remote:FireServer("djump")
  500. spawn(function()
  501. doubleJumpEnabled = false
  502. end)
  503. end
  504. end
  505. end
  506. end)
  507. ]],char)
  508.  
  509. remote.OnServerEvent:connect(function()
  510. a("djump")
  511. end)
  512.  
  513. sprint = false
  514. rush = false
  515. local sphere = Instance.new("Part",char)
  516. sphere.CanCollide = false
  517. sphere.BrickColor = Model0["Left Leg"].BrickColor
  518. sphere.Size = Vector3.new(2.5, 1.5, 3.75)
  519. sphere.Transparency = 1
  520. local mesh = Instance.new("SpecialMesh",sphere)
  521. mesh.MeshType = "Sphere"
  522. local joint = ezweld(sphere, sphere, char["HumanoidRootPart"],CFrame.new(0, -0.75 + 1.15, 0))
  523. boost = Instance.new("Sound",sphere) boost.Volume = 5 boost.Looped = true boost.SoundId = "rbxassetid://924922553"
  524. spawn(function()
  525. while true do
  526. Swait()
  527. if sphere.Transparency == 0 then
  528. boost.Playing = true
  529. if boost.TimePosition > 6 then
  530. boost.TimePosition = 3.25
  531. end
  532. else
  533. boost.Playing = false
  534. boost.TimePosition = 0
  535. end
  536. end
  537. end)
  538.  
  539. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(255/255,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(255/255,0/255,0/255))}
  540.  
  541. local att1 = Instance.new("Attachment", sphere)
  542. att1.Name = "att1"
  543. att1.Position = Vector3.new(1, 0.35, 0)
  544. local att2 = Instance.new("Attachment", sphere)
  545. att2.Name = "att2"
  546. att2.Position = Vector3.new(-1, -0.35, 0)
  547. local att3 = Instance.new("Attachment", sphere)
  548. att3.Name = "att3"
  549. att3.Position = Vector3.new(0, 1, 0)
  550. local att4 = Instance.new("Attachment", sphere)
  551. att4.Name = "att4"
  552. att4.Position = Vector3.new(0, -1, 0)
  553. local trailtop1 = Instance.new("Trail", sphere)
  554. trailtop1.Enabled = true
  555. trailtop1.Texture = "rbxassetid://16607923"
  556. trailtop1.Name = "toptrail"
  557. trailtop1.MinLength = 0
  558. trailtop1.Lifetime = 3
  559.  
  560. trailtop1.Color = ColorSequence.new(ColorArray)
  561.  
  562. trailtop1.Attachment0 = att1
  563. trailtop1.Attachment1 = att2
  564. trailtop1.Transparency = NumberSequence.new({
  565. NumberSequenceKeypoint.new(0, 0.5, 0),
  566. NumberSequenceKeypoint.new(1, 1, 0)
  567. })
  568.  
  569. local trailtop12 = Instance.new("Trail", sphere)
  570. trailtop12.Enabled = true
  571. trailtop12.Texture = "rbxassetid://16607923"
  572. trailtop12.Name = "toptrail"
  573. trailtop12.MinLength = 0
  574. trailtop12.Lifetime = 3
  575.  
  576. trailtop12.Color = ColorSequence.new(ColorArray)
  577.  
  578. trailtop12.Attachment0 = att1
  579. trailtop12.Attachment1 = att2
  580. trailtop12.Transparency = NumberSequence.new({
  581. NumberSequenceKeypoint.new(0, 0.5, 0),
  582. NumberSequenceKeypoint.new(1, 1, 0)
  583. })
  584.  
  585. for _,v in pairs (sphere:children()) do
  586. if v:IsA("Trail") then
  587. v.Enabled = false
  588. end
  589. end
  590.  
  591. mouse.KeyDown:connect(function(key)
  592. key = key:lower()
  593. if key == "z" then
  594. sprint = true
  595. rush = false
  596. char.Humanoid.WalkSpeed = 30
  597. end
  598. if key == "x" then
  599. sprint = false
  600. rush = true
  601. char.Humanoid.WalkSpeed = 60
  602. end
  603. end)
  604. mouse.KeyUp:connect(function(key)
  605. key = key:lower()
  606. if key == "z" then
  607. sprint = false
  608. rush = false
  609. char.Humanoid.WalkSpeed = 16
  610. end
  611. if key == "x" then
  612. sprint = false
  613. rush = false
  614. char.Humanoid.WalkSpeed = 16
  615. end
  616. end)
  617.  
  618. combo = 0
  619. beanost = "http://www.roblox.com/asset/?id=3601017200"
  620. attack = false
  621. slap = false
  622.  
  623. function jab1()
  624. if combo == 0 and attack == false then
  625. combo = 1
  626. slap = true
  627. attack = true
  628. local hitter = Model0["Right Arm"].Touched:connect(function(hit)
  629. if hit.Parent ~= char and hit.Parent ~= Model0 then
  630. for _,v in pairs (hit.Parent:children()) do
  631. if v:IsA("Humanoid") then
  632. v.Health = v.Health - 10
  633. end
  634. end
  635. end
  636. end)
  637. for i = 1,16 do
  638. Swait()
  639. clerp(RS, RSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
  640. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  641. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  642. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  643. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0.25, 0), 0.15)
  644. end
  645. for i = 1,16 do
  646. Swait()
  647. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  648. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  649. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  650. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  651. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
  652. end
  653. hitter:disconnect()
  654. coroutine.resume(coroutine.create(function()
  655. wait(.5)
  656. combo = 0
  657. slap = false
  658. end))
  659. wait(.1)
  660. attack = false
  661. end
  662. end
  663.  
  664. function jab2()
  665. if combo == 1 and attack == false then
  666. combo = 0
  667. slap = true
  668. attack = true
  669. local hitter = Model0["Right Arm"].Touched:connect(function(hit)
  670. if hit.Parent ~= char and hit.Parent ~= Model0 then
  671. for _,v in pairs (hit.Parent:children()) do
  672. if v:IsA("Humanoid") then
  673. v.Health = v.Health - 10
  674. end
  675. end
  676. end
  677. end)
  678. for i = 1,16 do
  679. Swait()
  680. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  681. clerp(LS, LSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
  682. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  683. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  684. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, -0.25, 0), 0.15)
  685. end
  686. for i = 1,16 do
  687. Swait()
  688. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  689. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  690. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  691. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  692. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
  693. end
  694. hitter:disconnect()
  695. coroutine.resume(coroutine.create(function()
  696. wait(.5)
  697. combo = 0
  698. slap = false
  699. end))
  700. wait(.1)
  701. attack = false
  702. end
  703. end
  704. HOLD = false
  705. function jabhold()
  706. attack = true
  707. HOLD = true
  708. sphere.Transparency = 1
  709. repeat
  710. Swait()
  711. local hitter1 = Model0["Right Arm"].Touched:connect(function(hit)
  712. if hit.Parent ~= char and hit.Parent ~= Model0 then
  713. for _,v in pairs (hit.Parent:children()) do
  714. if v:IsA("Humanoid") then
  715. v.Health = v.Health - 1
  716. end
  717. end
  718. end
  719. end)
  720. for i = 1,16 do
  721. Swait()
  722. clerp(RS, RSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
  723. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  724. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  725. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  726. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0.25, 0), 0.15)
  727. end
  728. for i = 1,16 do
  729. Swait()
  730. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  731. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  732. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  733. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  734. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
  735. end
  736. hitter1:disconnect()
  737. local hitter2 = Model0["Left Arm"].Touched:connect(function(hit)
  738. if hit.Parent ~= char and hit.Parent ~= Model0 then
  739. for _,v in pairs (hit.Parent:children()) do
  740. if v:IsA("Humanoid") then
  741. v.Health = v.Health - 1
  742. end
  743. end
  744. end
  745. end)
  746. for i = 1,16 do
  747. Swait()
  748. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  749. clerp(LS, LSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
  750. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  751. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  752. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, -0.25, 0), 0.15)
  753. end
  754. for i = 1,16 do
  755. Swait()
  756. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  757. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  758. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  759. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  760. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.25, 0, 0), 0.15)
  761. end
  762. hitter2:disconnect()
  763. until HOLD == false
  764. attack = false
  765. end
  766.  
  767. function AddDecal(Parent,Face,Texture)
  768. local Decal = Instance.new("Decal",Parent)
  769. Decal.Face = Face
  770. Decal.Texture = Texture
  771. return Decal
  772. end
  773.  
  774. function bean()
  775. attack = true
  776. local whatthe = Instance.new("Sound",Model0.Head) whatthe.SoundId = "rbxassetid://3617615126" whatthe.Volume = 10 whatthe:Play()
  777. for i = 1,25 do
  778. Swait()
  779. clerp(RS, RSnor * CFrame.new(0, -0.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
  780. clerp(LS, LSnor * CFrame.new(0, -0.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
  781. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  782. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  783. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  784. end
  785. local beanos = Instance.new("Part",char)
  786. beanos.CanCollide = false
  787. beanos.Transparency = 1
  788. beanos.Anchored = true
  789. beanos.Size = Vector3.new(0.01, 2, 2)
  790. beanos.Orientation = Model0.Head.Orientation
  791. beanos.Position = Model0.Head.Position
  792. local texture = AddDecal(beanos,"Right",beanost)
  793. local texture2 = AddDecal(beanos,"Left",beanost)
  794. for i = 1,25 do
  795. Swait()
  796. beanos.Position = beanos.Position + Vector3.new(0, 0.1, 0)
  797. end
  798. for i = 1,25 do
  799. Swait()
  800. clerp(RS, RSnor * CFrame.new(0.25, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  801. clerp(LS, LSnor * CFrame.new(0.25, 0, 0.5) * CFrame.Angles(0, 0, 0), 0.15)
  802. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  803. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  804. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0.5, 0), 0.15)
  805. end
  806. beanos:Destroy()
  807. whatthe:Destroy()
  808. attack = false
  809. end
  810. Debris = game:GetService("Debris")
  811. function egg()
  812. attack = true
  813. HOLD = true
  814. sphere.Transparency = 1
  815. local seggs = Instance.new("Sound",Model0["Head"]) seggs.SoundId = "rbxassetid://484205032" seggs.Volume = 10 seggs.Looped = true seggs:Play()
  816. repeat
  817. Swait()
  818. local eggs = Instance.new("Part",workspace)
  819. eggs.Size = Vector3.new(1, 1, 1)
  820. eggs.BrickColor = BrickColor.new("Institutional white")
  821. eggs.CFrame = CFrame.new(Model0["Right Arm"].Position, mouse.Hit.p)
  822. local bv = Instance.new("BodyVelocity",eggs)
  823. bv.Velocity = eggs.CFrame.lookVector * 50
  824. eggs.Touched:connect(function(hit)
  825. for _,v in pairs (hit.Parent:children()) do
  826. if v:IsA("Humanoid") and v.Parent ~= char then
  827. v.Health = v.Health - 2
  828. end
  829. end
  830. end)
  831. Debris:AddItem(eggs,7)
  832. Debris:AddItem(bv,0.25)
  833. for i = 1,16 do
  834. Swait()
  835. clerp(RS, RSnor * CFrame.new(0, -0.5, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
  836. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  837. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  838. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  839. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  840. end
  841. for i = 1,16 do
  842. Swait()
  843. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  844. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  845. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  846. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  847. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  848. end
  849. local eggs = Instance.new("Part",workspace)
  850. eggs.Size = Vector3.new(1, 1, 1)
  851. eggs.BrickColor = BrickColor.new("Institutional white")
  852. eggs.CFrame = CFrame.new(Model0["Left Arm"].Position, mouse.Hit.p)
  853. local bv = Instance.new("BodyVelocity",eggs)
  854. bv.Velocity = eggs.CFrame.lookVector * 50
  855. eggs.Touched:connect(function(hit)
  856. for _,v in pairs (hit.Parent:children()) do
  857. if v:IsA("Humanoid") and v.Parent ~= char then
  858. v.Health = v.Health - 2
  859. end
  860. end
  861. end)
  862. Debris:AddItem(eggs,7)
  863. Debris:AddItem(bv,0.25)
  864. for i = 1,16 do
  865. Swait()
  866. clerp(RS, RSnor * CFrame.new(0, -0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  867. clerp(LS, LSnor * CFrame.new(0, 0, 0.75) * CFrame.Angles(0, 0, 0), 0.15)
  868. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  869. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  870. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  871. end
  872. for i = 1,16 do
  873. Swait()
  874. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  875. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  876. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  877. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  878. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  879. end
  880. until HOLD == false
  881. attack = false
  882. seggs:Destroy()
  883. end
  884.  
  885. function sanic()
  886. local sawnecc = Instance.new("Sound",Model0.Head) sawnecc.SoundId = "rbxassetid://1239456107" sawnecc.Volume = 10 sawnecc.Looped = true sawnecc:Play()
  887. local spinme = 0
  888. attack = true
  889. HOLD = true
  890. repeat
  891. for i = 1,15 do
  892. Swait()
  893. spinme = spinme + 0.25
  894. clerp(rootj, rootjnor * CFrame.new(0, -1.25, 0), 0.15)
  895. clerp2(rootj, rootjnor * CFrame.Angles(0, 0, spinme))
  896. clerp(RS, RSnor * rootj.C0, 0.15)
  897. clerp(LS, RSnor * rootj.C0, 0.15)
  898. end
  899. until HOLD == false
  900. attack = false
  901. sawnecc:Destroy()
  902. end
  903.  
  904. mouse.Button1Down:connect(function()
  905. if attack == false then
  906. jabhold()
  907. end
  908. end)
  909.  
  910. mouse.Button1Up:connect(function()
  911. HOLD = false
  912. end)
  913.  
  914. mouse.KeyDown:connect(function(key)
  915. key=key:lower()
  916. if key == "m" and attack == false then
  917. bean()
  918. end
  919. if key == "n" and attack == false then
  920. sanic()
  921. end
  922. if key == "e" and attack == false then
  923. egg()
  924. end
  925. end)
  926.  
  927. mouse.KeyUp:connect(function(key)
  928. key=key:lower()
  929. if key == "n" then
  930. HOLD = false
  931. end
  932. if key == "e" then
  933. HOLD = false
  934. end
  935. end)
  936.  
  937. while true do
  938. Swait()
  939. sine = sine + 1
  940. torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  941. touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
  942. if torvel > 1 and touchfloor ~= nil then
  943. Anim = "Walk"
  944. elseif torvel > 2 and touchfloor ~= nil then
  945. Anim = "Run"
  946. elseif root.Velocity.magnitude < 50 and touchfloor ~= nil then
  947. Anim = "Idle"
  948. elseif 1 < root.Velocity.y and touchfloor == nil then
  949. Anim = "Jump"
  950. elseif -1 < root.Velocity.y and touchfloor == nil then
  951. Anim = "Fall"
  952. end
  953. if Anim == "Jump" and attack == false then
  954. sphere.Transparency = 1
  955. for _,v in pairs (sphere:children()) do
  956. if v:IsA("Trail") then
  957. v.Enabled = false
  958. end
  959. end
  960. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  961. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  962. clerp(RH, RHnor * CFrame.new(0, 0, -1.25) * CFrame.Angles(0, 0, 0), 0.15)
  963. clerp(LH, LHnor * CFrame.new(0, -0.5, 1) * CFrame.Angles(0, 0, 0), 0.15)
  964. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(-0.5, 0, 0), 0.15)
  965. end
  966. if Anim == "Fall" and attack == false then
  967. sphere.Transparency = 1
  968. for _,v in pairs (sphere:children()) do
  969. if v:IsA("Trail") then
  970. v.Enabled = false
  971. end
  972. end
  973. clerp(RS, RSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(0.5, 0, 0), 0.15)
  974. clerp(LS, LSnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(0.5, 0, 0), 0.15)
  975. clerp(RH, RHnor * CFrame.new(0, -0.5, -0.75) * CFrame.Angles(0.5, 0, 0), 0.15)
  976. clerp(LH, LHnor * CFrame.new(0, -0.5, -0.75) * CFrame.Angles(0.5, 0, 0), 0.15)
  977. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(0.5, 0, 0), 0.15)
  978. end
  979. if Anim == "Idle" and attack == false then
  980. sphere.Transparency = 1
  981. for _,v in pairs (sphere:children()) do
  982. if v:IsA("Trail") then
  983. v.Enabled = false
  984. end
  985. end
  986. clerp(RS, RSnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 7), 0 + 0.15 * Cos(sine / 7)) * CFrame.Angles(0, 0, 0), 0.15)
  987. clerp(LS, LSnor * CFrame.new(0, 0 - 0.15 * Cos(sine / 7), 0 + 0.15 * Cos(sine / 7)) * CFrame.Angles(0, 0, 0), 0.15)
  988. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  989. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  990. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  991. end
  992. if Anim == "Walk" and attack == false and sprint == false and rush == false then
  993. sphere.Transparency = 1
  994. for _,v in pairs (sphere:children()) do
  995. if v:IsA("Trail") then
  996. v.Enabled = false
  997. end
  998. end
  999. clerp(RS, RSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
  1000. clerp(LS, LSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
  1001. clerp(RH, RHnor * CFrame.new(0, -0.25 - 0.5 * Cos(sine / 3.5), 0 + 2.5 * Cos(sine / 3.5)) * CFrame.Angles(0, 0, 0), 0.15)
  1002. clerp(LH, LHnor * CFrame.new(0, -0.25 - 0.5 * Cos(sine / 3.5), 0 - 2.5 * Cos(sine / 3.5)) * CFrame.Angles(0, 0, 0), 0.15)
  1003. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0, 0, 0), 0.15)
  1004. end
  1005. if Anim == "Walk" and attack == false and sprint == true and rush == false then
  1006. sphere.Transparency = 1
  1007. for _,v in pairs (sphere:children()) do
  1008. if v:IsA("Trail") then
  1009. v.Enabled = false
  1010. end
  1011. end
  1012. clerp(RS, RSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
  1013. clerp(LS, LSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
  1014. clerp(RH, RHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 + 3.25 * Cos(sine / 2)) * CFrame.Angles(0, 0, 0), 0.15)
  1015. clerp(LH, LHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 - 3.25 * Cos(sine / 2)) * CFrame.Angles(0, 0, 0), 0.15)
  1016. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.35, 0, 0), 0.15)
  1017. end
  1018. if Anim == "Walk" and attack == false and sprint == false and rush == true then
  1019. sphere.Transparency = 0
  1020. for _,v in pairs (sphere:children()) do
  1021. if v:IsA("Trail") then
  1022. v.Enabled = true
  1023. end
  1024. end
  1025. clerp(RS, RSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
  1026. clerp(LS, LSnor * CFrame.new(0, -0.5 + 0.05 * Cos(sine / 7), -0.25) * CFrame.Angles(0, 0, 0), 0.15)
  1027. clerp(RH, RHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 + 4.25 * Cos(sine / 0.25)) * CFrame.Angles(0, 0, 0), 0.15)
  1028. clerp(LH, LHnor * CFrame.new(0, -0.5 - 0.75 * Cos(sine / 2), 0 - 4.25 * Cos(sine / 0.25)) * CFrame.Angles(0, 0, 0), 0.15)
  1029. clerp(rootj, rootjnor * CFrame.new(0, 0 + 0.05 * Cos(sine / 7), 0) * CFrame.Angles(0.45, 0, 0), 0.15)
  1030. end
  1031. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement