Advertisement
Cute_Sylveon

Milk shaker (by adam222334II)

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