Advertisement
Christoffer07700Extr

FE Soda

Jul 20th, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.54 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running...")
  167.  
  168. --//====================================================\\--
  169. --|| CREATED BY SHACKLUSTER
  170. --\\====================================================//--
  171.  
  172.  
  173.  
  174. wait(0.2)
  175.  
  176.  
  177.  
  178. Player = game:GetService("Players").LocalPlayer
  179. PlayerGui = Player.PlayerGui
  180. Cam = workspace.CurrentCamera
  181. Backpack = Player.Backpack
  182. Character = Player.Character
  183. Humanoid = Character.Humanoid
  184. Mouse = Player:GetMouse()
  185. RootPart = Character["HumanoidRootPart"]
  186. Torso = Character["Torso"]
  187. Head = Character["Head"]
  188. RightArm = Character["Right Arm"]
  189. LeftArm = Character["Left Arm"]
  190. RightLeg = Character["Right Leg"]
  191. LeftLeg = Character["Left Leg"]
  192. RootJoint = RootPart["RootJoint"]
  193. Neck = Torso["Neck"]
  194. RightShoulder = Torso["Right Shoulder"]
  195. LeftShoulder = Torso["Left Shoulder"]
  196. RightHip = Torso["Right Hip"]
  197. LeftHip = Torso["Left Hip"]
  198.  
  199. IT = Instance.new
  200. CF = CFrame.new
  201. VT = Vector3.new
  202. RAD = math.rad
  203. C3 = Color3.new
  204. UD2 = UDim2.new
  205. BRICKC = BrickColor.new
  206. ANGLES = CFrame.Angles
  207. EULER = CFrame.fromEulerAnglesXYZ
  208. COS = math.cos
  209. ACOS = math.acos
  210. SIN = math.sin
  211. ASIN = math.asin
  212. ABS = math.abs
  213. MRANDOM = math.random
  214. FLOOR = math.floor
  215.  
  216. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  217. local NEWMESH = IT(MESH)
  218. if MESH == "SpecialMesh" then
  219. NEWMESH.MeshType = MESHTYPE
  220. if MESHID ~= "nil" and MESHID ~= "" then
  221. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=10470609"
  222. end
  223. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  224. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=10470600"
  225. end
  226. end
  227. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  228. NEWMESH.Scale = SCALE
  229. NEWMESH.Parent = PARENT
  230. return NEWMESH
  231. end
  232.  
  233. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  234. local NEWPART = IT("Part")
  235. NEWPART.formFactor = FORMFACTOR
  236. NEWPART.Reflectance = REFLECTANCE
  237. NEWPART.Transparency = TRANSPARENCY
  238. NEWPART.CanCollide = false
  239. NEWPART.Locked = true
  240. NEWPART.Anchored = true
  241. if ANCHOR == false then
  242. NEWPART.Anchored = false
  243. end
  244. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  245. NEWPART.Name = NAME
  246. NEWPART.Size = SIZE
  247. NEWPART.Position = Torso.Position
  248. NEWPART.Material = MATERIAL
  249. NEWPART:BreakJoints()
  250. NEWPART.Parent = PARENT
  251. return NEWPART
  252. end
  253.  
  254. --//=================================\\
  255. --|| CUSTOMIZATION
  256. --\\=================================//
  257.  
  258. Class_Name = "SODA"
  259. Weapon_Name = "Add-ons"
  260.  
  261. Custom_Colors = {
  262. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  263. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  264.  
  265. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  266. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  267. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  268. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  269. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  270.  
  271. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  272. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  273. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  274. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  275. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  276. }
  277.  
  278.  
  279. Player_Size = 1 --Size of the player.
  280. Animation_Speed = 3
  281. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  282.  
  283. local Speed = 16
  284. local Effects2 = {}
  285.  
  286. --//=================================\\
  287. --|| END OF CUSTOMIZATION
  288. --\\=================================//
  289.  
  290. local function weldBetween(a, b)
  291. local weldd = Instance.new("ManualWeld")
  292. weldd.Part0 = a
  293. weldd.Part1 = b
  294. weldd.C0 = CFrame.new()
  295. weldd.C1 = b.CFrame:inverse() * a.CFrame
  296. weldd.Parent = a
  297. return weldd
  298. end
  299.  
  300. --//=================================\\
  301. --|| USEFUL VALUES
  302. --\\=================================//
  303.  
  304. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  305. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  306. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  307. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  308. local CHANGEDEFENSE = 0
  309. local CHANGEDAMAGE = 0
  310. local CHANGEMOVEMENT = 0
  311. local ANIM = "Idle"
  312. local ATTACK = false
  313. local EQUIPPED = false
  314. local HOLD = false
  315. local COMBO = 1
  316. local Rooted = false
  317. local SINE = 0
  318. local KEYHOLD = false
  319. local CHANGE = 2 / Animation_Speed
  320. local WALKINGANIM = false
  321. local WALK = 0
  322. local VALUE1 = false
  323. local VALUE2 = false
  324. local ROBLOXIDLEANIMATION = IT("Animation")
  325. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  326. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  327. --ROBLOXIDLEANIMATION.Parent = Humanoid
  328. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  329. WEAPONGUI.Name = "Weapon GUI"
  330. local Weapon = IT("Model")
  331. Weapon.Name = Weapon_Name
  332. local Effects = IT("Folder", Weapon)
  333. Effects.Name = "Effects"
  334. local ANIMATOR = Humanoid.Animator
  335. local ANIMATE = Character.Animate
  336. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  337. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  338. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  339. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  340. local UNANCHOR = true
  341.  
  342. local SKILLTEXTCOLOR = BRICKC"Burnt Sienna".Color
  343. --//=================================\\
  344. --\\=================================//
  345.  
  346.  
  347. --//=================================\\
  348. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  349. --\\=================================//
  350.  
  351. ArtificialHB = Instance.new("BindableEvent", script)
  352. ArtificialHB.Name = "ArtificialHB"
  353.  
  354. script:WaitForChild("ArtificialHB")
  355.  
  356. frame = Frame_Speed
  357. tf = 0
  358. allowframeloss = false
  359. tossremainder = false
  360. lastframe = tick()
  361. script.ArtificialHB:Fire()
  362.  
  363. game:GetService("RunService").Heartbeat:connect(function(s, p)
  364. tf = tf + s
  365. if tf >= frame then
  366. if allowframeloss then
  367. script.ArtificialHB:Fire()
  368. lastframe = tick()
  369. else
  370. for i = 1, math.floor(tf / frame) do
  371. script.ArtificialHB:Fire()
  372. end
  373. lastframe = tick()
  374. end
  375. if tossremainder then
  376. tf = 0
  377. else
  378. tf = tf - frame * math.floor(tf / frame)
  379. end
  380. end
  381. end)
  382.  
  383. --//=================================\\
  384. --\\=================================//
  385.  
  386.  
  387.  
  388.  
  389.  
  390. --//=================================\\
  391. --|| SOME FUNCTIONS
  392. --\\=================================//
  393.  
  394. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  395. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  396. end
  397.  
  398. function PositiveAngle(NUMBER)
  399. if NUMBER >= 0 then
  400. NUMBER = 0
  401. end
  402. return NUMBER
  403. end
  404.  
  405. function NegativeAngle(NUMBER)
  406. if NUMBER <= 0 then
  407. NUMBER = 0
  408. end
  409. return NUMBER
  410. end
  411.  
  412. function Swait(NUMBER)
  413. if NUMBER == 0 or NUMBER == nil then
  414. ArtificialHB.Event:wait()
  415. else
  416. for i = 1, NUMBER do
  417. ArtificialHB.Event:wait()
  418. end
  419. end
  420. end
  421.  
  422. function QuaternionFromCFrame(cf)
  423. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  424. local trace = m00 + m11 + m22
  425. if trace > 0 then
  426. local s = math.sqrt(1 + trace)
  427. local recip = 0.5 / s
  428. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  429. else
  430. local i = 0
  431. if m11 > m00 then
  432. i = 1
  433. end
  434. if m22 > (i == 0 and m00 or m11) then
  435. i = 2
  436. end
  437. if i == 0 then
  438. local s = math.sqrt(m00 - m11 - m22 + 1)
  439. local recip = 0.5 / s
  440. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  441. elseif i == 1 then
  442. local s = math.sqrt(m11 - m22 - m00 + 1)
  443. local recip = 0.5 / s
  444. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  445. elseif i == 2 then
  446. local s = math.sqrt(m22 - m00 - m11 + 1)
  447. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  448. end
  449. end
  450. end
  451.  
  452. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  453. local xs, ys, zs = x + x, y + y, z + z
  454. local wx, wy, wz = w * xs, w * ys, w * zs
  455. local xx = x * xs
  456. local xy = x * ys
  457. local xz = x * zs
  458. local yy = y * ys
  459. local yz = y * zs
  460. local zz = z * zs
  461. 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))
  462. end
  463.  
  464. function QuaternionSlerp(a, b, t)
  465. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  466. local startInterp, finishInterp;
  467. if cosTheta >= 0.0001 then
  468. if (1 - cosTheta) > 0.0001 then
  469. local theta = ACOS(cosTheta)
  470. local invSinTheta = 1 / SIN(theta)
  471. startInterp = SIN((1 - t) * theta) * invSinTheta
  472. finishInterp = SIN(t * theta) * invSinTheta
  473. else
  474. startInterp = 1 - t
  475. finishInterp = t
  476. end
  477. else
  478. if (1 + cosTheta) > 0.0001 then
  479. local theta = ACOS(-cosTheta)
  480. local invSinTheta = 1 / SIN(theta)
  481. startInterp = SIN((t - 1) * theta) * invSinTheta
  482. finishInterp = SIN(t * theta) * invSinTheta
  483. else
  484. startInterp = t - 1
  485. finishInterp = t
  486. end
  487. end
  488. 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
  489. end
  490.  
  491. function Clerp(a, b, t)
  492. local qa = {QuaternionFromCFrame(a)}
  493. local qb = {QuaternionFromCFrame(b)}
  494. local ax, ay, az = a.x, a.y, a.z
  495. local bx, by, bz = b.x, b.y, b.z
  496. local _t = 1 - t
  497. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  498. end
  499.  
  500. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  501. local frame = IT("Frame")
  502. frame.BackgroundTransparency = TRANSPARENCY
  503. frame.BorderSizePixel = BORDERSIZEPIXEL
  504. frame.Position = POSITION
  505. frame.Size = SIZE
  506. frame.BackgroundColor3 = COLOR
  507. frame.BorderColor3 = BORDERCOLOR
  508. frame.Name = NAME
  509. frame.Parent = PARENT
  510. return frame
  511. end
  512.  
  513. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  514. local label = IT("TextLabel")
  515. label.BackgroundTransparency = 1
  516. label.Size = UD2(1, 0, 1, 0)
  517. label.Position = UD2(0, 0, 0, 0)
  518. label.TextColor3 = TEXTCOLOR
  519. label.TextStrokeTransparency = STROKETRANSPARENCY
  520. label.TextTransparency = TRANSPARENCY
  521. label.FontSize = TEXTFONTSIZE
  522. label.Font = TEXTFONT
  523. label.BorderSizePixel = BORDERSIZEPIXEL
  524. label.TextScaled = false
  525. label.Text = TEXT
  526. label.Name = NAME
  527. label.Parent = PARENT
  528. return label
  529. end
  530.  
  531. function NoOutlines(PART)
  532. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  533. end
  534.  
  535.  
  536. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  537. local NEWWELD = IT(TYPE)
  538. NEWWELD.Part0 = PART0
  539. NEWWELD.Part1 = PART1
  540. NEWWELD.C0 = C0
  541. NEWWELD.C1 = C1
  542. NEWWELD.Parent = PARENT
  543. return NEWWELD
  544. end
  545.  
  546. function CreateSound(ID, PARENT, VOLUME, PITCH)
  547. local NEWSOUND = nil
  548. coroutine.resume(coroutine.create(function()
  549. NEWSOUND = IT("Sound", PARENT)
  550. NEWSOUND.Volume = VOLUME
  551. NEWSOUND.Pitch = PITCH
  552. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  553. Swait()
  554. NEWSOUND:play()
  555. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  556. end))
  557. return NEWSOUND
  558. end
  559.  
  560. function CFrameFromTopBack(at, top, back)
  561. local right = top:Cross(back)
  562. 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)
  563. end
  564.  
  565. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  566. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  567. local mesh = IT("SpecialMesh",wave)
  568. mesh.MeshType = "FileMesh"
  569. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  570. mesh.Scale = SIZE
  571. mesh.Offset = VT(0,0,-SIZE.X/8)
  572. wave.CFrame = CFRAME
  573. coroutine.resume(coroutine.create(function(PART)
  574. for i = 1, WAIT do
  575. Swait()
  576. mesh.Scale = mesh.Scale + GROW
  577. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  578. if DOESROT == true then
  579. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  580. end
  581. wave.Transparency = wave.Transparency + (0.5/WAIT)
  582. if wave.Transparency > 0.99 then
  583. wave:remove()
  584. end
  585. end
  586. end))
  587. end
  588.  
  589. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  590. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  591. local mesh = IT("SpecialMesh",wave)
  592. mesh.MeshType = "FileMesh"
  593. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  594. mesh.Scale = SIZE
  595. mesh.Offset = VT(0,0,-SIZE.X/8)
  596. wave.CFrame = CFRAME
  597. coroutine.resume(coroutine.create(function(PART)
  598. for i = 1, WAIT do
  599. Swait()
  600. mesh.Scale = mesh.Scale + GROW
  601. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  602. if DOESROT == true then
  603. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  604. end
  605. wave.Transparency = wave.Transparency + (0.5/WAIT)
  606. if wave.Transparency > 0.99 then
  607. wave:remove()
  608. end
  609. end
  610. end))
  611. end
  612.  
  613. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  614. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  615. local mesh = IT("SpecialMesh",wave)
  616. mesh.MeshType = "FileMesh"
  617. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  618. mesh.Scale = SIZE
  619. wave.CFrame = CFRAME
  620. coroutine.resume(coroutine.create(function(PART)
  621. for i = 1, WAIT do
  622. Swait()
  623. mesh.Scale = mesh.Scale + GROW
  624. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  625. if DOESROT == true then
  626. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  627. end
  628. wave.Transparency = wave.Transparency + (0.5/WAIT)
  629. if wave.Transparency > 0.99 then
  630. wave:remove()
  631. end
  632. end
  633. end))
  634. end
  635.  
  636. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  637. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  638. local mesh = IT("SpecialMesh",wave)
  639. mesh.MeshType = "Sphere"
  640. mesh.Scale = SIZE
  641. mesh.Offset = VT(0,0,0)
  642. wave.CFrame = CFRAME
  643. coroutine.resume(coroutine.create(function(PART)
  644. for i = 1, WAIT do
  645. Swait()
  646. mesh.Scale = mesh.Scale + GROW
  647. wave.Transparency = wave.Transparency + (1/WAIT)
  648. if wave.Transparency > 0.99 then
  649. wave:remove()
  650. end
  651. end
  652. end))
  653. end
  654.  
  655. function MakeForm(PART,TYPE)
  656. if TYPE == "Cyl" then
  657. local MSH = IT("CylinderMesh",PART)
  658. elseif TYPE == "Ball" then
  659. local MSH = IT("SpecialMesh",PART)
  660. MSH.MeshType = "Sphere"
  661. elseif TYPE == "Wedge" then
  662. local MSH = IT("SpecialMesh",PART)
  663. MSH.MeshType = "Wedge"
  664. end
  665. end
  666.  
  667. function CheckTableForString(Table, String)
  668. for i, v in pairs(Table) do
  669. if string.find(string.lower(String), string.lower(v)) then
  670. return true
  671. end
  672. end
  673. return false
  674. end
  675.  
  676. function CheckIntangible(Hit)
  677. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  678. if Hit and Hit.Parent then
  679. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  680. return true
  681. end
  682. end
  683. return false
  684. end
  685.  
  686. Debris = game:GetService("Debris")
  687.  
  688. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  689. local Direction = CFrame.new(StartPos, Vec).lookVector
  690. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  691. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  692. if RayHit and CheckIntangible(RayHit) then
  693. if DelayIfHit then
  694. wait()
  695. end
  696. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  697. end
  698. return RayHit, RayPos, RayNormal
  699. end
  700.  
  701. function turnto(position)
  702. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  703. end
  704.  
  705. --//=================================\\
  706. --|| SPEECH
  707. --\\=================================//
  708.  
  709. function chatfunc(text,waitt)
  710. local chat = coroutine.wrap(function()
  711. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  712. Character:FindFirstChild("TalkingBillBoard"):destroy()
  713. end
  714. local naeeym2 = Instance.new("BillboardGui",Character)
  715. naeeym2.Size = UDim2.new(0,100,0,40)
  716. naeeym2.StudsOffset = Vector3.new(0,5,0)
  717. naeeym2.Adornee = Character.Head
  718. naeeym2.Name = "TalkingBillBoard"
  719. naeeym2.AlwaysOnTop = true
  720. local tecks2 = Instance.new("TextLabel",naeeym2)
  721. tecks2.BackgroundTransparency = 1
  722. tecks2.BorderSizePixel = 0
  723. tecks2.Text = ""
  724. tecks2.Font = "SciFi"
  725. tecks2.TextSize = 30
  726. tecks2.TextStrokeTransparency = 1
  727. tecks2.TextColor3 = SKILLTEXTCOLOR
  728. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  729. tecks2.Size = UDim2.new(1,0,0.5,0)
  730. for i = 1,string.len(text),1 do
  731. tecks2.Text = string.sub(text,1,i)
  732. Swait()
  733. end
  734. wait(waitt)
  735. coroutine.resume(coroutine.create(function()
  736. for i = 1, 10 do
  737. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  738. Swait()
  739. end
  740. naeeym2:Destroy()
  741. end))
  742. end)
  743. chat()
  744. end
  745.  
  746. --//=================================\\
  747. --|| WEAPON CREATION
  748. --\\=================================//
  749.  
  750. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  751. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh","278481996", "278481996", VT(1,1,1), VT(0,0,0))
  752. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  753.  
  754. for _, c in pairs(Weapon:GetChildren()) do
  755. if c.ClassName == "Part" then
  756. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  757. end
  758. end
  759.  
  760. Weapon.Parent = Character
  761.  
  762. Humanoid.Died:connect(function()
  763. ATTACK = true
  764. end)
  765.  
  766. print(Class_Name.." loaded.")
  767.  
  768. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  769. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  770. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  771.  
  772. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Soda rush", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 1")
  773. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Soda bomb", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 2")
  774. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] SO-DAH NOOK", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 1, "Text 3")
  775.  
  776. --//=================================\\
  777. --|| DAMAGING
  778. --\\=================================//
  779.  
  780. function killnearest(position,range,maxstrength)
  781. for i,v in ipairs(workspace:GetChildren()) do
  782. local body = v:GetChildren()
  783. for part = 1, #body do
  784. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  785. if(body[part].Position - position).Magnitude < range then
  786. if v.ClassName == "Model" then
  787. v:BreakJoints()
  788. end
  789. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  790. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  791. end
  792. end
  793. end
  794. if v.ClassName == "Part" then
  795. if v.Anchored == false and (v.Position - position).Magnitude < range then
  796. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  797. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  798. end
  799. end
  800. end
  801. end
  802.  
  803. --//=================================\\
  804. --|| ATTACK FUNCTIONS AND STUFF
  805. --\\=================================//
  806.  
  807. function Drincc()
  808. ATTACK = true
  809. Rooted = true
  810. for i=0, 1, 0.1 / Animation_Speed do
  811. Swait()
  812. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  813. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  814. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  815. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  816. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  817. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  818. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  819. end
  820. if MRANDOM(1,5) == 1 then
  821. CreateSound("1107256445", Effects, 10, 1)
  822. CreateSound("1107256445", Effects, 10, 1)
  823. CreateSound("1107256445", Effects, 10, 1)
  824. CreateSound("1107256445", Effects, 10, 1)
  825. Swait(200)
  826. CreateSound("363808674", Torso, 10, 1.3)
  827. for i=0, 10, 0.1 / Animation_Speed do
  828. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  829. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  830. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  831. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  832. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  833. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  834. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  835. end
  836. Swait(150)
  837. chatfunc("What is in this soda",2)
  838. Swait(200)
  839. else
  840. CreateSound("399762682", Torso, 4, 1)
  841. Swait(150)
  842. for i=0, 1.3, 0.1 / Animation_Speed do
  843. Swait()
  844. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  845. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  846. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  847. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  848. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  849. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  850. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  851. end
  852. for i=0, 1.3, 0.1 / Animation_Speed do
  853. Swait()
  854. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  855. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.25 / Animation_Speed)
  856. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  857. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  858. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  859. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  860. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  861. end
  862. end
  863. ATTACK = false
  864. Rooted = false
  865. end
  866.  
  867. function SodaRush()
  868. Rooted = true
  869. ATTACK = true
  870. local soundeffect = IT("Sound",HandlePart)
  871. soundeffect.SoundId = "rbxassetid://188703219"
  872. soundeffect.Looped = true
  873. soundeffect.Volume = 10
  874. soundeffect.Playing = true
  875. for i=0, 2, 0.1 / Animation_Speed do
  876. Swait()
  877. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  878. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  879. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90 - 75 * SIN(SINE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  880. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  881. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  882. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  883. end
  884. soundeffect:remove()
  885. Swait()
  886. for i=0, 2, 0.1 / Animation_Speed do
  887. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.15 / Animation_Speed)
  888. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  889. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  890. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  891. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  892. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  893. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90-45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  894. end
  895. CreateSound("907668984", HandlePart, 10, 2)
  896. for i = 1, 85 do
  897. Swait()
  898. turnto(Mouse.Hit.p)
  899. MagicSphere(VT(2,2,2),15,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  900. MagicSphere(VT(1,1,1),25,CF(HandlePart.Position),"Reddish brown",VT(-1/25,-1/25,-1/25))
  901. RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
  902. killnearest(Torso.Position,5,75)
  903. end
  904. for i=0, 2, 0.1 / Animation_Speed do
  905. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  906. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  907. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  908. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  909. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  910. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  911. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  912. end
  913. ATTACK = false
  914. Rooted = false
  915. end
  916.  
  917. function clerp(a, b, t)
  918. return a:lerp(b, t)
  919. end
  920.  
  921. function newBezier(startpos, pos2, pos3, endpos, t)
  922. local A = clerp(startpos, pos2, t)
  923. local B = clerp(pos2, pos3, t)
  924. local C = clerp(pos3, endpos, t)
  925. local lerp1 = clerp(A, B, t)
  926. local lerp2 = clerp(B, C, t)
  927. local cubic = clerp(lerp1, lerp2, t)
  928. return cubic
  929. end
  930.  
  931. function SodaBomb()
  932. Rooted = true
  933. ATTACK = true
  934. local soundeffect = IT("Sound",HandlePart)
  935. soundeffect.SoundId = "rbxassetid://188703219"
  936. soundeffect.Looped = true
  937. soundeffect.Volume = 10
  938. soundeffect.Playing = true
  939. for i=0, 1.5, 0.1 / Animation_Speed do
  940. Swait()
  941. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  942. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  943. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90 - 75 * SIN(SINE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  944. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  945. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  946. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  947. end
  948. soundeffect:remove()
  949. local BOMB = HandlePart:Clone()
  950. BOMB.Parent = Effects
  951. BOMB.Size = VT(1,1,1)
  952. BOMB.CanCollide = true
  953. HandlePart.Transparency = 1
  954. CreateSound("907668984", BOMB, 10, 2)
  955. local WELD = weldBetween(RightArm,BOMB)
  956. for i=0, 2, 0.1 / Animation_Speed do
  957. Swait()
  958. turnto(Mouse.Hit.p)
  959. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  960. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  961. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  962. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  963. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  964. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  965. end
  966. for i=0, 0.1, 0.1 / Animation_Speed do
  967. Swait()
  968. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1)
  969. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 1)
  970. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  971. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  972. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  973. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  974. end
  975. CreateSound("1112042117", BOMB, 10, 1)
  976. WELD:remove()
  977. local ROCK = BOMB
  978. local POS = ROCK.Position
  979. ROCK.Anchored = true
  980. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  981. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  982. for i = 0, 1, 0.07 do
  983. Swait()
  984. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  985. end
  986. ROCK.Anchored = false
  987. ROCK.CanCollide = true
  988. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Reddish brown",VT(3,0.2,3),0.5)
  989. MagicSphere(VT(1,1,1),25,CF(ROCK.Position),"Pine Cone",VT(3,3,3))
  990. MagicSphere(VT(0.5,0.5,0.5),25,CF(ROCK.Position),"Reddish brown",VT(3,3,3))
  991. killnearest(ROCK.Position,25,35)
  992. ROCK.Anchored = true
  993. ROCK.CanCollide = false
  994. ROCK.Transparency = 1
  995. CreateSound("691216625", ROCK, 10, 2)
  996. Debris:AddItem(ROCK,5)
  997. for i=0, 1.6, 0.1 / Animation_Speed do
  998. Swait()
  999. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 1)
  1000. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 1)
  1001. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  1002. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  1003. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  1004. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  1005. end
  1006. Swait(15)
  1007. HandlePart.Transparency = 0
  1008. ATTACK = false
  1009. Rooted = false
  1010. end
  1011.  
  1012. function SodaNOOK()
  1013. Rooted = true
  1014. ATTACK = true
  1015. chatfunc("OH LAWDY WE BLEW UP!",5)
  1016. local soundeffect = IT("Sound",HandlePart)
  1017. soundeffect.SoundId = "rbxassetid://188703219"
  1018. soundeffect.Looped = true
  1019. soundeffect.Volume = 10
  1020. soundeffect.Playing = true
  1021. for i=0, 25, 0.1 / Animation_Speed do
  1022. Swait()
  1023. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1024. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1025. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90 - 120 * SIN(SINE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1026. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1027. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1028. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1029. end
  1030. soundeffect:remove()
  1031. Character:BreakJoints()
  1032. local Explosion = IT("Explosion",Effects)
  1033. Explosion.Position = HandlePart.Position
  1034. Explosion.BlastPressure = 5000000
  1035. local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0))
  1036. PRT.CanCollide = false
  1037. PRT.CFrame = CF(HandlePart.Position)
  1038. Debris:AddItem(PRT,10)
  1039. CreateSound("2248511", Effects, 10, 0.2)
  1040. MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"Pine Cone",VT(6,2,6))
  1041. MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Reddish brown",VT(6,2,6))
  1042. MagicSphere(VT(5,5,5),250,PRT.CFrame,"Pine Cone",VT(5,15,5))
  1043. MagicSphere(VT(4,4,4),250,PRT.CFrame,"Reddish brown",VT(5,15,5))
  1044. CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"Reddish brown",VT(5,1,5))
  1045. CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6))
  1046. CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3))
  1047. for i = 1, 250 do
  1048. Swait()
  1049. killnearest(PRT.Position,750000,75)
  1050. end
  1051. ATTACK = false
  1052. Rooted = false
  1053. end
  1054.  
  1055. --//=================================\\
  1056. --|| ASSIGN THINGS TO KEYS
  1057. --\\=================================//
  1058.  
  1059. function MouseDown(Mouse)
  1060. if ATTACK == false then
  1061. end
  1062. end
  1063.  
  1064. function MouseUp(Mouse)
  1065. HOLD = false
  1066. end
  1067.  
  1068. function KeyDown(Key)
  1069. KEYHOLD = true
  1070. if Rooted == false then
  1071. if Key == "z" and ATTACK == false then
  1072. SodaRush()
  1073. end
  1074.  
  1075. if Key == "b" and ATTACK == false then
  1076. SodaBomb()
  1077. end
  1078.  
  1079. if Key == "c" and ATTACK == false then
  1080. SodaNOOK()
  1081. end
  1082.  
  1083. if Key == "t" and ATTACK == false then
  1084. Drincc()
  1085. end
  1086. end
  1087. end
  1088.  
  1089. function KeyUp(Key)
  1090. KEYHOLD = false
  1091. end
  1092.  
  1093. Mouse.Button1Down:connect(function(NEWKEY)
  1094. MouseDown(NEWKEY)
  1095. end)
  1096. Mouse.Button1Up:connect(function(NEWKEY)
  1097. MouseUp(NEWKEY)
  1098. end)
  1099. Mouse.KeyDown:connect(function(NEWKEY)
  1100. KeyDown(NEWKEY)
  1101. end)
  1102. Mouse.KeyUp:connect(function(NEWKEY)
  1103. KeyUp(NEWKEY)
  1104. end)
  1105.  
  1106. --//=================================\\
  1107. --\\=================================//
  1108.  
  1109.  
  1110. function unanchor()
  1111. if UNANCHOR == true then
  1112. g = Character:GetChildren()
  1113. for i = 1, #g do
  1114. if g[i].ClassName == "Part" then
  1115. g[i].Anchored = false
  1116. end
  1117. end
  1118. end
  1119. end
  1120.  
  1121.  
  1122. --//=================================\\
  1123. --|| WRAP THE WHOLE SCRIPT UP
  1124. --\\=================================//
  1125.  
  1126. Humanoid.Changed:connect(function(Jump)
  1127. if Jump == "Jump" and (Disable_Jump == true) then
  1128. Humanoid.Jump = false
  1129. end
  1130. end)
  1131.  
  1132. while true do
  1133. Swait()
  1134. ANIMATE.Parent = nil
  1135. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1136. IDLEANIMATION:Play()
  1137. SINE = SINE + CHANGE
  1138. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1139. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1140. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1141. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1142. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1143. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1144. ANIM = "Jump"
  1145. if ATTACK == false then
  1146. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1147. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1148. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1149. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1150. 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)
  1151. 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)
  1152. end
  1153. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1154. ANIM = "Fall"
  1155. if ATTACK == false then
  1156. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1157. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1158. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1159. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1160. 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)
  1161. 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)
  1162. end
  1163. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1164. ANIM = "Idle"
  1165. if ATTACK == false then
  1166. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1167. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1168. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1169. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1170. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1171. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1172. end
  1173. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1174. ANIM = "Walk"
  1175. WALK = WALK + 1 / Animation_Speed
  1176. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1177. WALK = 0
  1178. if WALKINGANIM == true then
  1179. WALKINGANIM = false
  1180. elseif WALKINGANIM == false then
  1181. WALKINGANIM = true
  1182. end
  1183. end
  1184. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1185. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1186. if ATTACK == false then
  1187. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1188. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1189. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1190. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1191. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-60 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1192. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-60 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1193. end
  1194. end
  1195. if #Effects2>0 then
  1196. for e=1,#Effects2 do
  1197. if Effects2[e]~=nil then
  1198. local Thing=Effects2[e]
  1199. if Thing~=nil then
  1200. local Part=Thing[1]
  1201. local Mode=Thing[2]
  1202. local Delay=Thing[3]
  1203. local IncX=Thing[4]
  1204. local IncY=Thing[5]
  1205. local IncZ=Thing[6]
  1206. local Part2=Thing[8]
  1207. if Thing[1].Transparency<=1 then
  1208. if Thing[2]=="Block1" then
  1209. Thing[1].CFrame=Thing[1].CFrame
  1210. Mesh=Thing[1].Mesh
  1211. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1212. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1213. elseif Thing[2]=="Cylinder" then
  1214. Mesh=Thing[1].Mesh
  1215. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1216. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1217. elseif Thing[2]=="Blood" then
  1218. Mesh=Thing[7]
  1219. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1220. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1221. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1222. elseif Thing[2]=="Elec" then
  1223. Mesh=Thing[1].Mesh
  1224. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1225. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1226. elseif Thing[2]=="Disappear" then
  1227. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1228. end
  1229. else
  1230. Part.Parent=nil
  1231. table.remove(Effects2,e)
  1232. end
  1233. end
  1234. end
  1235. end
  1236. end
  1237. unanchor()
  1238. Humanoid.MaxHealth = "inf"
  1239. Humanoid.Health = "inf"
  1240. if Rooted == false then
  1241. Disable_Jump = false
  1242. Humanoid.WalkSpeed = Speed
  1243. elseif Rooted == true then
  1244. Disable_Jump = true
  1245. Humanoid.WalkSpeed = 0
  1246. end
  1247. end
  1248.  
  1249. --//=================================\\
  1250. --\\=================================//
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256. --//====================================================\\--
  1257. --|| END OF SCRIPT
  1258. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement