Advertisement
SonicrixLP

Untitled

Jul 23rd, 2018
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --=================================================>
  2. --= CREATED BY ADAM222334II
  3. --=================================================>
  4.  
  5. print([[
  6. __________________________________________________________
  7.  
  8. Milk Thrower
  9. This script is made by adam222334II - Idea from sans_th3
  10. Before using, Please keep these facts in your mind :
  11. 1. Very fun to use, if you know how to use this. It can be very abusive
  12. 2. This script has a whitelist. So don't even think about sharing or giving
  13. it to someone >:)
  14. 3. To all those people who wants this. Do not think about it :D
  15. 4. Enjoy the script god dammit
  16. 5. All function are included INSIDE the script.
  17. __________________________________________________________
  18. ]])
  19.  
  20. -----START SCRIPT------
  21. local sick = Instance.new("Sound",Character)
  22. sick.SoundId = "rbxassetid://135156539"
  23. sick.Looped = true
  24. sick.Pitch = 1
  25. sick.Volume = 6
  26. sick:Resume()
  27. sick.Parent = Torso
  28. m = game.Players.LocalPlayer
  29. char = m.Character
  30. local txt = Instance.new("BillboardGui", char)
  31. txt.Adornee = char .Head
  32. txt.Name = "_status"
  33. txt.Size = UDim2.new(2, 0, 1.2, 0)
  34. txt.StudsOffset = Vector3.new(-9, 8, 0)
  35. local text = Instance.new("TextLabel", txt)
  36. text.Size = UDim2.new(10, 0, 7, 0)
  37. text.FontSize = "Size10"
  38. text.TextScaled = true
  39. text.TextTransparency = 0
  40. text.BackgroundTransparency = 1
  41. text.TextTransparency = 0
  42. text.TextStrokeTransparency = 0
  43. text.Font = "Cartoon"
  44. text.TextStrokeColor3 = Color3.new(0,0,0)
  45.  
  46. v=Instance.new("Part")
  47. v.Name = "ColorBrick"
  48. v.Parent=m.Character
  49. v.FormFactor="Symmetric"
  50. v.Anchored=true
  51. v.CanCollide=false
  52. v.BottomSurface="Smooth"
  53. v.TopSurface="Smooth"
  54. v.Size=Vector3.new(10,5,3)
  55. v.Transparency=1
  56. v.CFrame=char.Torso.CFrame
  57. v.BrickColor=BrickColor.new("Really black")
  58. v.Transparency=1
  59. text.TextColor3 = Color3.new(255,0,255)
  60. v.Shape="Block"
  61. text.Text = "Milk Shaker"
  62.  
  63. spawn(function()
  64. TweenService = game:GetService("TweenService")
  65. Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(0, 255, 0),Color3.fromRGB(0,0,255)}
  66. Int = 0
  67. while wait(0.8) do
  68. if Int == #Colours then Int = 0 end
  69. Int = Int+1
  70. TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  71. end
  72. end)
  73. -------FORCEFIELD-------
  74. ff = Instance.new("ForceField",char)
  75. ff.Visible = false
  76. --------MAIN VALUE-------
  77. Player = game:GetService("Players").LocalPlayer
  78. PlayerGui = Player.PlayerGui
  79. Cam = workspace.CurrentCamera
  80. Backpack = Player.Backpack
  81. Character = Player.Character
  82. Humanoid = Character.Humanoid
  83. Mouse = Player:GetMouse()
  84. RootPart = Character["HumanoidRootPart"]
  85. Torso = Character["Torso"]
  86. Head = Character["Head"]
  87. RightArm = Character["Right Arm"]
  88. LeftArm = Character["Left Arm"]
  89. RightLeg = Character["Right Leg"]
  90. LeftLeg = Character["Left Leg"]
  91. RootJoint = RootPart["RootJoint"]
  92. Neck = Torso["Neck"]
  93. RightShoulder = Torso["Right Shoulder"]
  94. LeftShoulder = Torso["Left Shoulder"]
  95. RightHip = Torso["Right Hip"]
  96. LeftHip = Torso["Left Hip"]
  97.  
  98. IT = Instance.new
  99. CF = CFrame.new
  100. VT = Vector3.new
  101. RAD = math.rad
  102. C3 = Color3.new
  103. UD2 = UDim2.new
  104. BRICKC = BrickColor.new
  105. ANGLES = CFrame.Angles
  106. EULER = CFrame.fromEulerAnglesXYZ
  107. COS = math.cos
  108. ACOS = math.acos
  109. SIN = math.sin
  110. ASIN = math.asin
  111. ABS = math.abs
  112. MRANDOM = math.random
  113. FLOOR = math.floor
  114.  
  115. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  116. local NEWMESH = IT(MESH)
  117. if MESH == "SpecialMesh" then
  118. NEWMESH.MeshType = MESHTYPE
  119. if MESHID ~= "nil" and MESHID ~= "" then
  120. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  121. end
  122. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  123. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  124. end
  125. end
  126. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  127. NEWMESH.Scale = SCALE
  128. NEWMESH.Parent = PARENT
  129. return NEWMESH
  130. end
  131.  
  132. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  133. local NEWPART = IT("Part")
  134. NEWPART.formFactor = FORMFACTOR
  135. NEWPART.Reflectance = REFLECTANCE
  136. NEWPART.Transparency = TRANSPARENCY
  137. NEWPART.CanCollide = false
  138. NEWPART.Locked = true
  139. NEWPART.Anchored = true
  140. if ANCHOR == false then
  141. NEWPART.Anchored = false
  142. end
  143. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  144. NEWPART.Name = NAME
  145. NEWPART.Size = SIZE
  146. NEWPART.Position = Torso.Position
  147. NEWPART.Material = MATERIAL
  148. NEWPART:BreakJoints()
  149. NEWPART.Parent = PARENT
  150. return NEWPART
  151. end
  152. -------CUSTOMIZATION-------This is where you customize the script
  153. Class_Name = "SODA"
  154. Weapon_Name = "Add-ons"
  155.  
  156. Custom_Colors = {
  157. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  158. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  159.  
  160. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  161. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  162. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  163. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  164. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  165.  
  166. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  167. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  168. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  169. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  170. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  171. }
  172.  
  173.  
  174. Player_Size = 1 --Size of the player.
  175. Animation_Speed = 3
  176. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  177.  
  178. local Speed = 16
  179. local Effects2 = {}
  180. -------SOME VALUE--------
  181. local function weldBetween(a, b)
  182. local weldd = Instance.new("ManualWeld")
  183. weldd.Part0 = a
  184. weldd.Part1 = b
  185. weldd.C0 = CFrame.new()
  186. weldd.C1 = b.CFrame:inverse() * a.CFrame
  187. weldd.Parent = a
  188. return weldd
  189. end
  190.  
  191.  
  192. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  193. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  194. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  195. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  196. local CHANGEDEFENSE = 0
  197. local CHANGEDAMAGE = 0
  198. local CHANGEMOVEMENT = 0
  199. local ANIM = "Idle"
  200. local ATTACK = false
  201. local EQUIPPED = false
  202. local HOLD = false
  203. local COMBO = 1
  204. local Rooted = false
  205. local SINE = 0
  206. local KEYHOLD = false
  207. local CHANGE = 2 / Animation_Speed
  208. local WALKINGANIM = false
  209. local WALK = 0
  210. local VALUE1 = false
  211. local VALUE2 = false
  212. local ROBLOXIDLEANIMATION = IT("Animation")
  213. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  214. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  215. --ROBLOXIDLEANIMATION.Parent = Humanoid
  216. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  217. WEAPONGUI.Name = "Weapon GUI"
  218. local Weapon = IT("Model")
  219. Weapon.Name = Weapon_Name
  220. local Effects = IT("Folder", Weapon)
  221. Effects.Name = "Effects"
  222. local ANIMATOR = Humanoid.Animator
  223. local ANIMATE = Character.Animate
  224. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  225. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  226. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  227. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  228. local UNANCHOR = true
  229.  
  230. local SKILLTEXTCOLOR = BRICKC"White".Color
  231. -------HEARTBEAT---------
  232. ArtificialHB = Instance.new("BindableEvent", script)
  233. ArtificialHB.Name = "ArtificialHB"
  234.  
  235. script:WaitForChild("ArtificialHB")
  236.  
  237. frame = Frame_Speed
  238. tf = 0
  239. allowframeloss = false
  240. tossremainder = false
  241. lastframe = tick()
  242. script.ArtificialHB:Fire()
  243.  
  244. game:GetService("RunService").Heartbeat:connect(function(s, p)
  245. tf = tf + s
  246. if tf >= frame then
  247. if allowframeloss then
  248. script.ArtificialHB:Fire()
  249. lastframe = tick()
  250. else
  251. for i = 1, math.floor(tf / frame) do
  252. script.ArtificialHB:Fire()
  253. end
  254. lastframe = tick()
  255. end
  256. if tossremainder then
  257. tf = 0
  258. else
  259. tf = tf - frame * math.floor(tf / frame)
  260. end
  261. end
  262. end)
  263. -------SOME FUNCTION-------
  264. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  265. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  266. end
  267.  
  268. function PositiveAngle(NUMBER)
  269. if NUMBER >= 0 then
  270. NUMBER = 0
  271. end
  272. return NUMBER
  273. end
  274.  
  275. function NegativeAngle(NUMBER)
  276. if NUMBER <= 0 then
  277. NUMBER = 0
  278. end
  279. return NUMBER
  280. end
  281.  
  282. function Swait(NUMBER)
  283. if NUMBER == 0 or NUMBER == nil then
  284. ArtificialHB.Event:wait()
  285. else
  286. for i = 1, NUMBER do
  287. ArtificialHB.Event:wait()
  288. end
  289. end
  290. end
  291.  
  292. function QuaternionFromCFrame(cf)
  293. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  294. local trace = m00 + m11 + m22
  295. if trace > 0 then
  296. local s = math.sqrt(1 + trace)
  297. local recip = 0.5 / s
  298. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  299. else
  300. local i = 0
  301. if m11 > m00 then
  302. i = 1
  303. end
  304. if m22 > (i == 0 and m00 or m11) then
  305. i = 2
  306. end
  307. if i == 0 then
  308. local s = math.sqrt(m00 - m11 - m22 + 1)
  309. local recip = 0.5 / s
  310. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  311. elseif i == 1 then
  312. local s = math.sqrt(m11 - m22 - m00 + 1)
  313. local recip = 0.5 / s
  314. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  315. elseif i == 2 then
  316. local s = math.sqrt(m22 - m00 - m11 + 1)
  317. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  318. end
  319. end
  320. end
  321.  
  322. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  323. local xs, ys, zs = x + x, y + y, z + z
  324. local wx, wy, wz = w * xs, w * ys, w * zs
  325. local xx = x * xs
  326. local xy = x * ys
  327. local xz = x * zs
  328. local yy = y * ys
  329. local yz = y * zs
  330. local zz = z * zs
  331. 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))
  332. end
  333.  
  334. function QuaternionSlerp(a, b, t)
  335. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  336. local startInterp, finishInterp;
  337. if cosTheta >= 0.0001 then
  338. if (1 - cosTheta) > 0.0001 then
  339. local theta = ACOS(cosTheta)
  340. local invSinTheta = 1 / SIN(theta)
  341. startInterp = SIN((1 - t) * theta) * invSinTheta
  342. finishInterp = SIN(t * theta) * invSinTheta
  343. else
  344. startInterp = 1 - t
  345. finishInterp = t
  346. end
  347. else
  348. if (1 + cosTheta) > 0.0001 then
  349. local theta = ACOS(-cosTheta)
  350. local invSinTheta = 1 / SIN(theta)
  351. startInterp = SIN((t - 1) * theta) * invSinTheta
  352. finishInterp = SIN(t * theta) * invSinTheta
  353. else
  354. startInterp = t - 1
  355. finishInterp = t
  356. end
  357. end
  358. 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
  359. end
  360.  
  361. function Clerp(a, b, t)
  362. local qa = {QuaternionFromCFrame(a)}
  363. local qb = {QuaternionFromCFrame(b)}
  364. local ax, ay, az = a.x, a.y, a.z
  365. local bx, by, bz = b.x, b.y, b.z
  366. local _t = 1 - t
  367. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  368. end
  369.  
  370. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  371. local frame = IT("Frame")
  372. frame.BackgroundTransparency = TRANSPARENCY
  373. frame.BorderSizePixel = BORDERSIZEPIXEL
  374. frame.Position = POSITION
  375. frame.Size = SIZE
  376. frame.BackgroundColor3 = COLOR
  377. frame.BorderColor3 = BORDERCOLOR
  378. frame.Name = NAME
  379. frame.Parent = PARENT
  380. return frame
  381. end
  382.  
  383. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  384. local label = IT("TextLabel")
  385. label.BackgroundTransparency = 1
  386. label.Size = UD2(1, 0, 1, 0)
  387. label.Position = UD2(0, 0, 0, 0)
  388. label.TextColor3 = TEXTCOLOR
  389. label.TextStrokeTransparency = STROKETRANSPARENCY
  390. label.TextTransparency = TRANSPARENCY
  391. label.FontSize = TEXTFONTSIZE
  392. label.Font = TEXTFONT
  393. label.BorderSizePixel = BORDERSIZEPIXEL
  394. label.TextScaled = false
  395. label.Text = TEXT
  396. label.Name = NAME
  397. label.Parent = PARENT
  398. return label
  399. end
  400.  
  401. function NoOutlines(PART)
  402. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  403. end
  404.  
  405.  
  406. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  407. local NEWWELD = IT(TYPE)
  408. NEWWELD.Part0 = PART0
  409. NEWWELD.Part1 = PART1
  410. NEWWELD.C0 = C0
  411. NEWWELD.C1 = C1
  412. NEWWELD.Parent = PARENT
  413. return NEWWELD
  414. end
  415.  
  416. function CreateSound(ID, PARENT, VOLUME, PITCH)
  417. local NEWSOUND = nil
  418. coroutine.resume(coroutine.create(function()
  419. NEWSOUND = IT("Sound", PARENT)
  420. NEWSOUND.Volume = VOLUME
  421. NEWSOUND.Pitch = PITCH
  422. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  423. Swait()
  424. NEWSOUND:play()
  425. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  426. end))
  427. return NEWSOUND
  428. end
  429.  
  430. function CFrameFromTopBack(at, top, back)
  431. local right = top:Cross(back)
  432. 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)
  433. end
  434.  
  435. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  436. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  437. local mesh = IT("SpecialMesh",wave)
  438. mesh.MeshType = "FileMesh"
  439. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  440. mesh.Scale = SIZE
  441. mesh.Offset = VT(0,0,-SIZE.X/8)
  442. wave.CFrame = CFRAME
  443. coroutine.resume(coroutine.create(function(PART)
  444. for i = 1, WAIT do
  445. Swait()
  446. mesh.Scale = mesh.Scale + GROW
  447. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  448. if DOESROT == true then
  449. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  450. end
  451. wave.Transparency = wave.Transparency + (0.5/WAIT)
  452. if wave.Transparency > 0.99 then
  453. wave:remove()
  454. end
  455. end
  456. end))
  457. end
  458.  
  459. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  460. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  461. local mesh = IT("SpecialMesh",wave)
  462. mesh.MeshType = "FileMesh"
  463. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  464. mesh.Scale = SIZE
  465. mesh.Offset = VT(0,0,-SIZE.X/8)
  466. wave.CFrame = CFRAME
  467. coroutine.resume(coroutine.create(function(PART)
  468. for i = 1, WAIT do
  469. Swait()
  470. mesh.Scale = mesh.Scale + GROW
  471. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  472. if DOESROT == true then
  473. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  474. end
  475. wave.Transparency = wave.Transparency + (0.5/WAIT)
  476. if wave.Transparency > 0.99 then
  477. wave:remove()
  478. end
  479. end
  480. end))
  481. end
  482.  
  483. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  484. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  485. local mesh = IT("SpecialMesh",wave)
  486. mesh.MeshType = "FileMesh"
  487. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  488. mesh.Scale = SIZE
  489. wave.CFrame = CFRAME
  490. coroutine.resume(coroutine.create(function(PART)
  491. for i = 1, WAIT do
  492. Swait()
  493. mesh.Scale = mesh.Scale + GROW
  494. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  495. if DOESROT == true then
  496. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  497. end
  498. wave.Transparency = wave.Transparency + (0.5/WAIT)
  499. if wave.Transparency > 0.99 then
  500. wave:remove()
  501. end
  502. end
  503. end))
  504. end
  505.  
  506. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  507. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  508. local mesh = IT("SpecialMesh",wave)
  509. mesh.MeshType = "Sphere"
  510. mesh.Scale = SIZE
  511. mesh.Offset = VT(0,0,0)
  512. wave.CFrame = CFRAME
  513. coroutine.resume(coroutine.create(function(PART)
  514. for i = 1, WAIT do
  515. Swait()
  516. mesh.Scale = mesh.Scale + GROW
  517. wave.Transparency = wave.Transparency + (1/WAIT)
  518. if wave.Transparency > 0.99 then
  519. wave:remove()
  520. end
  521. end
  522. end))
  523. end
  524.  
  525. function MakeForm(PART,TYPE)
  526. if TYPE == "Cyl" then
  527. local MSH = IT("CylinderMesh",PART)
  528. elseif TYPE == "Ball" then
  529. local MSH = IT("SpecialMesh",PART)
  530. MSH.MeshType = "Sphere"
  531. elseif TYPE == "Wedge" then
  532. local MSH = IT("SpecialMesh",PART)
  533. MSH.MeshType = "Wedge"
  534. end
  535. end
  536.  
  537. function CheckTableForString(Table, String)
  538. for i, v in pairs(Table) do
  539. if string.find(string.lower(String), string.lower(v)) then
  540. return true
  541. end
  542. end
  543. return false
  544. end
  545.  
  546. function CheckIntangible(Hit)
  547. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  548. if Hit and Hit.Parent then
  549. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  550. return true
  551. end
  552. end
  553. return false
  554. end
  555.  
  556. Debris = game:GetService("Debris")
  557.  
  558. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  559. local Direction = CFrame.new(StartPos, Vec).lookVector
  560. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  561. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  562. if RayHit and CheckIntangible(RayHit) then
  563. if DelayIfHit then
  564. wait()
  565. end
  566. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  567. end
  568. return RayHit, RayPos, RayNormal
  569. end
  570.  
  571. function turnto(position)
  572. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  573. end
  574. -------Skill Frame------Currently blocked to not appear on the screen. Active it by removing --[[ and ]]
  575. --[[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")
  576. 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")
  577. 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")
  578. ]]
  579. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  580. --[[local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Milk Shake", SKILLTEXTCOLOR, 7, "Cartoon", 0, 2, 1, "Text 1")
  581. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Milk Bomb", SKILLTEXTCOLOR, 7, "Cartoon", 0, 2, 1, "Text 2")
  582. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] MILK HARD UHHHH", SKILLTEXTCOLOR, 7, "Cartoon", 0, 2, 1, "Text 3")
  583. ]]
  584. local SKILL3TEXT = CreateLabel(SKILL4FRAME, "[T] Drink the milk jar", SKILLTEXTCOLOR, 7, "Cartoon", 0, 2, 1, "Text 4")
  585. -------WEAPON--------
  586. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  587. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh","923474769", "115340918", VT(1.3,1.3,1.3), VT(0,0,0))
  588. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(-80), RAD(-15)), CF(0, 0, 0))
  589.  
  590. for _, c in pairs(Weapon:GetChildren()) do
  591. if c.ClassName == "Part" then
  592. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  593. end
  594. end
  595.  
  596. Weapon.Parent = Character
  597.  
  598. Humanoid.Died:connect(function()
  599. ATTACK = true
  600. end)
  601. ----------HOW THE SCRIPT DO THE DAMAGE---------------
  602. function killnearest(position,range,maxstrength)
  603. for i,v in ipairs(workspace:GetChildren()) do
  604. local body = v:GetChildren()
  605. for part = 1, #body do
  606. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  607. if(body[part].Position - position).Magnitude < range then
  608. if v.ClassName == "Model" then
  609. v:BreakJoints()
  610. end
  611. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  612. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  613. end
  614. end
  615. end
  616. if v.ClassName == "Part" then
  617. if v.Anchored == false and (v.Position - position).Magnitude < range then
  618. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  619. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  620. end
  621. end
  622. end
  623. end
  624.  
  625. ----------------ATTACKS&MOVES---------------------
  626.  
  627. function Drink()
  628. ATTACK = true
  629. Rooted = true
  630. for i=0, 1, 0.1 / Animation_Speed do
  631. Swait()
  632. 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)
  633. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  634. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(-55)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  635. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  636. 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)
  637. 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)
  638. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  639. end
  640. if MRANDOM(1,5) == 1 then
  641. CreateSound("291394633", Effects, 10, 1)
  642. CreateSound("291394633", Effects, 10, 1)
  643. CreateSound("291394633", Effects, 10, 1)
  644. CreateSound("291394633", Effects, 10, 1)
  645. Swait(200)
  646. CreateSound("363808674", Torso, 10, 1.3)
  647. for i=0, 10, 0.1 / Animation_Speed do
  648. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  649. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  650. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  651. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  652. 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)
  653. 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)
  654. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  655. end
  656. Swait(150)
  657. else
  658. CreateSound("399762682", Torso, 4, 1)
  659. Swait(150)
  660. for i=0, 1.3, 0.1 / Animation_Speed do
  661. Swait()
  662. 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)
  663. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 0.25 / Animation_Speed)
  664. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  665. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  666. 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)
  667. 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)
  668. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  669. end
  670. for i=0, 1.3, 0.1 / Animation_Speed do
  671. Swait()
  672. 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)
  673. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.25 / Animation_Speed)
  674. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  675. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.75) * ANGLES(RAD(90), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  676. 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)
  677. 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)
  678. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  679. end
  680. end
  681. ATTACK = false
  682. Rooted = false
  683. end
  684.  
  685. --[[function MilkShake()
  686. Rooted = true
  687. ATTACK = true
  688. local soundeffect = IT("Sound",HandlePart)
  689. soundeffect.SoundId = "rbxassetid://188703219"
  690. soundeffect.Looped = true
  691. soundeffect.Volume = 10
  692. soundeffect.Playing = true
  693. for i=0, 2, 0.1 / Animation_Speed do
  694. Swait()
  695. 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)
  696. 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)
  697. 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)
  698. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  699. 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)
  700. 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)
  701. end
  702. soundeffect:remove()
  703. Swait()
  704. for i=0, 2, 0.1 / Animation_Speed do
  705. 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)
  706. 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)
  707. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  708. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(45), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  709. 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)
  710. 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)
  711. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90-45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  712. end
  713. CreateSound("907668984", HandlePart, 10, 2)
  714. for i = 1, 85 do
  715. Swait()
  716. turnto(Mouse.Hit.p)
  717. MagicSphere(VT(2,2,2),15,CF(HandlePart.Position),"Really white",VT(-1/25,-1/25,-1/25))
  718. MagicSphere(VT(1,1,1),25,CF(HandlePart.Position),"White",VT(-1/25,-1/25,-1/25))
  719. RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
  720. killnearest(Torso.Position,5,75)
  721. end
  722. for i=0, 2, 0.1 / Animation_Speed do
  723. 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)
  724. 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)
  725. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  726. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  727. 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)
  728. 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)
  729. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  730. end
  731. ATTACK = false
  732. Rooted = false
  733. end
  734.  
  735. function clerp(a, b, t)
  736. return a:lerp(b, t)
  737. end
  738.  
  739. function newBezier(startpos, pos2, pos3, endpos, t)
  740. local A = clerp(startpos, pos2, t)
  741. local B = clerp(pos2, pos3, t)
  742. local C = clerp(pos3, endpos, t)
  743. local lerp1 = clerp(A, B, t)
  744. local lerp2 = clerp(B, C, t)
  745. local cubic = clerp(lerp1, lerp2, t)
  746. return cubic
  747. end
  748.  
  749. function MilkBomb()
  750. Rooted = true
  751. ATTACK = true
  752. local soundeffect = IT("Sound",HandlePart)
  753. soundeffect.SoundId = "rbxassetid://188703219"
  754. soundeffect.Looped = true
  755. soundeffect.Volume = 10
  756. soundeffect.Playing = true
  757. for i=0, 1.5, 0.1 / Animation_Speed do
  758. Swait()
  759. 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)
  760. 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)
  761. 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)
  762. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  763. 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)
  764. 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)
  765. end
  766. soundeffect:remove()
  767. local BOMB = HandlePart:Clone()
  768. BOMB.Parent = Effects
  769. BOMB.Size = VT(1,1,1)
  770. BOMB.CanCollide = true
  771. HandlePart.Transparency = 1
  772. CreateSound("907668984", BOMB, 10, 2)
  773. local WELD = weldBetween(RightArm,BOMB)
  774. for i=0, 2, 0.1 / Animation_Speed do
  775. Swait()
  776. turnto(Mouse.Hit.p)
  777. 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)
  778. 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)
  779. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  780. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  781. 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)
  782. 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)
  783. end
  784. for i=0, 0.1, 0.1 / Animation_Speed do
  785. Swait()
  786. 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)
  787. 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)
  788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  790. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  791. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  792. end
  793. CreateSound("1112042117", BOMB, 10, 1)
  794. WELD:remove()
  795. local ROCK = BOMB
  796. local POS = ROCK.Position
  797. ROCK.Anchored = true
  798. local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0)
  799. local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0)
  800. for i = 0, 1, 0.07 do
  801. Swait()
  802. ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i))
  803. end
  804. ROCK.Anchored = false
  805. ROCK.CanCollide = true
  806. CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Really white",VT(3,0.2,3),0.5)
  807. MagicSphere(VT(1,1,1),25,CF(ROCK.Position),"Pine Cone",VT(3,3,3))
  808. MagicSphere(VT(0.5,0.5,0.5),25,CF(ROCK.Position),"White",VT(3,3,3))
  809. killnearest(ROCK.Position,25,35)
  810. ROCK.Anchored = true
  811. ROCK.CanCollide = false
  812. ROCK.Transparency = 1
  813. CreateSound("691216625", ROCK, 10, 2)
  814. Debris:AddItem(ROCK,5)
  815. for i=0, 1.6, 0.1 / Animation_Speed do
  816. Swait()
  817. 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)
  818. 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)
  819. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1)
  820. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1)
  821. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  822. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  823. end
  824. Swait(15)
  825. HandlePart.Transparency = 0
  826. ATTACK = false
  827. Rooted = false
  828. end
  829.  
  830. function Milkhard()
  831. Rooted = true
  832. ATTACK = true
  833. local soundeffect = IT("Sound",HandlePart)
  834. soundeffect.SoundId = "rbxassetid://188703219"
  835. soundeffect.Looped = true
  836. soundeffect.Volume = 10
  837. soundeffect.Playing = true
  838. for i=0, 25, 0.1 / Animation_Speed do
  839. Swait()
  840. 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)
  841. 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)
  842. 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)
  843. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  844. 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)
  845. 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)
  846. end
  847. soundeffect:remove()
  848. Character:BreakJoints()
  849. local Explosion = IT("Explosion",Effects)
  850. Explosion.Position = HandlePart.Position
  851. Explosion.BlastPressure = 5000000
  852. local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really white", "Handle", VT(0, 0, 0))
  853. PRT.CanCollide = false
  854. PRT.CFrame = CF(HandlePart.Position)
  855. Debris:AddItem(PRT,10)
  856. CreateSound("2248511", Effects, 10, 0.2)
  857. MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"White",VT(6,2,6))
  858. MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Really white",VT(6,2,6))
  859. MagicSphere(VT(5,5,5),250,PRT.CFrame,"White",VT(5,15,5))
  860. MagicSphere(VT(4,4,4),250,PRT.CFrame,"Really white",VT(5,15,5))
  861. CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"White",VT(5,1,5))
  862. CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6))
  863. CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3))
  864. for i = 1, 250 do
  865. Swait()
  866. killnearest(PRT.Position,750000,75)
  867. end
  868. ATTACK = false
  869. Rooted = false
  870. end
  871. ]]
  872. ---------GIVING THE MOVES THEIR KEYS---------
  873. function MouseDown(Mouse)
  874. if ATTACK == false then
  875. end
  876. end
  877.  
  878. function MouseUp(Mouse)
  879. HOLD = false
  880. end
  881.  
  882. function KeyDown(Key)
  883. KEYHOLD = true
  884. if Rooted == false then
  885. if Key == "z" and ATTACK == false then
  886. end
  887.  
  888. if Key == "b" and ATTACK == false then
  889. end
  890.  
  891. if Key == "c" and ATTACK == false then
  892. end
  893. if Key == "t" and ATTACK == false then
  894. Drink()
  895. end
  896. end
  897. end
  898.  
  899. function KeyUp(Key)
  900. KEYHOLD = false
  901. end
  902.  
  903. Mouse.Button1Down:connect(function(NEWKEY)
  904. MouseDown(NEWKEY)
  905. end)
  906. Mouse.Button1Up:connect(function(NEWKEY)
  907. MouseUp(NEWKEY)
  908. end)
  909. Mouse.KeyDown:connect(function(NEWKEY)
  910. KeyDown(NEWKEY)
  911. end)
  912. Mouse.KeyUp:connect(function(NEWKEY)
  913. KeyUp(NEWKEY)
  914. end)
  915.  
  916. function unanchor()
  917. if UNANCHOR == true then
  918. g = Character:GetChildren()
  919. for i = 1, #g do
  920. if g[i].ClassName == "Part" then
  921. g[i].Anchored = false
  922. end
  923. end
  924. end
  925. end
  926. ----------LAST PART OF THE SCRIPT----------
  927. Humanoid.Changed:connect(function(Jump)
  928. if Jump == "Jump" and (Disable_Jump == true) then
  929. Humanoid.Jump = false
  930. end
  931. end)
  932.  
  933. while true do
  934. Swait()
  935. ANIMATE.Parent = nil
  936. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  937. IDLEANIMATION:Play()
  938. SINE = SINE + CHANGE
  939. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  940. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  941. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  942. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  943. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  944. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  945. ANIM = "Jump"
  946. if ATTACK == false then
  947. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  948. 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)
  949. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  950. 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)
  951. 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)
  952. 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)
  953. end
  954. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  955. ANIM = "Fall"
  956. if ATTACK == false then
  957. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  958. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  959. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  960. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  961. 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)
  962. 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)
  963. end
  964. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  965. ANIM = "Idle"
  966. if ATTACK == false then
  967. 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)
  968. 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)
  969. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  970. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  971. 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)
  972. 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)
  973. end
  974. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  975. ANIM = "Walk"
  976. WALK = WALK + 1 / Animation_Speed
  977. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  978. WALK = 0
  979. if WALKINGANIM == true then
  980. WALKINGANIM = false
  981. elseif WALKINGANIM == false then
  982. WALKINGANIM = true
  983. end
  984. end
  985. --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)
  986. --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)
  987. if ATTACK == false then
  988. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  989. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  990. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  991. 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)
  992. 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)
  993. 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)
  994. end
  995. end
  996. if #Effects2>0 then
  997. for e=1,#Effects2 do
  998. if Effects2[e]~=nil then
  999. local Thing=Effects2[e]
  1000. if Thing~=nil then
  1001. local Part=Thing[1]
  1002. local Mode=Thing[2]
  1003. local Delay=Thing[3]
  1004. local IncX=Thing[4]
  1005. local IncY=Thing[5]
  1006. local IncZ=Thing[6]
  1007. local Part2=Thing[8]
  1008. if Thing[1].Transparency<=1 then
  1009. if Thing[2]=="Block1" then
  1010. Thing[1].CFrame=Thing[1].CFrame
  1011. Mesh=Thing[1].Mesh
  1012. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1013. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1014. elseif Thing[2]=="Cylinder" then
  1015. Mesh=Thing[1].Mesh
  1016. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1017. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1018. elseif Thing[2]=="Blood" then
  1019. Mesh=Thing[7]
  1020. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1021. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1022. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1023. elseif Thing[2]=="Elec" then
  1024. Mesh=Thing[1].Mesh
  1025. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1026. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1027. elseif Thing[2]=="Disappear" then
  1028. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1029. end
  1030. else
  1031. Part.Parent=nil
  1032. table.remove(Effects2,e)
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
  1038. unanchor()
  1039. Humanoid.MaxHealth = "inf"
  1040. Humanoid.Health = "inf"
  1041. if Rooted == false then
  1042. Disable_Jump = false
  1043. Humanoid.WalkSpeed = Speed
  1044. elseif Rooted == true then
  1045. Disable_Jump = true
  1046. Humanoid.WalkSpeed = 0
  1047. end
  1048. end
  1049. ------------------------------------------------END SCRIPT-------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement