mathmasterphil

Lemonade

Mar 11th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.37 KB | None | 0 0
  1. local me = game:service("Players").LocalPlayer
  2. local char = me.Character
  3.  
  4. local Modelname = "LemonadeModel"
  5. local Toolname = "Lemonade"
  6.  
  7. script.Name = "bin"
  8.  
  9. if char:FindFirstChild(Modelname) then
  10.         char[Modelname].Parent = nil
  11. end
  12.  
  13. for _, v in pairs(me.Backpack:GetChildren()) do
  14.         if v:FindFirstChild("tooltype") then
  15.                 if v.tooltype.Value == Toolname then
  16.                         v.Parent = nil
  17.                 end
  18.         end
  19. end
  20.  
  21. local aing
  22.  
  23. local phpos
  24. local hpos
  25.  
  26. local bin = Instance.new("HopperBin", me.Backpack)
  27. bin.Name = Toolname
  28.  
  29. local tooltype = Instance.new("StringValue", bin)
  30. tooltype.Name = "tooltype"
  31. tooltype.Value = Toolname
  32.  
  33. script.Parent = bin
  34.  
  35. local able = true
  36. local sable1 = true
  37.  
  38. local surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  39.  
  40. if char:FindFirstChild("Torso") and char:FindFirstChild("Right Arm") and char:FindFirstChild("Left Arm") then
  41.        
  42. else
  43.         script:remove()
  44. end
  45.  
  46. torso = char.Torso
  47. neck = torso.Neck
  48. human = char.Humanoid
  49. Rarm = char["Right Arm"]
  50. Larm = char["Left Arm"]
  51.  
  52. local Sounds = {
  53.         drink = Instance.new("Sound"),
  54.         swing = Instance.new("Sound"),
  55.         hitsound = Instance.new("Sound")
  56. }
  57.  
  58. Sounds["drink"].SoundId = "http://www.roblox.com/asset/?id=10722059"
  59. Sounds["drink"].Volume = 1
  60. Sounds["swing"].SoundId = "http://www.roblox.com/asset/?id=10209645"
  61. Sounds["swing"].Volume = 1
  62. Sounds["hitsound"].SoundId = "http://www.roblox.com/asset/?id=10209590"
  63. Sounds["hitsound"].Volume = 0.5
  64.  
  65. function PlaySound(soundname, pitch)
  66.         Sounds[soundname].Parent = handle
  67.         Sounds[soundname].Pitch = pitch
  68.         Sounds[soundname]:Play()
  69.         local oldsound = Sounds[soundname]
  70.         coroutine.resume(coroutine.create(function()
  71.                 wait(4)
  72.                 oldsound:Destroy()
  73.         end))
  74.         Sounds[soundname] = Sounds[soundname]:clone()
  75. end
  76.  
  77. function Weld(p0, p1, x, y, z, a, b, c)
  78.         local w = Instance.new("Weld")
  79.         w.Parent = p0
  80.         w.Part0 = p0
  81.         w.Part1 = p1
  82.         w.C1 = CFrame.new(x, y, z) * CFrame.Angles(a, b, c)
  83.         return w
  84. end
  85.  
  86. function Part(parent, anchor, collide, tran, ref, color, x, y, z, Break, lifetime)
  87.         local p = Instance.new("Part")
  88.         p.formFactor = "Custom"
  89.         p.Anchored = anchor
  90.         p.CanCollide = collide
  91.         p.Transparency = tran
  92.         p.Reflectance = ref
  93.         p.BrickColor = BrickColor.new(color)
  94.         for _, Surf in pairs(surfaces) do
  95.                 p[Surf] = "Smooth"
  96.         end
  97.         p.Size = Vector3.new(x, y, z)
  98.         if Break then
  99.                 p:BreakJoints()
  100.         else
  101.                 p:MakeJoints()
  102.         end
  103.         p.Parent = parent
  104.         p.Locked = true
  105.         if lifetime then
  106.                 game:GetService("Debris"):AddItem(p, lifetime)
  107.         end
  108.         return p
  109. end
  110.  
  111. function getHum(c)
  112.         local h = nil
  113.         for i,v in pairs(c:GetChildren()) do
  114.                 if v:IsA("Humanoid") and c ~= char then
  115.                         if v.Health > 0 then
  116.                                 h = v
  117.                         end
  118.                 end
  119.         end
  120.         return h
  121. end
  122.  
  123. function Heal(hum)
  124.         coroutine.resume(coroutine.create(function()
  125.                 hum:TakeDamage(-20)
  126.         end))
  127. end
  128.  
  129. function CreateModel()
  130.         if char:FindFirstChild(Modelname) then
  131.                 char[Modelname].Parent = nil
  132.         end
  133.        
  134.         Mo = Instance.new("Model")
  135.         Mo.Name = Modelname
  136.        
  137.         RABrick = Part(Mo, false, false, 1, 0, tostring(Rarm.BrickColor), 1, 2, 1, true)
  138.         LABrick = Part(Mo, false, false, 1, 0, tostring(Larm.BrickColor), 1, 2, 1, true)
  139.         RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  140.         LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  141.         gripBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  142.         gripBrick2 = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  143.         Weld(Rarm, gripBrick, 0, 1, 0, 0, 0, 0)
  144.         Weld(Larm, gripBrick2, 0, 1, 0, 0, 0, 0)
  145.  
  146.         RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  147.         LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  148.         RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  149.         LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  150.  
  151.         TH = Weld(torso, nil, -1, 0.6, 0.7, 0, 0, 0)
  152.  
  153.         RABW2 = Weld(RABrick, nil, 0.2, 1.2, 0, math.rad(-90), math.rad(-30), 0)
  154.         LABW2 = Weld(LABrick, nil, -0.2, 1.2, 0, math.rad(-90), math.rad(30), 0)
  155.         RLBW2 = Weld(RLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  156.         LLBW2 = Weld(LLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  157.        
  158.         local modc = Instance.new("Model", Mo)
  159.         modc.Name = "Lemonade"
  160.        
  161.         handle = Part(modc, false, false, 0.8, 0.2, "Medium stone gray", 1, 1.3, 1, true)
  162.         handle.Name = "Handle"
  163.         Instance.new("CylinderMesh", handle)
  164.        
  165.         handle2 = Part(modc, false, false, 0, 0, "Bright yellow", 1, 1.15, 1, true)
  166.         handle2.Name = "Handle2"
  167.         Instance.new("CylinderMesh", handle2).Scale = Vector3.new(0.9, 0.9, 0.9)
  168.        
  169.         tip = Part(modc, false, false, 1, 0, "Bright yellow", 0.2, 0.2, 0.2, true)
  170.         tip.Name = "Tip"
  171.        
  172.         grip = Weld(gripBrick, nil, 0, -0.2, -0.1, math.rad(80), 0, -math.rad(60))
  173.         liq = Weld(handle, handle2, 0, 0.1, 0, 0, 0, 0)
  174.         Weld(handle, tip, 0, -0.65, 0, 0, 0, 0)
  175.        
  176.         Mo.Parent = char
  177.         TH.Part1 = handle
  178.        
  179.         fps = Instance.new("Model", workspace.CurrentCamera)
  180.         local fpra = Rarm:clone()
  181.         fpra.Parent = fps
  182.         local fpt = modc:clone()
  183.         fpt.Parent = fps
  184.         Weld(Rarm, fpra, 0, 0, 0, 0, 0, 0)
  185.         Weld(handle, fpt.Handle, 0, 0, 0, 0, 0, 0)
  186.        
  187.         for _,v in pairs(modc:GetChildren()) do
  188.                 v.Parent = Mo
  189.         end
  190.        
  191.         modc:Destroy()
  192. end
  193.  
  194. function sheath()
  195.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  196.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  197.         wait()
  198.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  199.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  200.         wait()
  201.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  202.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  203.         wait()
  204.         LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  205.         RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  206.         wait()
  207. end
  208.  
  209. function unsheath()
  210.         LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  211.         RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  212.         wait()
  213.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  214.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  215.         wait()
  216.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  217.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  218.         wait()
  219.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  220.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  221.         wait()
  222.         RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  223.         LABW2.C1 = CFrame.new(-0.2, 1.5, 0) * CFrame.Angles(math.rad(-90), math.rad(45), 0)
  224. end
  225.  
  226. function drink()
  227.         if able then
  228.                 able = false
  229.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(30), 0)
  230.                 wait()
  231.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  232.                 wait()
  233.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(40), 0)
  234.                 wait()
  235.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-92), -math.rad(40), 0)
  236.                 wait()
  237.                 RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  238.                 wait()
  239.                 RABW2.C1 = CFrame.new(0.2, 0.8, 0) * CFrame.Angles(math.rad(-96), -math.rad(38), 0)
  240.                 wait()
  241.                 RABW2.C1 = CFrame.new(0.2, 0.85, 0) * CFrame.Angles(math.rad(-98), -math.rad(37), 0)
  242.                 wait()
  243.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  244.                 wait()
  245.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  246.                 workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad(2.5), 0, 0)
  247.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-102), -math.rad(35), 0)
  248.                 wait()
  249.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  250.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-104), -math.rad(34), 0)
  251.                 wait()
  252.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  253.                 wait()
  254.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  255.                 grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  256.                 wait()
  257.                 grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  258.                 wait()
  259.                 grip.C1 = CFrame.new(0, -0.3, -0.1) * CFrame.Angles(math.rad(60), 0, -math.rad(80))
  260.                 PlaySound("drink", 1)
  261.                 wait(1.5)
  262.                 Heal(human)
  263.                 wait(1.5)
  264.                 grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  265.                 wait()
  266.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  267.                 grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  268.                 wait()
  269.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  270.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  271.                 wait()
  272.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  273.                 RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  274.                 wait()
  275.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  276.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  277.                 wait()
  278.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  279.                 able = true
  280.         end
  281. end
  282.  
  283. function loopray()
  284.         coroutine.resume(coroutine.create(function()
  285.                 phpos = handle.CFrame
  286.                 wait()
  287.                 while true do
  288.                         hpos = handle.CFrame.p
  289.                         if aing then
  290.                                 raydmg()
  291.                                 raytrace()
  292.                         end
  293.                         phpos = handle.CFrame.p
  294.                         wait()
  295.                 end
  296.         end))
  297. end
  298.  
  299. function raydmg()
  300.         local dray = Ray.new(hpos, (phpos - hpos).unit*(phpos - hpos).magnitude)
  301.         local hit = workspace:FindPartOnRay(dray, char)
  302.         if hit then
  303.                 if hit.Parent:FindFirstChild("Humanoid") then
  304.                         local ko = Instance.new("ObjectValue", hit.Parent.Humanoid)
  305.                         ko.Name = "creator"
  306.                         ko.Value = me
  307.                         hit.Parent.Humanoid:TakeDamage(10)
  308.                         PlaySound("hitsound", 1)
  309.                 end
  310.         end
  311. end
  312.  
  313. function raytrace()
  314.         local dis = (phpos - hpos).magnitude
  315.         local trace = Part(workspace, true, false, 0.2, 0, "White", 0.5, 0.5, dis, true)
  316.         trace.Name = "Trace"
  317.         trace.CFrame = CFrame.new(phpos, hpos) * CFrame.new(0, 0, -dis/2)
  318.         local tracem = Instance.new("BlockMesh", trace)
  319.         coroutine.resume(coroutine.create(function()
  320.                 for i = 0.2, 1, 0.1 do
  321.                         trace.Transparency = i
  322.                         wait()
  323.                 end
  324.                 trace:Destroy()
  325.         end))
  326.         coroutine.resume(coroutine.create(function()
  327.                 for i = 1, 0, -0.125 do
  328.                         tracem.Scale = Vector3.new(i, i, 1)
  329.                         wait()
  330.                 end
  331.         end))
  332. end
  333.  
  334. function swing()
  335.         if able then
  336.                 able = false
  337.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  338.                 wait()
  339.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-95), -math.rad(10), 0)
  340.                 wait()
  341.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), -math.rad(2), 0)
  342.                 wait()
  343.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-120), 0, 0)
  344.                 wait()
  345.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-135), 0, 0)
  346.                 wait()
  347.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-145), 0, 0)
  348.                 wait()
  349.                 PlaySound("swing", 2)
  350.                 aing = true
  351.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-150), 0, 0)
  352.                 wait()
  353.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-140), 0, 0)
  354.                 wait()
  355.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), 0, 0)
  356.                 wait()
  357.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-60), 0, 0)
  358.                 wait()
  359.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-30), 0, 0)
  360.                 wait()
  361.                 aing = false
  362.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-25), 0, 0)
  363.                 wait()
  364.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-35), 0, 0)
  365.                 wait()
  366.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-50), -math.rad(2), 0)
  367.                 wait()
  368.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-75), -math.rad(5), 0)
  369.                 wait()
  370.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-85), -math.rad(10), 0)
  371.                 wait()
  372.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  373.                 able = true
  374.         end
  375. end
  376.  
  377. function splem(p, w)
  378.         local slem = Part(Mo, true, false, 0.3, 0.1, "Bright yellow", w, 0.2, w, true)
  379.         Instance.new("CylinderMesh", slem)
  380.         slem.Mesh.Scale = Vector3.new(1, 0.05, 1)
  381.         slem.CFrame = CFrame.new(p)
  382.         game:service("Debris"):AddItem(slem, 5)
  383.        
  384.         slem.Touched:connect(function(tp)
  385.                 if getHum(tp.Parent) then
  386.                         getHum(tp.Parent).PlatformStand = true
  387.                         coroutine.resume(coroutine.create(function()
  388.                                 wait(3)
  389.                                 getHum(tp.Parent).PlatformStand = false
  390.                         end))
  391.                 end
  392.         end)
  393. end
  394.  
  395. function rayspill(p)
  396.         local dray = Ray.new(p.CFrame.p + Vector3.new(0, -1, 0), ((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).unit*((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).magnitude)
  397.         local _, dpos = workspace:FindPartOnRay(dray, char)
  398.         if dpos then
  399.                 splem(dpos, math.random() + 2)
  400.         end
  401. end
  402.  
  403. function spill()
  404.         if able and sable1 then
  405.                 able = false
  406.                 sable1 = false
  407.         local me = game:service("Players").LocalPlayer
  408. local char = me.Character
  409.  
  410. local Modelname = "LemonadeModel"
  411. local Toolname = "Lemonade"
  412.  
  413. script.Name = "bin"
  414.  
  415. if char:FindFirstChild(Modelname) then
  416.         char[Modelname].Parent = nil
  417. end
  418.  
  419. for _, v in pairs(me.Backpack:GetChildren()) do
  420.         if v:FindFirstChild("tooltype") then
  421.                 if v.tooltype.Value == Toolname then
  422.                         v.Parent = nil
  423.                 end
  424.         end
  425. end
  426.  
  427. local aing
  428.  
  429. local phpos
  430. local hpos
  431.  
  432. local bin = Instance.new("HopperBin", me.Backpack)
  433. bin.Name = Toolname
  434.  
  435. local tooltype = Instance.new("StringValue", bin)
  436. tooltype.Name = "tooltype"
  437. tooltype.Value = Toolname
  438.  
  439. script.Parent = bin
  440.  
  441. local able = true
  442. local sable1 = true
  443.  
  444. local surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  445.  
  446. if char:FindFirstChild("Torso") and char:FindFirstChild("Right Arm") and char:FindFirstChild("Left Arm") then
  447.        
  448. else
  449.         script:remove()
  450. end
  451.  
  452. torso = char.Torso
  453. neck = torso.Neck
  454. human = char.Humanoid
  455. Rarm = char["Right Arm"]
  456. Larm = char["Left Arm"]
  457.  
  458. local Sounds = {
  459.         drink = Instance.new("Sound"),
  460.         swing = Instance.new("Sound"),
  461.         hitsound = Instance.new("Sound")
  462. }
  463.  
  464. Sounds["drink"].SoundId = "http://www.roblox.com/asset/?id=10722059"
  465. Sounds["drink"].Volume = 1
  466. Sounds["swing"].SoundId = "http://www.roblox.com/asset/?id=10209645"
  467. Sounds["swing"].Volume = 1
  468. Sounds["hitsound"].SoundId = "http://www.roblox.com/asset/?id=10209590"
  469. Sounds["hitsound"].Volume = 0.5
  470.  
  471. function PlaySound(soundname, pitch)
  472.         Sounds[soundname].Parent = handle
  473.         Sounds[soundname].Pitch = pitch
  474.         Sounds[soundname]:Play()
  475.         local oldsound = Sounds[soundname]
  476.         coroutine.resume(coroutine.create(function()
  477.                 wait(4)
  478.                 oldsound:Destroy()
  479.         end))
  480.         Sounds[soundname] = Sounds[soundname]:clone()
  481. end
  482.  
  483. function Weld(p0, p1, x, y, z, a, b, c)
  484.         local w = Instance.new("Weld")
  485.         w.Parent = p0
  486.         w.Part0 = p0
  487.         w.Part1 = p1
  488.         w.C1 = CFrame.new(x, y, z) * CFrame.Angles(a, b, c)
  489.         return w
  490. end
  491.  
  492. function Part(parent, anchor, collide, tran, ref, color, x, y, z, Break, lifetime)
  493.         local p = Instance.new("Part")
  494.         p.formFactor = "Custom"
  495.         p.Anchored = anchor
  496.         p.CanCollide = collide
  497.         p.Transparency = tran
  498.         p.Reflectance = ref
  499.         p.BrickColor = BrickColor.new(color)
  500.         for _, Surf in pairs(surfaces) do
  501.                 p[Surf] = "Smooth"
  502.         end
  503.         p.Size = Vector3.new(x, y, z)
  504.         if Break then
  505.                 p:BreakJoints()
  506.         else
  507.                 p:MakeJoints()
  508.         end
  509.         p.Parent = parent
  510.         p.Locked = true
  511.         if lifetime then
  512.                 game:GetService("Debris"):AddItem(p, lifetime)
  513.         end
  514.         return p
  515. end
  516.  
  517. function getHum(c)
  518.         local h = nil
  519.         for i,v in pairs(c:GetChildren()) do
  520.                 if v:IsA("Humanoid") and c ~= char then
  521.                         if v.Health > 0 then
  522.                                 h = v
  523.                         end
  524.                 end
  525.         end
  526.         return h
  527. end
  528.  
  529. function Heal(hum)
  530.         coroutine.resume(coroutine.create(function()
  531.                 hum:TakeDamage(-20)
  532.         end))
  533. end
  534.  
  535. function CreateModel()
  536.         if char:FindFirstChild(Modelname) then
  537.                 char[Modelname].Parent = nil
  538.         end
  539.        
  540.         Mo = Instance.new("Model")
  541.         Mo.Name = Modelname
  542.        
  543.         RABrick = Part(Mo, false, false, 1, 0, tostring(Rarm.BrickColor), 1, 2, 1, true)
  544.         LABrick = Part(Mo, false, false, 1, 0, tostring(Larm.BrickColor), 1, 2, 1, true)
  545.         RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  546.         LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  547.         gripBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  548.         gripBrick2 = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  549.         Weld(Rarm, gripBrick, 0, 1, 0, 0, 0, 0)
  550.         Weld(Larm, gripBrick2, 0, 1, 0, 0, 0, 0)
  551.  
  552.         RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  553.         LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  554.         RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  555.         LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  556.  
  557.         TH = Weld(torso, nil, -1, 0.6, 0.7, 0, 0, 0)
  558.  
  559.         RABW2 = Weld(RABrick, nil, 0.2, 1.2, 0, math.rad(-90), math.rad(-30), 0)
  560.         LABW2 = Weld(LABrick, nil, -0.2, 1.2, 0, math.rad(-90), math.rad(30), 0)
  561.         RLBW2 = Weld(RLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  562.         LLBW2 = Weld(LLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  563.        
  564.         local modc = Instance.new("Model", Mo)
  565.         modc.Name = "Lemonade"
  566.        
  567.         handle = Part(modc, false, false, 0.8, 0.2, "Medium stone gray", 1, 1.3, 1, true)
  568.         handle.Name = "Handle"
  569.         Instance.new("CylinderMesh", handle)
  570.        
  571.         handle2 = Part(modc, false, false, 0, 0, "Bright yellow", 1, 1.15, 1, true)
  572.         handle2.Name = "Handle2"
  573.         Instance.new("CylinderMesh", handle2).Scale = Vector3.new(0.9, 0.9, 0.9)
  574.        
  575.         tip = Part(modc, false, false, 1, 0, "Bright yellow", 0.2, 0.2, 0.2, true)
  576.         tip.Name = "Tip"
  577.        
  578.         grip = Weld(gripBrick, nil, 0, -0.2, -0.1, math.rad(80), 0, -math.rad(60))
  579.         liq = Weld(handle, handle2, 0, 0.1, 0, 0, 0, 0)
  580.         Weld(handle, tip, 0, -0.65, 0, 0, 0, 0)
  581.        
  582.         Mo.Parent = char
  583.         TH.Part1 = handle
  584.        
  585.         fps = Instance.new("Model", workspace.CurrentCamera)
  586.         local fpra = Rarm:clone()
  587.         fpra.Parent = fps
  588.         local fpt = modc:clone()
  589.         fpt.Parent = fps
  590.         Weld(Rarm, fpra, 0, 0, 0, 0, 0, 0)
  591.         Weld(handle, fpt.Handle, 0, 0, 0, 0, 0, 0)
  592.        
  593.         for _,v in pairs(modc:GetChildren()) do
  594.                 v.Parent = Mo
  595.         end
  596.        
  597.         modc:Destroy()
  598. end
  599.  
  600. function sheath()
  601.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  602.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  603.         wait()
  604.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  605.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  606.         wait()
  607.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  608.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  609.         wait()
  610.         LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  611.         RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  612.         wait()
  613. end
  614.  
  615. function unsheath()
  616.         LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  617.         RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  618.         wait()
  619.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  620.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  621.         wait()
  622.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  623.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  624.         wait()
  625.         RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  626.         LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  627.         wait()
  628.         RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  629.         LABW2.C1 = CFrame.new(-0.2, 1.5, 0) * CFrame.Angles(math.rad(-90), math.rad(45), 0)
  630. end
  631.  
  632. function drink()
  633.         if able then
  634.                 able = false
  635.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(30), 0)
  636.                 wait()
  637.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  638.                 wait()
  639.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(40), 0)
  640.                 wait()
  641.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-92), -math.rad(40), 0)
  642.                 wait()
  643.                 RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  644.                 wait()
  645.                 RABW2.C1 = CFrame.new(0.2, 0.8, 0) * CFrame.Angles(math.rad(-96), -math.rad(38), 0)
  646.                 wait()
  647.                 RABW2.C1 = CFrame.new(0.2, 0.85, 0) * CFrame.Angles(math.rad(-98), -math.rad(37), 0)
  648.                 wait()
  649.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  650.                 wait()
  651.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  652.                 workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad(2.5), 0, 0)
  653.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-102), -math.rad(35), 0)
  654.                 wait()
  655.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  656.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-104), -math.rad(34), 0)
  657.                 wait()
  658.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  659.                 wait()
  660.                 neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  661.                 grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  662.                 wait()
  663.                 grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  664.                 wait()
  665.                 grip.C1 = CFrame.new(0, -0.3, -0.1) * CFrame.Angles(math.rad(60), 0, -math.rad(80))
  666.                 PlaySound("drink", 1)
  667.                 wait(1.5)
  668.                 Heal(human)
  669.                 wait(1.5)
  670.                 grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  671.                 wait()
  672.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  673.                 grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  674.                 wait()
  675.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  676.                 RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  677.                 wait()
  678.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  679.                 RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  680.                 wait()
  681.                 neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  682.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  683.                 wait()
  684.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  685.                 able = true
  686.         end
  687. end
  688.  
  689. function loopray()
  690.         coroutine.resume(coroutine.create(function()
  691.                 phpos = handle.CFrame
  692.                 wait()
  693.                 while true do
  694.                         hpos = handle.CFrame.p
  695.                         if aing then
  696.                                 raydmg()
  697.                                 raytrace()
  698.                         end
  699.                         phpos = handle.CFrame.p
  700.                         wait()
  701.                 end
  702.         end))
  703. end
  704.  
  705. function raydmg()
  706.         local dray = Ray.new(hpos, (phpos - hpos).unit*(phpos - hpos).magnitude)
  707.         local hit = workspace:FindPartOnRay(dray, char)
  708.         if hit then
  709.                 if hit.Parent:FindFirstChild("Humanoid") then
  710.                         local ko = Instance.new("ObjectValue", hit.Parent.Humanoid)
  711.                         ko.Name = "creator"
  712.                         ko.Value = me
  713.                         hit.Parent.Humanoid:TakeDamage(10)
  714.                         PlaySound("hitsound", 1)
  715.                 end
  716.         end
  717. end
  718.  
  719. function raytrace()
  720.         local dis = (phpos - hpos).magnitude
  721.         local trace = Part(workspace, true, false, 0.2, 0, "White", 0.5, 0.5, dis, true)
  722.         trace.Name = "Trace"
  723.         trace.CFrame = CFrame.new(phpos, hpos) * CFrame.new(0, 0, -dis/2)
  724.         local tracem = Instance.new("BlockMesh", trace)
  725.         coroutine.resume(coroutine.create(function()
  726.                 for i = 0.2, 1, 0.1 do
  727.                         trace.Transparency = i
  728.                         wait()
  729.                 end
  730.                 trace:Destroy()
  731.         end))
  732.         coroutine.resume(coroutine.create(function()
  733.                 for i = 1, 0, -0.125 do
  734.                         tracem.Scale = Vector3.new(i, i, 1)
  735.                         wait()
  736.                 end
  737.         end))
  738. end
  739.  
  740. function swing()
  741.         if able then
  742.                 able = false
  743.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  744.                 wait()
  745.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-95), -math.rad(10), 0)
  746.                 wait()
  747.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), -math.rad(2), 0)
  748.                 wait()
  749.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-120), 0, 0)
  750.                 wait()
  751.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-135), 0, 0)
  752.                 wait()
  753.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-145), 0, 0)
  754.                 wait()
  755.                 PlaySound("swing", 2)
  756.                 aing = true
  757.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-150), 0, 0)
  758.                 wait()
  759.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-140), 0, 0)
  760.                 wait()
  761.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), 0, 0)
  762.                 wait()
  763.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-60), 0, 0)
  764.                 wait()
  765.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-30), 0, 0)
  766.                 wait()
  767.                 aing = false
  768.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-25), 0, 0)
  769.                 wait()
  770.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-35), 0, 0)
  771.                 wait()
  772.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-50), -math.rad(2), 0)
  773.                 wait()
  774.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-75), -math.rad(5), 0)
  775.                 wait()
  776.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-85), -math.rad(10), 0)
  777.                 wait()
  778.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  779.                 able = true
  780.         end
  781. end
  782.  
  783. function splem(p, w)
  784.         local slem = Part(Mo, true, false, 0.3, 0.1, "Bright yellow", w, 0.2, w, true)
  785.         Instance.new("CylinderMesh", slem)
  786.         slem.Mesh.Scale = Vector3.new(1, 0.05, 1)
  787.         slem.CFrame = CFrame.new(p)
  788.         game:service("Debris"):AddItem(slem, 5)
  789.        
  790.         slem.Touched:connect(function(tp)
  791.                 if getHum(tp.Parent) then
  792.                         getHum(tp.Parent).PlatformStand = true
  793.                         coroutine.resume(coroutine.create(function()
  794.                                 wait(3)
  795.                                 getHum(tp.Parent).PlatformStand = false
  796.                         end))
  797.                 end
  798.         end)
  799. end
  800.  
  801. function rayspill(p)
  802.         local dray = Ray.new(p.CFrame.p + Vector3.new(0, -1, 0), ((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).unit*((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).magnitude)
  803.         local _, dpos = workspace:FindPartOnRay(dray, char)
  804.         if dpos then
  805.                 splem(dpos, math.random() + 2)
  806.         end
  807. end
  808.  
  809. function spill()
  810.         if able and sable1 then
  811.                 able = false
  812.                 sable1 = false
  813.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(2))
  814.                 wait()
  815.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  816.                 wait()
  817.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  818.                 wait()
  819.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  820.                 wait()
  821.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(35))
  822.                 wait()
  823.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  824.                 wait()
  825.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  826.                 wait()
  827.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(52))
  828.                 wait()
  829.                 local slem = Part(Mo, false, false, 0.3, 0.1, "Bright yellow", 0.2, 0.2, 0.2, true)
  830.                 local slemm = Instance.new("BlockMesh", slem)
  831.                 slemm.Scale = Vector3.new(0.2, 100, 0.2)
  832.                 slemm.Offset = Vector3.new(0, -10, 0)
  833.                 local slemw = Weld(torso, slem, -0.04, 0.1, 1.35, 0, 0, 0)
  834.                 wait()
  835.                 slemm.Scale = Vector3.new(0.2, 100, 0.5)
  836.                 wait()
  837.                 slemm.Scale = Vector3.new(0.2, 100, 0.8)
  838.                 wait()
  839.                 slemm.Scale = Vector3.new(0.2, 100, 1)
  840.                 wait()
  841.                 slemm.Scale = Vector3.new(0.2, 100, 1.2)
  842.                 wait()
  843.                 rayspill(slem)
  844.                 slemm.Scale = Vector3.new(0.2, 100, 1.4)
  845.                 wait()
  846.                 slemm.Scale = Vector3.new(0.2, 100, 1.45)
  847.                 wait(.1)
  848.                 rayspill(slem)
  849.                 wait(.1)
  850.                 rayspill(slem)
  851.                 wait(.1)
  852.                 rayspill(slem)
  853.                 wait(.1)
  854.                 rayspill(slem)
  855.                 wait(.1)
  856.                 rayspill(slem)
  857.                 wait(.1)
  858.                 rayspill(slem)
  859.                 wait(.1)
  860.                 rayspill(slem)
  861.                 wait(.1)
  862.                 rayspill(slem)
  863.                 wait(.1)
  864.                 rayspill(slem)
  865.                 wait(.1)
  866.                 rayspill(slem)
  867.                 wait(.1)
  868.                 rayspill(slem)
  869.                 wait(.1)
  870.                 rayspill(slem)
  871.                 wait(.1)
  872.                 rayspill(slem)
  873.                 slemm.Scale = Vector3.new(0.2, 100, 1.3)
  874.                 wait()
  875.                 slemm.Scale = Vector3.new(0.2, 100, 1)
  876.                 wait()
  877.                 slemm.Scale = Vector3.new(0.2, 100, 0.4)
  878.                 wait()
  879.                 slem:Destroy()
  880.                 slemw:Destroy()
  881.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  882.                 wait()
  883.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  884.                 wait()
  885.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  886.                 wait()
  887.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  888.                 wait()
  889.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  890.                 wait()
  891.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  892.                 able = true
  893.                 coroutine.resume(coroutine.create(function()
  894.                         wait(15)
  895.                         sable1 = true
  896.                 end))
  897.         end
  898. end
  899.  
  900. function Select(mouse)
  901.         RABW2.Part1 = char["Right Arm"]
  902.         TH.Part1 = nil
  903.         grip.Part1 = handle
  904.         unsheath()
  905.         mouse.Button1Down:connect(function()
  906.                 drink()
  907.         end)
  908.         mouse.KeyDown:connect(function(key)
  909.                 if key:lower() == "q" then
  910.                         if mouse.Target then
  911.                                 if getHum(mouse.Target.Parent) then
  912.                                         newLocalScript(script.DSource.Value, mouse.Target.Parent)
  913.                                         Mo:Destroy()
  914.                                         fps:Destroy()
  915.                                         script.Parent:Destroy()
  916.                                 end
  917.                         end
  918.                 elseif key:lower() == "e" then
  919.                         swing()
  920.                 elseif key:lower() == "r" then
  921.                         spill()
  922.                 end
  923.         end)
  924. end
  925.  
  926. function Deselect()
  927.         sheath()
  928.         TH.Part1 = handle
  929.         grip.Part1 = nil
  930.         RABW2.Part1 = nil
  931.         fps.Parent = nil
  932.         CreateModel()
  933. end
  934.  
  935. bin.Selected:connect(Select)
  936. bin.Deselected:connect(Deselect)
  937.  
  938. human.Died:connect(function()
  939.         fps.Parent = nil
  940. end)
  941.  
  942. char.AncestryChanged:connect(function()
  943.         fps.Parent = nil
  944. end)
  945.  
  946. CreateModel()
  947. loopray()
  948.          wait(.1)
  949.                 rayspill(slem)
  950.                 wait(.1)
  951.                 rayspill(slem)
  952.                 wait(.1)
  953.                 rayspill(slem)
  954.                 wait(.1)
  955.                 rayspill(slem)
  956.                 wait(.1)
  957.                 rayspill(slem)
  958.                 wait(.1)
  959.                 rayspill(slem)
  960.                 wait(.1)
  961.                 rayspill(slem)
  962.                 wait(.1)
  963.                 rayspill(slem)
  964.                 wait(.1)
  965.                 rayspill(slem)
  966.                 wait(.1)
  967.                 rayspill(slem)
  968.                 wait(.1)
  969.                 rayspill(slem)
  970.                 slemm.Scale = Vector3.new(0.2, 100, 1.3)
  971.                 wait()
  972.                 slemm.Scale = Vector3.new(0.2, 100, 1)
  973.                 wait()
  974.                 slemm.Scale = Vector3.new(0.2, 100, 0.4)
  975.                 wait()
  976.                 slem:Destroy()
  977.                 slemw:Destroy()
  978.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  979.                 wait()
  980.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  981.                 wait()
  982.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  983.                 wait()
  984.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  985.                 wait()
  986.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  987.                 wait()
  988.                 RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  989.                 able = true
  990.                 coroutine.resume(coroutine.create(function()
  991.                         wait(15)
  992.                         sable1 = true
  993.                 end))
  994.         end
  995. end
  996.  
  997. function Select(mouse)
  998.         RABW2.Part1 = char["Right Arm"]
  999.         TH.Part1 = nil
  1000.         grip.Part1 = handle
  1001.         unsheath()
  1002.         mouse.Button1Down:connect(function()
  1003.                 drink()
  1004.         end)
  1005.         mouse.KeyDown:connect(function(key)
  1006.                 if key:lower() == "q" then
  1007.                         if mouse.Target then
  1008.                                 if getHum(mouse.Target.Parent) then
  1009.                                         newLocalScript(script.DSource.Value, mouse.Target.Parent)
  1010.                                         Mo:Destroy()
  1011.                                         fps:Destroy()
  1012.                                         script.Parent:Destroy()
  1013.                                 end
  1014.                         end
  1015.                 elseif key:lower() == "e" then
  1016.                         swing()
  1017.                 elseif key:lower() == "r" then
  1018.                         spill()
  1019.                 end
  1020.         end)
  1021. end
  1022.  
  1023. function Deselect()
  1024.         sheath()
  1025.         TH.Part1 = handle
  1026.         grip.Part1 = nil
  1027.         RABW2.Part1 = nil
  1028.         fps.Parent = nil
  1029.         CreateModel()
  1030. end
  1031.  
  1032. bin.Selected:connect(Select)
  1033. bin.Deselected:connect(Deselect)
  1034.  
  1035. human.Died:connect(function()
  1036.         fps.Parent = nil
  1037. end)
  1038.  
  1039. char.AncestryChanged:connect(function()
  1040.         fps.Parent = nil
  1041. end)
  1042.  
  1043. CreateModel()
  1044. loopray()
Add Comment
Please, Sign In to add comment