SHARE
TWEET

Untitled

IceyScripts May 23rd, 2018 244 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --edit of this script is a cane? i have no idea what the name is
  2.  
  3. --Owner of this edit = makhail07.... :)
  4.  
  5.  
  6.  
  7.  
  8. warn('Press q For MAXIMUM OVERDRIVE/SPEEEEEEEEEEDBOOST')
  9. warn('Press x For Mr KARBS')
  10. warn('Press b For Jelly Fishing')
  11. warn('Press v For BEGONE')
  12. warn('Press c For Catgroove')
  13. warn('Press r For Water......')
  14. warn('Press p To End Your Life,I Dare You')
  15.  
  16. -- Initial stuff
  17. math.randomseed(tick())
  18.  
  19. p = game.Players.LocalPlayer
  20. char049 = p.Character
  21.  
  22. char049.Shirt:Remove()
  23. for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  24. wait()shirt = Instance.new("Shirt", char049)
  25. shirt.Name = "Shirt"
  26. pants = Instance.new("Pants", char049)
  27. pants.Name = "Pants"
  28.  
  29. char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=95257568"
  30. char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=95257568"
  31.  
  32.  
  33.  
  34.     local BC = char049["Body Colors"]
  35.     BC.HeadColor = BrickColor.new("CGA brown")
  36.     BC.LeftArmColor = BrickColor.new("CGA brown")
  37.     BC.LeftLegColor = BrickColor.new("CGA brown")
  38.     BC.RightArmColor = BrickColor.new("CGA brown")
  39.     BC.RightLegColor = BrickColor.new("CGA brown")
  40.     BC.TorsoColor = BrickColor.new("CGA brown")
  41.  
  42.  
  43.  
  44. human = char049:FindFirstChild("Humanoid")
  45. human.MaxHealth, human.Health = math.huge,math.huge
  46.  
  47.  
  48. sound222223444 = Instance.new("Sound",char049)
  49.         sound222223444.SoundId = "rbxassetid://320522646"
  50.         sound222223444.Volume = 50
  51.  
  52.  
  53.  
  54.  
  55. -- Wait for character
  56. repeat wait() until game.Players.LocalPlayer.Character ~= nil
  57.  
  58.  
  59. -- Useful shortcuts
  60. local plr = game:GetService("Players").LocalPlayer
  61. local char = plr.Character
  62. local plrgui = plr.PlayerGui
  63. local backpack = plr.Backpack
  64. local torso = char.Torso
  65. local head = char.Head
  66. local hum = char.Humanoid
  67. local larm = char["Left Arm"]
  68. local lleg = char["Left Leg"]
  69. local rarm = char["Right Arm"]
  70. local rleg = char["Right Leg"]
  71. local LS = torso["Left Shoulder"]
  72. local LH = torso["Left Hip"]
  73. local RS = torso["Right Shoulder"]
  74. local RH = torso["Right Hip"]
  75. local neck = torso.Neck
  76. local it = Instance.new
  77. local vt = Vector3.new
  78. local cf = CFrame.new
  79. local euler = CFrame.fromEulerAnglesXYZ
  80. local angles = CFrame.Angles
  81. local neckC0 = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  82. local neckC1 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  83. local LSC0 = cf(-1.5,.5,0)
  84. local LSC1 = cf(0,.5,0)
  85. local RSC0 = cf(1.5,.5,0)
  86. local RSC1 = cf(0,.5,0)
  87. local LHC0 = cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  88. local LHC1 = cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  89. local RHC0 = cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  90. local RHC1 = cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  91. local RP = char.HumanoidRootPart
  92. local RJ = RP.RootJoint
  93. local RJC0 = euler(-1.57,0,3.14)
  94. music = Instance.new("Sound",torso)
  95. music.SoundId = "rbxassetid://662401724"
  96. music.Looped = true
  97. music.Volume = 3
  98. music:Play()
  99. human = char:FindFirstChild("Humanoid")
  100.  
  101.  
  102.  
  103.         sound22222243 = Instance.new("Sound",char)
  104.         sound22222243.SoundId = "rbxassetid://306410328"
  105.         sound22222243.Volume = 30
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.     local har2 = Instance.new("Part", char.Head)
  113.         har2.BrickColor = BrickColor.new("Black")
  114.         har2.Name = "Hair"
  115.         har2.formFactor = 0
  116.         har2.Size = Vector3.new(0,-0.25,0)
  117.         har2.BottomSurface = 0
  118.         har2.TopSurface = 0
  119.         har2.CanCollide = false
  120.         Mesh2 = Instance.new("SpecialMesh",har2)
  121.         Mesh2.MeshId = "rbxassetid://1017165558"
  122. Mesh2.TextureId = "rbxassetid://1017165624"
  123.         Mesh2.Scale=Vector3.new(1.01, .99, 1.01)
  124.         local bWeld2 = Instance.new("Weld", char.Head)
  125.         bWeld2.Part0 = char.Head
  126.         bWeld2.Part1 = har2
  127.         bWeld2.C1 = CFrame.new(0,-.2,-.2)
  128.  
  129.  
  130. local handee = Instance.new("Part")
  131. handee.Parent = char049
  132. handee.Size = Vector3.new(0.2,0.2,0.2)
  133. handee.Archivable = true
  134. handee.Transparency = 1
  135. handee.CanCollide = false
  136. handee.BrickColor = BrickColor.new("Really red")
  137. handee.Material = "Neon"
  138. local handeemesh = Instance.new("BlockMesh",handee)
  139. handeemesh.Scale = Vector3.new(1,1,1)
  140. local handeeweld = Instance.new("Weld")
  141. handeeweld.Parent = handee
  142. handeeweld.Part0 = larm
  143. handeeweld.Part1 = handee
  144. handeeweld.C1 = CFrame.new(0, 1.85, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  145.         handeeweld.Part0 = larm
  146.  
  147.  
  148.  
  149. local particleemitter3 = Instance.new("ParticleEmitter", handee)
  150. particleemitter3.VelocitySpread = 180
  151. particleemitter3.Lifetime = NumberRange.new(2)
  152. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  153. particleemitter3.Speed = NumberRange.new(0.5)
  154. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  155. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  156. particleemitter3.Rate = 40
  157. particleemitter3.Rotation = NumberRange.new(-45, 45)
  158. particleemitter3.Acceleration = Vector3.new(0,3,0)
  159. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  160. particleemitter3.LightEmission = 0.8
  161. particleemitter3.Color = ColorSequence.new(Color3.new(224, 0, 255), Color3.new(255,0,124))
  162.  
  163. particleemitter3.Enabled = true
  164.  
  165.  
  166.  
  167.  
  168.     local har3 = Instance.new("Part", char.Head)
  169.         har3.BrickColor = BrickColor.new("Black")
  170.         har3.Name = "Hair"
  171.         har3.formFactor = 0
  172.         har3.Size = Vector3.new(0,-0.25,0)
  173.         har3.BottomSurface = 0
  174.         har3.TopSurface = 0
  175.         har3.CanCollide = false
  176.         Mesh3 = Instance.new("SpecialMesh",har3)
  177.         Mesh3.MeshId = "rbxassetid://1018860047"
  178.         Mesh3.Scale=Vector3.new(1.01, .99, 1.01)
  179.         local bWeld = Instance.new("Weld", char.Head)
  180.         bWeld.Part0 = char.Head
  181.         bWeld.Part1 = har3
  182.         bWeld.C1 = CFrame.new(0,-.1,.3)
  183.  
  184.  
  185.  
  186.  
  187.  
  188. head.face:Destroy()
  189.  
  190. -- Build the weapon
  191. local build = function()
  192.     local model = Instance.new("Model")
  193.     model.Name = "Cane"
  194.     local handle = Instance.new("Part", model)
  195.     handle.FormFactor = Enum.FormFactor.Symmetric
  196.     handle.CanCollide = false
  197.     handle.Size = Vector3.new(1,1,3)
  198.     handle.Name = "Handle"
  199.     local mesh = Instance.new("SpecialMesh",handle)
  200.     mesh.Scale = Vector3.new(1,1,0.69999998807907)
  201.     mesh.MeshId = "http://www.roblox.com/asset/?id=25628815"
  202.     mesh.TextureId = "http://www.roblox.com/asset/?id=25629094"
  203.     mesh.MeshType = Enum.MeshType.FileMesh
  204.     return model
  205. end
  206.  
  207.  
  208. -- Wait for mouse
  209. local mouse
  210. while true do
  211.     mouse = plr:GetMouse()
  212.     if mouse then break end
  213.     wait(.1)
  214. end
  215.  
  216.  
  217.         for i,v in pairs(char:children()) do
  218.     if v:IsA("Hat") then
  219.         v:Destroy()
  220.     end
  221. for i,v in pairs(char:children()) do
  222.     if v:IsA("Accessory") then
  223.         v:Destroy()
  224.     end
  225. end
  226.         end
  227.  
  228.  
  229.  
  230.         local har1 = Instance.new("Part", char.Head)
  231.         har1.BrickColor = BrickColor.new("Black")
  232.         har1.Name = "Hair"
  233.         har1.formFactor = 0
  234.         har1.Size = Vector3.new(0,-0.25,0)
  235.         har1.BottomSurface = 0
  236.         har1.TopSurface = 0
  237.         har1.CanCollide = false
  238.         Mesh = Instance.new("SpecialMesh",har1)
  239.         Mesh.MeshId = "rbxassetid://503202422"
  240.         Mesh.TextureId = "rbxassetid://503202424"
  241.         Mesh.Scale=Vector3.new(1.01, .99, 1.01)
  242.         local bWeld = Instance.new("Weld", char.Head)
  243.         bWeld.Part0 = char.Head
  244.         bWeld.Part1 = har1
  245.         bWeld.C1 = CFrame.new(0,-.5,-.1)
  246.  
  247.  
  248.  
  249. sound2222233 = Instance.new("Sound",char)
  250. sound2222233.SoundId = "rbxassetid://811963661"
  251. sound2222233.Volume = 30
  252.  
  253. ---- [[ Left Eye]] ----
  254.  
  255. eye1 = Instance.new("Part", workspace)
  256. eye1.Anchored = false
  257. eye1.Parent = head
  258. eye1.TopSurface = 0
  259. eye1.BrickColor = BrickColor.new("Black")
  260. eye1.BottomSurface = 0
  261. eye1m = Instance.new("SpecialMesh", eye1)
  262. eye1m.MeshType = Enum.MeshType.Sphere
  263. eye1m.Scale = Vector3.new(0.02,0.12,0.03)
  264. ogsize = eye1m.Scale
  265. weld = Instance.new("Weld", head)
  266. weld.Part0 = eye1
  267. weld.Part1 = head
  268. weld.C1 = CFrame.new(-.17,.14,-.57)
  269.  
  270.  
  271.  
  272. ---- [[ Right Eye ]] ----
  273.  
  274.  
  275. eye2 = Instance.new("Part", workspace)
  276. eye2.Anchored = false
  277. eye2.Parent = head
  278. eye2.TopSurface = 0
  279. eye2.BrickColor = BrickColor.new("Black")
  280. eye2.BottomSurface = 0
  281. eye2m = Instance.new("SpecialMesh", eye2)
  282. eye2m.MeshType = Enum.MeshType.Sphere
  283. eye2m.Scale = Vector3.new(0.02,0.12,0.03)
  284. ogsize = eye2m.Scale
  285. weld = Instance.new("Weld", head)
  286. weld.Part0 = eye2
  287. weld.Part1 = head
  288. weld.C1 = CFrame.new(.17,.14,-.57)
  289.  
  290.  
  291.  
  292. -- Create welds
  293. local RW, LW = Instance.new("Weld",torso), Instance.new("Weld",torso)
  294. RW.Name = "Right Weld" LW.Name = "Left Weld"
  295. RW.Part0 = torso LW.Part0 = torso
  296. RW.C0 = RSC0 RW.C1 = RSC1 LW.C0 = LSC0 LW.C1 = LSC1
  297.  
  298.  
  299. -- Attach weapon
  300. local canemodel = build()
  301. local cane = canemodel:FindFirstChild("Handle")
  302. canemodel.Parent = char
  303. local caneweld = Instance.new("Weld", rarm)
  304. caneweld.Part0 = rarm
  305. caneweld.Part1 = cane
  306. caneweldC0 = caneweld.C0 * CFrame.new(0,-1,1) * CFrame.Angles(math.rad(180),0,math.rad(90))
  307. caneweld.C0 = caneweldC0
  308. --------------------------------------------------------------------------------------------
  309.  
  310. -- Weapon variables
  311. local caneEnd = cf(-.225,0,-1.5)
  312.  
  313.  
  314. -- Sound effects
  315. local sounds = {}
  316. sounds.explosion = "http://www.roblox.com/asset/?id=87784452"
  317. sounds.bewm = "http://www.roblox.com/asset/?id=2767090"
  318. sounds.slice = "http://www.roblox.com/asset/?id=161006195"
  319. sounds.charge = "http://roblox.com/asset/?id=2101137"
  320. sounds.sharpblast = "http://roblox.com/asset/?id=2248511"
  321. sounds.woosh = "http://roblox.com/asset/?id=147722227"
  322. sounds.metalhit = "http://roblox.com/asset/?id=153092348"
  323. sounds.mechblast = "http://roblox.com/asset/?id=169380505"
  324. sounds.chargepulse = "http://roblox.com/asset/?id=10209296"
  325. sounds.heal = "http://roblox.com/asset/?id=2101144"
  326. sounds.zap = "http://roblox.com/asset/?id=10756104"
  327. sounds.powernote = "http://roblox.com/asset/?id=192603389"
  328. sounds.swing = "http://roblox.com/asset/?id=10209640"
  329. sounds.hit = "http://roblox.com/asset/?id=10209590"
  330.  
  331.  
  332. -- Base functions
  333. local wait = function(t)
  334.     if t ~= nil then
  335.         return wait(t)
  336.     else
  337.         local t = tick()
  338.         game:GetService("RunService").RenderStepped:wait()
  339.         return tick() - t, time()
  340.     end
  341. end
  342. local nolines = function(p)
  343.     p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = 10, 10, 10, 10, 10, 10
  344. end
  345. local part = function(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  346.     local fp = it("Part")
  347.     fp.formFactor = formfactor
  348.     fp.Parent = parent
  349.     fp.Reflectance = reflectance
  350.     fp.Transparency = transparency
  351.     fp.CanCollide = false
  352.     fp.Locked = true
  353.     fp.BrickColor = brickcolor
  354.     fp.Name = name
  355.     fp.Size = size
  356.     fp.Position = torso.Position
  357.     fp.Material = "SmoothPlastic"
  358.     fp:BreakJoints()
  359.     nolines(fp)
  360.     return fp
  361. end
  362. local mesh = function(instance,part,meshtype,meshid,offset,scale)
  363.     local mesh = it(instance)
  364.     mesh.Parent = part
  365.     if instance == "SpecialMesh" then
  366.         mesh.MeshType = meshtype
  367.         if meshid ~= nil then
  368.             mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  369.         end
  370.     end
  371.     mesh.Offset=offset
  372.     mesh.Scale=scale
  373.     return mesh
  374. end
  375. local weld = function(parent,part0,part1,c0)
  376.     local weld = it("Weld")
  377.     weld.Parent = parent
  378.     weld.Part0 = part0
  379.     weld.Part1 = part1
  380.     weld.C0 = c0
  381.     return weld
  382. end
  383. local rayCast = function(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  384.     return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  385. end
  386. local rad = function(x,y,z)
  387.     return euler(math.rad(x or 0),math.rad(y or 0),math.rad(z or 0))
  388. end
  389. local random = function(a, b)
  390.     local num = math.random(a*100, b*100)
  391.     return num/100
  392. end
  393. local randomRot = function()
  394.     return rad(random(0,360),random(0,360),random(0,360))
  395. end
  396. local sound = function(id, par, vol, pit)
  397.     coroutine.resume(coroutine.create(function()
  398.         local sou = Instance.new("Sound", par or workspace)
  399.         sou.Volume = vol
  400.         sou.Pitch = pit or 1
  401.         sou.SoundId = id
  402.         wait()
  403.         sou:play()
  404.         game:GetService("Debris"):AddItem(sou, 6)
  405.     end))
  406. end
  407. local damage = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
  408.     -- Fen's nasty and messy damage function
  409.     if hit.Parent == nil then
  410.         return
  411.     end
  412.     local h = hit.Parent:FindFirstChild("Humanoid")
  413.     for _, v in pairs(hit.Parent:children()) do
  414.         if v:IsA("Humanoid") then
  415.             h = v
  416.         end
  417.     end
  418.     if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  419.         h = hit.Parent.Parent:FindFirstChild("Humanoid")
  420.     end
  421.     if hit.Parent.className == "Hat" then
  422.         hit = hit.Parent.Parent:findFirstChild("Head")
  423.     end
  424.     if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  425.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  426.             if hit.Parent.DebounceHit.Value == true then
  427.                 return
  428.             end
  429.         end
  430.         local c = Instance.new("ObjectValue")
  431.         c.Name = "creator"
  432.         c.Value = game:service("Players").LocalPlayer
  433.         c.Parent = h
  434.         game:GetService("Debris"):AddItem(c, .5)
  435.         local Damage = random(minim, maxim)
  436.         local blocked = false
  437.         local enblock = nil
  438.         local Stats = hit.Parent:findFirstChild("Stats")
  439.         if Stats ~= nil then
  440.             enblock = Stats:findFirstChild("Block")
  441.             if Stats:findFirstChild("Defense") ~= nil then
  442.                 Damage = Damage / Stats.Defense.Value
  443.             end
  444.             if Stats:findFirstChild("Stun") ~= nil then
  445.                 Stats.Stun.Value = Stats.Stun.Value + incstun
  446.             end
  447.             if Stats:findFirstChild("Stagger") ~= nil then
  448.                 if stagger == true then
  449.                     Stats.Stagger.Value = true
  450.                 end
  451.             end
  452.         end
  453.         if enblock ~= nil then
  454.             if enblock.Value == true then
  455.                 blocked = true
  456.             end
  457.         end
  458.         if blocked == true then
  459.             if ranged ~= true then
  460.                 enblock.Value = false
  461.             end
  462.         else
  463.             Damage = math.floor(Damage)
  464.             print("dam"..Damage)
  465.             sound(sounds.hit, hit, 1, 1)
  466.             h.Health = h.Health - Damage
  467.             if Type == "Knockdown" then
  468.                 local hum = hit.Parent.Humanoid
  469.                 hum.PlatformStand = true
  470.                 coroutine.resume(coroutine.create(function(HHumanoid)
  471.                     wait()
  472.                     HHumanoid.PlatformStand = false
  473.                 end), hum)
  474.                 local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  475.                 local bodvol = Instance.new("BodyVelocity")
  476.                 bodvol.velocity = angle * knockback
  477.                 bodvol.P = 5000
  478.                 bodvol.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  479.                 bodvol.Parent = hit
  480.                 local rl = Instance.new("BodyAngularVelocity")
  481.                 rl.P = 3000
  482.                 rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  483.                 rl.angularvelocity = Vector3.new(random(-10, 10), random(-10, 10), random(-10, 10))
  484.                 rl.Parent = hit
  485.                 game:GetService("Debris"):AddItem(bodvol, .5)
  486.                 game:GetService("Debris"):AddItem(rl, .5)
  487.             elseif Type == "Knockdown2" then
  488.                 local hum = hit.Parent.Humanoid
  489.                 local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  490.                 local bodvol = Instance.new("BodyVelocity")
  491.                 bodvol.velocity = angle * knockback
  492.                 bodvol.P = 5000
  493.                 bodvol.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  494.                 bodvol.Parent = hit
  495.                 game:GetService("Debris"):AddItem(bodvol, .5)
  496.             elseif Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  497.                 local vp = Instance.new("BodyVelocity")
  498.                 vp.P = 500
  499.                 vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  500.                 if KnockbackType == 1 then
  501.                     vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  502.                 elseif KnockbackType == 2 then
  503.                     vp.velocity = Property.CFrame.lookVector * knockback
  504.                 end
  505.                 game:GetService("Debris"):AddItem(vp, .5)
  506.                 if knockback > 0 then
  507.                     vp.Parent = hit.Parent.HumanoidRootPart,head,larm,rarm,lleg,rleg
  508.                 end
  509.             end
  510.         end
  511.         local debounce = Instance.new("BoolValue")
  512.         debounce.Name = "DebounceHit"
  513.         debounce.Parent = hit.Parent
  514.         debounce.Value = true
  515.         game:GetService("Debris"):AddItem(debounce, Delay)
  516.         c = Instance.new("ObjectValue")
  517.         c.Name = "creator"
  518.         c.Value = plr
  519.         c.Parent = h
  520.         game:GetService("Debris"):AddItem(c, .5)
  521.     end
  522. end
  523. local fade = function(prt, t)
  524.     coroutine.resume(coroutine.create(function()
  525.         for i = 0, 1, t do
  526.             wait(0)
  527.             prt.Transparency = i
  528.         end
  529.         wait(0)
  530.         prt:destroy()
  531.     end))
  532. end
  533. local block1 = function(prt, delay, x, y, z, msh)
  534.     coroutine.resume(coroutine.create(function()
  535.         for i = 0, 1, delay do
  536.             wait(0)
  537.             prt.CFrame = prt.CFrame * euler(random(-50, 50), random(-50, 50), random(-50, 50))
  538.             local Mesh = msh
  539.             Mesh.Scale = Mesh.Scale + vt(x, y, z)
  540.             prt.Transparency = i
  541.         end
  542.         wait(0)
  543.         prt:destroy()
  544.     end))
  545. end
  546. local block2 = function(prt, delay, x, y, z, msh)
  547.     coroutine.resume(coroutine.create(function()
  548.         for i = 0, 1, delay do
  549.             wait(0)
  550.             local Mesh = msh
  551.             Mesh.Scale = Mesh.Scale + vt(x, y, z)
  552.             prt.Transparency = i
  553.         end
  554.         wait(0)
  555.         prt:destroy()
  556.     end))
  557. end
  558. local cyleffect = function(prt, delay, x, y, z, msh)
  559.     coroutine.resume(coroutine.create(function()
  560.         for i = 0, 1, delay do
  561.             wait(0)
  562.             local Mesh = msh
  563.             Mesh.Scale = Mesh.Scale + vt(x, y, z)
  564.             prt.Transparency = i
  565.         end
  566.         wait(0)
  567.         prt:destroy()
  568.     end))
  569. end
  570. local CFrameFromTopBack = function(at, top, back)
  571.     local right = top:Cross(back)
  572.     return CFrame.new(at.x, at.y, at.z,
  573.         right.x, top.x, back.x,
  574.         right.y, top.y, back.y,
  575.         right.z, top.z, back.z)
  576. end
  577. local triangle = function(a, b, c)
  578.     local edg1 = (c - a):Dot((b - a).unit)
  579.     local edg2 = (a - b):Dot((c - b).unit)
  580.     local edg3 = (b - c):Dot((a - c).unit)
  581.     if edg1 <= (b - a).magnitude and edg1 >= 0 then
  582.         a, b, c = a, b, c
  583.     elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  584.         a, b, c = b, c, a
  585.     elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  586.         a, b, c = c, a, b
  587.     else
  588.         assert(false, "unreachable")
  589.     end
  590.     local len1 = (c - a):Dot((b - a).unit)
  591.     local len2 = (b - a).magnitude - len1
  592.     local width = (a + (b - a).unit * len1 - c).magnitude
  593.     local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  594.     local list = {}
  595.     if len1 > 0.01 then
  596.         local w1 = Instance.new('WedgePart', m)
  597.         game:GetService("Debris"):AddItem(w1, 5)
  598.         w1.Material = "SmoothPlastic"
  599.         w1.FormFactor = 'Custom'
  600.         w1.BrickColor = BrickColor.new("Bright red")
  601.         w1.Transparency = 0
  602.         w1.Reflectance = 0
  603.         w1.Material = "SmoothPlastic"
  604.         w1.CanCollide = false
  605.         nolines(w1)
  606.         local sz = Vector3.new(0.2, width, len1)
  607.         w1.Size = sz
  608.         local sp = Instance.new("SpecialMesh", w1)
  609.         sp.MeshType = "Wedge"
  610.         sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  611.         w1:BreakJoints()
  612.         w1.Anchored = true
  613.         w1.Parent = workspace
  614.         w1.Transparency = 0.7
  615.         fade(w1)
  616.         w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  617.         table.insert(list, w1)
  618.     end
  619.     if len2 > 0.01 then
  620.         local w2 = Instance.new('WedgePart', m)
  621.         game:GetService("Debris"):AddItem(w2, 5)
  622.         w2.Material = "SmoothPlastic"
  623.         w2.FormFactor = 'Custom'
  624.         w2.BrickColor = BrickColor.new("Bright red")
  625.         w2.Transparency = 0
  626.         w2.Reflectance = 0
  627.         w2.Material = "SmoothPlastic"
  628.         w2.CanCollide = false
  629.         nolines(w2)
  630.         local sz = Vector3.new(0.2, width, len2)
  631.         w2.Size = sz
  632.         local sp = Instance.new("SpecialMesh", w2)
  633.         sp.MeshType = "Wedge"
  634.         sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  635.         w2:BreakJoints()
  636.         w2.Anchored = true
  637.         w2.Parent = workspace
  638.         w2.Transparency = 0.7
  639.         fade(w2)
  640.         w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  641.         table.insert(list, w2)
  642.     end
  643.     return unpack(list)
  644. end
  645.  
  646. sound2222224 = Instance.new("Sound",char)
  647.         sound2222224.SoundId = "rbxassetid://670444721"
  648.         sound2222224.Volume = 30
  649. -- Magic effects
  650. local magic = {}
  651. magic.stravant = function(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  652.     local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  653.     prt.Anchored = true
  654.     prt.CFrame = cframe * cf(x, y, z)
  655.     local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  656.     game:GetService("Debris"):AddItem(prt, 5)
  657.     coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  658.         local num = random()
  659.         local num2 = random(-3, 2) + random()
  660.         local numm = 0
  661.         for i = 0, 1, delay * 2 do
  662.             wait()
  663.             Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  664.             Part.Transparency = i
  665.             numm = numm + 0.01
  666.         end
  667.         Part.Parent = nil
  668.         Mesh.Parent = nil
  669.     end), prt, msh, x, y, z)
  670. end
  671. magic.block = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, par)
  672.     local prt = part(3, par or workspace, 0, 0, brickcolor, "Effect", vt())
  673.     prt.Anchored = true
  674.     prt.CFrame = cframe
  675.     local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  676.     game:GetService("Debris"):AddItem(prt, 5)
  677.     if Type == 1 or Type == nil then
  678.         block1(prt, delay, x3, y3, z3, msh)
  679.     elseif Type == 2 then
  680.         block2(prt, delay, x3, y3, z3, msh)
  681.     end
  682. end
  683. magic.circle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, par)
  684.     local prt = part(3, par or workspace, 0, 0, brickcolor, "Effect", vt())
  685.     prt.Anchored = true
  686.     prt.CFrame = cframe
  687.     local msh = mesh("SpecialMesh", prt, "Sphere", nil, vt(0, 0, 0), vt(x1, y1, z1))
  688.     game:GetService("Debris"):AddItem(prt, 2)
  689.     cyleffect(prt, delay, x3, y3, z3, msh)
  690. end
  691. magic.cylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  692.     local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  693.     prt.Anchored = true
  694.     prt.CFrame = cframe
  695.     local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  696.     game:GetService("Debris"):AddItem(prt, 2)
  697.     cyleffect(prt, delay, x3, y3, z3, msh)
  698. end
  699. magic.head = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  700.     local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  701.     prt.Anchored = true
  702.     prt.CFrame = cframe
  703.     local msh = mesh("SpecialMesh", prt, "Head", nil, vt(0, 0, 0), vt(x1, y1, z1))
  704.     game:GetService("Debris"):AddItem(prt, 2)
  705.     cyleffect(prt, delay, x3, y3, z3, msh)
  706. end
  707. magic.wave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  708.     local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  709.     prt.Anchored = true
  710.     prt.CFrame = cframe
  711.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  712.     game:GetService("Debris"):AddItem(prt, 5)
  713.     cyleffect(prt, delay, x3, y3, z3, msh)
  714. end
  715. magic.lightning = function(p0, p1, tym, ofs, col, th, tra, last, par)
  716.     local magz = (p0 - p1).magnitude
  717.     local curpos = p0
  718.     local trz = {
  719.         -ofs,
  720.         ofs
  721.     }
  722.     for i = 1, tym do
  723.         local li = Instance.new("Part", par or workspace)
  724.         li.TopSurface = 0
  725.         li.BottomSurface = 0
  726.         li.Anchored = true
  727.         li.Transparency = tra or 0.4
  728.         li.BrickColor = BrickColor.new(col)
  729.         li.Material = "Neon"
  730.         li.formFactor = "Custom"
  731.         li.CanCollide = false
  732.         li.Size = Vector3.new(th, th, magz / tym)
  733.         local ofz = Vector3.new(random(trz[1],trz[2]), random(trz[1],trz[2]), random(trz[1],trz[2]))
  734.         local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  735.         if tym == i then
  736.             local magz2 = (curpos - p1).magnitude
  737.             li.Size = Vector3.new(th, th, magz2)
  738.             li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  739.         else
  740.             li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  741.         end
  742.         curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  743.         game.Debris:AddItem(li, last)
  744.     end
  745. end
  746.  
  747.  
  748. -- Logic variables
  749. local equipped = false
  750. local attacking = false
  751.  
  752. -- Effect handling
  753. local charfx = Instance.new("Model", char)
  754. charfx.Name = "Effects"
  755. local toggles = {
  756.     snow = false;
  757.     lmagic = false;
  758.     rmagic = false;
  759.     canemagic = false;
  760. }
  761. local snowTick = 0
  762. local lmagicTick = 0
  763. local rmagicTick = 0
  764. local canemagicTick = 0
  765. local snowMeshes = {
  766.     "rbxassetid://434057826";
  767.     "rbxassetid://434057826";
  768.     "rbxassetid://434057826";
  769.    
  770. }
  771.  
  772. -- Pose system
  773. local poses = {
  774.     none = {
  775.         larm = euler(0, 0, 0);
  776.         rarm = euler(0, 0, 0);
  777.         lleg = euler(0, 0, 0);
  778.         rleg = euler(0, 0, 0);
  779.         torso = euler(0, 0, 0);
  780.         head = euler(0, 0, 0);
  781.         cane = euler(0, 0, 0);
  782.     }
  783. }
  784. local pose = "none"
  785. local posespeed = .1
  786. local newpose = function(name, larm, rarm, torso, head, lleg, rleg, cane)
  787.     poses[name] = {
  788.         larm = larm or rad();
  789.         rarm = rarm or rad();
  790.         lleg = lleg or rad();
  791.         rleg = rleg or rad();
  792.         torso = torso or rad();
  793.         head = head or rad();
  794.         cane = cane or rad();
  795.     }
  796. end
  797. local setpose = function(name, speed)
  798.     posespeed = speed or 1
  799.     pose = name or "none"
  800. end
  801. game:GetService("RunService").RenderStepped:connect(function()
  802.     local vel = (RP.Velocity*Vector3.new(1,0,1)).magnitude
  803.     local yvel = RP.Velocity.y
  804.     local hitfloor,posfloor=rayCast(RP.Position,(CFrame.new(RP.Position,RP.Position - Vector3.new(0,1,0))).lookVector,4,char)
  805.     if yvel > 1 and hitfloor == nil and equipped and not attacking then
  806.         setpose("jumping",.2)
  807.     elseif yvel < -1 and hitfloor == nil and equipped and not attacking then
  808.         setpose ("falling",.075)
  809.     elseif vel < 1 and hitfloor ~= nil and equipped and not attacking then
  810.         setpose("idle",.1)
  811.     elseif vel > 2 and vel < 22 and hitfloor ~= nil and equipped and not attacking then
  812.         setpose("walking",.1)
  813.     end
  814.     if poses[pose] ~= nil then
  815.         local pose = poses[pose]
  816.         LW.C0 = LW.C0:lerp(LSC0 * pose.larm, posespeed)
  817.         RW.C0 = RW.C0:lerp(RSC0 * pose.rarm, posespeed)
  818.         LH.C0 = LH.C0:lerp(LHC0 * pose.lleg, posespeed)
  819.         RH.C0 = RH.C0:lerp(RHC0 * pose.rleg, posespeed)
  820.         RJ.C0 = RJ.C0:lerp(RJC0 * pose.torso, posespeed)
  821.         neck.C0 = neck.C0:lerp(neckC0 * pose.head, posespeed)
  822.         caneweld.C0 = caneweld.C0:lerp(caneweldC0 * pose.cane, posespeed)
  823.     end
  824.     if toggles.snow == true then
  825.         if snowTick % 15 == 0 then
  826.             local p = Instance.new("Part")
  827.             local m = Instance.new("SpecialMesh", p)
  828.             m.MeshId = snowMeshes[math.random(1, #snowMeshes)]
  829.             m.TextureId = "rbxassetid://434057827"
  830.             m.Scale = Vector3.new(2,2,2)
  831.             local q = Instance.new("BodyVelocity")
  832.             p.BrickColor = BrickColor.new("Hot pink")
  833.             p.Parent = charfx
  834.             p.Shape = 1
  835.             p.Size = Vector3.new(.5, .5, .5)
  836.             p.Transparency = .3
  837.             p.Locked = true
  838.             p.Anchored = false
  839.             p.CanCollide = false
  840.             p.formFactor = "Plate"
  841.             p.CFrame = torso.CFrame * cf(Vector3.new((random(-75, 75)),50,(random(-75,75)))) * randomRot()
  842.             q.velocity = Vector3.new(0, -10, 0)
  843.             q.Parent = p
  844.             p.Touched:connect(function()
  845.                 p:destroy()
  846.             end)
  847.         end
  848.         snowTick = snowTick + 1
  849.     end
  850.     if toggles.lmagic then
  851.         if lmagicTick % 15 == 0 then
  852.             magic.block(BrickColor.new("Hot pink"),larm.CFrame*cf(0,-1,0),1,1,1,.5,.5,.5,.065,nil,charfx)
  853.         end
  854.         lmagicTick = lmagicTick + 1
  855.     end
  856.     if toggles.rmagic then
  857.         if rmagicTick % 15 == 0 then
  858.             magic.block(BrickColor.new("Hot pink"),rarm.CFrame*cf(0,-1,0),1,1,1,.5,.5,.5,.065,nil,charfx)
  859.         end
  860.         rmagicTick = rmagicTick + 1
  861.     end
  862.     if toggles.canemagic then
  863.         if canemagicTick % 15 == 0 then
  864.             magic.block(BrickColor.new("Hot pink"),cane.CFrame*caneEnd,1,1,1,.5,.5,.5,.065,nil,charfx)
  865.         end
  866.         canemagicTick = canemagicTick + 1
  867.     end
  868. end)
  869. human = char:FindFirstChild("Humanoid")
  870. human.MaxHealth, human.Health = math.huge,math.huge
  871.  
  872. m=Instance.new("ForceField", char)
  873. m.Visible = false
  874.  
  875.  
  876.  
  877. local HBill = Instance.new("BillboardGui", head)
  878. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  879. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  880. HBill.Size = UDim2.new(15,0,2.2,0)
  881. HBill.Name = "Health Display"
  882. HBill.StudsOffset = Vector3.new(0,4,0)
  883. HBill.AlwaysOnTop = true
  884. HBill.Enabled = true
  885. HMain.BackgroundColor3 = Color3.new(255,255,255  )
  886. HMain.BackgroundTransparency = 0.6
  887. HMain.Size = UDim2.new(1,0,1,0)
  888. HBarBack.Parent = HMain
  889. HBarBack.BackgroundColor3 = Color3.new(137,137,137)
  890. HBarBack.BorderColor3 = Color3.new(0,0,0)
  891. HBarBack.BorderSizePixel = 2
  892. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  893. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  894. HHealth.BackgroundTransparency = 1
  895. HHealth.Size = UDim2.new(1,0,1,0)
  896. HHealth.Font = "Bodoni"
  897. HHealth.Text = "An Inhuman!"
  898. HHealth.TextScaled = true
  899. HHealth.TextColor3 = Color3.new(1,1,1)
  900. HHealth.TextStrokeColor3 = BrickColor.new("Hot pink").Color
  901. HHealth.TextStrokeTransparency = 0
  902. HName.Parent = HMain
  903. HName.BackgroundTransparency = 1
  904. HName.Size = UDim2.new(1,0,.5,0)
  905. HName.Font = "Code"
  906. HName.Text = "THE TRUE JELLYFISHER"
  907. HName.TextScaled = true
  908. HName.TextColor3 = BrickColor.new("Toothpaste").Color
  909. HName.TextStrokeColor3 = Color3.new(255,0,124)
  910. HName.TextStrokeTransparency = 0
  911. HName.TextYAlignment = "Top"
  912. -- Weapon setup
  913. local bin = Instance.new("HopperBin",backpack)
  914. bin.Name = "Cane"
  915. script.Parent = bin
  916.  
  917. -- Weapon poses
  918. newpose("idle", rad(-5,5,0), rad(0,0,50), rad(0,-2,-15), rad(0,-3,15), rad(0,15,0), rad(0,15,0), rad(90,-45,170)*CFrame.new(0,-1,-1.5))
  919. newpose("jumping", rad(-20, 0, -10), rad(-20, 0, 10), rad(-10, 0, 0), rad(0, 0, 0), rad(0, 0, 15), rad(0, 0, 0)*CFrame.new(.35,.35,0))
  920. newpose("falling", rad(0, 0, -50), rad(0, 0, 50), rad(0, 0, 0), rad(20, 0, 0), rad(0, 0, 0), rad(0, 0, 0)*CFrame.new(.15,.15,0))
  921. newpose("walking", rad(-5,5,-15), rad(-20,0,20), rad(5,0,0), rad(0,0,0), rad(0,0,0), rad(0,0,0))
  922.  
  923. -- Attack poses
  924. newpose("larmcharge", rad(0,-15,-135), rad(0,0,50), rad(0,-2,-15), rad(-15,-15,50), rad(0,15,0), rad(0,15,0), rad(90,-45,170)*CFrame.new(0,-1,-1.5))
  925. newpose("canecharge", rad(45,0,30), rad(0,0,150), rad(0,0,-35), rad(-20,0,0), rad(0,35,0), rad(0,35,0), rad(90,-135,170)*CFrame.new(0,-1,-1.5))
  926. newpose("clickattack1_1", rad(20,0,15), rad(0,-15,125), rad(0,-2,-35), rad(0,-3,35), rad(0,35,0), rad(0,35,0), rad(90,-165,180)*CFrame.new(0,-1,-1.5))
  927. newpose("clickattack1_2", rad(-20,0,-15), rad(0,100,65), rad(0,-2,45), rad(10,-10,-25), rad(0,-45,0), rad(0,-45,0), rad(90,-110,180)*CFrame.new(0,-1,-1.5))
  928. newpose("clickattack2_1", rad(-45,0,-45), rad(0,150,65), rad(0,-2,65), rad(10,-10,-45), rad(0,-65,0), rad(0,-65,0), rad(90,-135,180)*CFrame.new(0,-1,-1.5))
  929. newpose("clickattack2_2", rad(-15,0,-60), rad(0,-15,70), rad(0,-2,-35), rad(0,-3,35), rad(0,35,0), rad(0,35,0), rad(90,-110,180)*CFrame.new(0,-1,-1.5))
  930. newpose("clickattack3_1", rad(-15,0,-60), rad(0,-15,125), rad(0,-2,-45), rad(0,-3,45), rad(0,45,0), rad(0,45,0), rad(90,-165,180)*CFrame.new(0,-1,-1.5))
  931. newpose("clickattack3_2", rad(-20,0,-75), rad(-90,0,110), rad(0,0,75), rad(10,-10,-60), rad(0,-80,30), rad(0,-80,0), rad(90,-90,180)*CFrame.new(0,-1,-1.5))
  932. newpose("clickattack4_1", rad(0,0,-90), rad(0,0,125), rad(0,0,-90), rad(0,0,90), rad(0,35,0), rad(0,35,0), rad(90,-165,180)*CFrame.new(0,-1,-1.5))
  933. newpose("clickattack4_2", rad(0,0,-135), rad(0,0,125), rad(0,0,-90), rad(0,0,90), rad(0,35,0), rad(0,35,0), rad(90,-165,180)*CFrame.new(0,-1,-1.5))
  934.  
  935. -- Weapon usage (edit to liking)
  936. local equip = function()
  937.     equipped = true
  938.     if attacking then
  939.         repeat
  940.             wait()
  941.         until not attacking
  942.     end
  943.     attacking = true
  944.     if not equipped then
  945.         attacking = false
  946.         return
  947.     end
  948.     LW.Part1 = larm
  949.     RW.Part1 = rarm
  950.     LS.Part1 = nil
  951.     RS.Part1 = nil
  952.     attacking = false
  953.     setpose("idle", .085)
  954. end
  955. local unequip = function()
  956.     equipped = false
  957.     if attacking then
  958.         repeat
  959.             wait()
  960.         until not attacking
  961.     end
  962.     if equipped then
  963.         return
  964.     end
  965.     setpose("none", .1)
  966.     wait(.65)
  967.     if equipped then
  968.         return
  969.     end
  970.     LS.Part1 = larm
  971.     RS.Part1 = rarm
  972.     LW.Part1 = nil
  973.     RW.Part1 = nil
  974. end
  975. local keypress = function(key)
  976.     if attacking or not equipped then return end
  977.     if key == "b" then
  978.         music:Stop()
  979.         sound222223 = Instance.new("Sound",char)
  980.         sound222223.SoundId = "rbxassetid://138082524"
  981.         sound222223.Volume = 30
  982.         sound222223:Play()
  983.         attacking = true
  984.         print("B for welp....nothing?")
  985.         hum.WalkSpeed = 16
  986.         setpose("larmcharge", .1)
  987.         wait(.3)
  988.         toggles.lmagic = true
  989.         wait(1.5)
  990.         toggles.lmagic = false
  991.         particleemitter3.Color = ColorSequence.new(Color3.new(224, 0, 255), Color3.new(255,0,124))
  992.         magic.circle(BrickColor.new("Hot pink"), larm.CFrame*CFrame.new(0,-1,0), 1, 1, 1, 1.2, 1.2, 1.2, .04, charfx)
  993.         toggles.snow = not toggles.snow
  994.         print(""..(toggles.snow and "JELLYFISHING???" or "No? okay....B"))
  995.         wait(.5)
  996.         hum.WalkSpeed = 16
  997.         attacking = false
  998.         music:Resume()
  999.         sound2222224:Stop()
  1000.         sound2222233:Stop()
  1001.         sound222223444:Stop()
  1002.         sound22222243:Stop()
  1003.         end
  1004.     if key == "x" then
  1005.         music:Stop()
  1006.         sound22222 = Instance.new("Sound",char)
  1007.         sound22222.SoundId = "rbxassetid://345287845"
  1008.         sound22222.Volume = 30
  1009.         sound22222:Play()
  1010.         attacking = true
  1011.         print("JELLYFISHING?")
  1012.         hum.WalkSpeed = 12
  1013.         toggles.canemagic = true
  1014.         setpose("canecharge", .1)
  1015.         wait(.5)
  1016.         setpose("clickattack3_2", .175)
  1017.         wait(.3)
  1018.         particleemitter3.Color = ColorSequence.new(Color3.new(224, 0, 255), Color3.new(255,0,124))
  1019.         magic.circle(BrickColor.new("Hot pink"), cane.CFrame*caneEnd, .2, .2, .3, 6, 6, 0, .075)
  1020.         hum.WalkSpeed = 16
  1021.         print("JELLYFISH ZAP")
  1022.         for i = 1, 50 do
  1023.             local prt,hit = rayCast(cane.CFrame*caneEnd.p,((cane.CFrame*caneEnd).p - (cane.CFrame*(caneEnd*CFrame.new(0,0,1))).p).unit, 100, char)
  1024.             magic.lightning((cane.CFrame*caneEnd).p, hit, 20, 1, "Hot pink", .1, .2, .15, charfx)
  1025.             if prt and prt.Parent:FindFirstChild("Humanoid") then
  1026.                 damage(prt, 50, 70, 100, "Knockdown", RP, 0, 0, random(0, 1), nil, true)
  1027.             end
  1028.             wait(.02)
  1029.         end
  1030.         toggles.canemagic = false
  1031.         hum.WalkSpeed = 16
  1032.         attacking = false
  1033.         music:Resume()
  1034.         sound2222233:Stop()
  1035.         sound2222224:Stop()
  1036.         sound222223444:Stop()
  1037.         sound22222243:Stop()
  1038.         end
  1039.     if key == "v" then
  1040.         music:Stop()
  1041.         sound222222 = Instance.new("Sound",char)
  1042.         sound222222.SoundId = "rbxassetid://949916584"
  1043.         sound222222.Volume = 30
  1044.         sound222222:Play()
  1045.         attacking = true
  1046.         print("They Shall Go...")
  1047.         hum.WalkSpeed = 12
  1048.         toggles.canemagic = true
  1049.         setpose("canecharge", .1)
  1050.         wait(.5)
  1051.         setpose("clickattack3_2", .175)
  1052.         wait(.3)
  1053.         particleemitter3.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,0,0))
  1054.         magic.block(BrickColor.new("Really red"),cane.CFrame*caneEnd,1,1,1,.5,.5,.5,.065,nil,charfx)
  1055.         magic.circle(BrickColor.new("Really red"), cane.CFrame*caneEnd, 500, 500, 500, 500, 500, 500, 500)
  1056.         hum.WalkSpeed = 16
  1057.         print("Begone...Thot")
  1058.         for i = 1, 10 do
  1059.             local prt,hit = rayCast(cane.CFrame*caneEnd.p,((cane.CFrame*caneEnd).p - (cane.CFrame*(caneEnd*CFrame.new(0,0,1))).p).unit, 100, char)
  1060.             magic.lightning((cane.CFrame*caneEnd).p, hit, 20, 1, "Really red", .1, .2, .15, charfx)
  1061.             if prt and prt.Parent:FindFirstChild("Humanoid") then
  1062.                 damage(prt, math.huge, math.huge, math.huge, "Knockdown", RP, math.huge, math.huge, random(math.huge, math.huge), nil, true)
  1063.             end
  1064.             wait(.02)
  1065.         end
  1066.         toggles.canemagic = false
  1067.         hum.WalkSpeed = 16
  1068.         attacking = false
  1069.         music:Resume()
  1070.         sound2222233:Stop()
  1071.         sound2222224:Stop()
  1072.         sound222223444:Stop()
  1073.         sound22222243:Stop()
  1074.         end
  1075.     if key == "q" then
  1076.         music:Stop()
  1077.         sound2222233:Play()
  1078.         attacking = true
  1079.         print("Q for queer")
  1080.         hum.WalkSpeed = 500
  1081.         toggles.canemagic = true
  1082.         setpose("canecharge", .1)
  1083.         wait(.5)
  1084.         setpose("clickattack3_2", .175)
  1085.         wait(.3)
  1086.         particleemitter3.Color = ColorSequence.new(Color3.new(0, 255, 232), Color3.new(0,255,232))
  1087.         magic.block(BrickColor.new("Cyan"),cane.CFrame*caneEnd,1,1,1,.5,.5,.5,.065,nil,charfx)
  1088.         magic.circle(BrickColor.new("Cyan"), cane.CFrame*caneEnd, .2, .2, .3, 6, 6, 0, .075)
  1089.         hum.WalkSpeed = 500
  1090.         print("MAXIMUM OVERDRIVE VU")
  1091.         for i = 1, 50 do
  1092.             local prt,hit = rayCast(cane.CFrame*caneEnd.p,((cane.CFrame*caneEnd).p - (cane.CFrame*(caneEnd*CFrame.new(0,0,1))).p).unit, 100, char)
  1093.             magic.lightning((cane.CFrame*caneEnd).p, hit, 10, 10, "Cyan", 10, 10, 10, charfx)
  1094.             if prt and prt.Parent:FindFirstChild("Humanoid") then
  1095.                 damage(prt, 50, 70, 100, "Knockdown", RP, 0, 0, random(0, 1), nil, true)
  1096.             end
  1097.             toggles.canemagic = false
  1098.         hum.WalkSpeed = 500
  1099.         attacking = false
  1100.         sound2222224:Stop()
  1101.         sound22222243:Stop()
  1102.         end
  1103.         elseif key == "p" then
  1104.     music:Stop()
  1105.         sound2222224:Play()
  1106.         attacking = true
  1107.         print("Why did you press this????")
  1108.         hum.WalkSpeed = 12
  1109.         toggles.canemagic = true
  1110.         setpose("canecharge", .1)
  1111.         wait(.5)
  1112.         setpose("clickattack4_2", .175)
  1113.         wait(.3)
  1114.         particleemitter3.Color = ColorSequence.new(Color3.new(255, 255, 0), Color3.new(255,255,0))
  1115.         magic.block(BrickColor.new("New Yeller"),cane.CFrame*caneEnd,1,1,1,.5,.5,.5,.065,nil,charfx)
  1116.         magic.block(BrickColor.new("New Yeller"),larm.CFrame*cf(0,-1,0),1,1,1,.5,.5,.5,.065,nil,charfx)
  1117.         magic.circle(BrickColor.new("New Yeller"), cane.CFrame*caneEnd, 500, 500, 500, 500, 500, 500, 500)
  1118.         hum.WalkSpeed = 16
  1119.         print("e.e My life")
  1120.         for i = 1, 10 do
  1121.             local prt,hit = rayCast(cane.CFrame*caneEnd.p,((cane.CFrame*caneEnd).p - (cane.CFrame*(caneEnd*CFrame.new(0,0,1))).p).unit, 100, char)
  1122.             magic.lightning((cane.CFrame*caneEnd).p, hit, 20, 1, "New Yeller", .1, .2, .15, charfx)
  1123.             sound(sounds.zap,cane,random(.75,1),random(.75,1.25))
  1124.             if prt and prt.Parent:FindFirstChild("Humanoid") then
  1125.                 damage(prt, math.huge, math.huge, math.huge, "Knockdown", RP, math.huge, math.huge, random(math.huge, math.huge), nil, true)
  1126.             end
  1127.             wait(.02)
  1128.         end
  1129.         toggles.canemagic = false
  1130.         hum.WalkSpeed = 16
  1131.         attacking = false
  1132.         sound2222233:Stop()
  1133.         sound222223444:Stop()
  1134.         sound22222243:Stop()
  1135.         wait(10)
  1136. human.MaxHealth, human.Health = 0,0
  1137. print('ded')
  1138. end
  1139. if key == "c" then
  1140.     music:Stop()
  1141.         sound222223444:Play()
  1142.     attacking = true
  1143.         print("CATGROOVY")
  1144.         hum.WalkSpeed = 12
  1145.         toggles.canemagic = true
  1146.         setpose("canecharge", .1)
  1147.         wait(.5)
  1148.         setpose("clickattack1_2", .175)
  1149.         wait(.3)
  1150.         particleemitter3.Color = ColorSequence.new(Color3.new(137, 137, 137), Color3.new(137,137,137))
  1151.         magic.block(BrickColor.new("Dark stone grey"),cane.CFrame*caneEnd,1,1,1,.5,.5,.5,.065,nil,charfx)
  1152.         magic.circle(BrickColor.new("Dark stone grey"), cane.CFrame*caneEnd, .2, .2, .3, 6, 6, 0, .075)
  1153.         hum.WalkSpeed = 16
  1154.         print("Seems legit")
  1155.         for i = 1, 50 do
  1156.             local prt,hit = rayCast(cane.CFrame*caneEnd.p,((cane.CFrame*caneEnd).p - (cane.CFrame*(caneEnd*CFrame.new(0,0,1))).p).unit, 100, char)
  1157.             magic.lightning((cane.CFrame*caneEnd).p, hit, 10, 10, "Dark stone grey", 10, 10, 10, charfx)
  1158.             if prt and prt.Parent:FindFirstChild("Humanoid") then
  1159.                 damage(prt, 50, 70, 100, "Knockdown", RP, 0, 0, random(0, 1), nil, true)
  1160.             end
  1161.             toggles.canemagic = false
  1162.         hum.WalkSpeed = 16
  1163.         attacking = false
  1164.         sound2222224:Stop()
  1165.         sound2222233:Stop()
  1166.         end
  1167. end
  1168.  
  1169. if key == "r" then
  1170.             music:Stop()
  1171.         sound22222243:Play()
  1172.             attacking = true
  1173.         print("Water THOSE!")
  1174.         hum.WalkSpeed = 12
  1175.         toggles.canemagic = true
  1176.         setpose("canecharge", .1)
  1177.         wait(.5)
  1178.         setpose("clickattack3_2", .175)
  1179.         wait(.3)
  1180.         particleemitter3.Color = ColorSequence.new(Color3.new(0, 0, 255), Color3.new(0,0,255))
  1181.         magic.block(BrickColor.new("Really blue"),cane.CFrame*caneEnd,1,1,1,.5,.5,.5,.065,nil,charfx)
  1182.         magic.circle(BrickColor.new("Really blue"), cane.CFrame*caneEnd, .2, .2, .3, 6, 6, 0, .075)
  1183.         hum.WalkSpeed = 16
  1184.         print("But I don't want t00")
  1185.         for i = 1, 50 do
  1186.             local prt,hit = rayCast(cane.CFrame*caneEnd.p,((cane.CFrame*caneEnd).p - (cane.CFrame*(caneEnd*CFrame.new(0,0,1))).p).unit, 100, char)
  1187.             magic.lightning((cane.CFrame*caneEnd).p, hit, 0.1, 5, "Really blue", 1, 2, 4, charfx)
  1188.             if prt and prt.Parent:FindFirstChild("Humanoid") then
  1189.                 damage(prt, 50, 70, 100, "Knockdown", RP, 0, 0, random(0, 1), nil, true)
  1190.             end
  1191.             toggles.canemagic = false
  1192.         hum.WalkSpeed = 16
  1193.         attacking = false
  1194.         sound2222224:Stop()
  1195.         sound2222233:Stop()
  1196.         sound222223444:Stop()
  1197.         end
  1198. end
  1199. end
  1200. local combo = 0
  1201. local clicked = function(hit)
  1202.     if attacking or not equipped then return end
  1203.     if combo == 0 then
  1204.         attacking = true
  1205.         combo = combo + 1
  1206.         print("swing"..combo)
  1207.         setpose("clickattack1_1", .165)
  1208.         wait(.125)
  1209.         local dam1 = cane.Touched:connect(function(hit)
  1210.             if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  1211.                 damage(hit, 10, 15, .25, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1212.             end
  1213.         end)
  1214.         local dam2 = rarm.Touched:connect(function(hit)
  1215.             if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  1216.                 damage(hit, 10, 15, .25, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1217.             end
  1218.         end)
  1219.         setpose("clickattack1_2", .185)
  1220.         sound(sounds.swing,cane,.5,random(1,1.5))
  1221.         wait(.35)
  1222.         dam1:disconnect()
  1223.         dam2:disconnect()
  1224.         attacking = false
  1225.         wait(1)
  1226.         if combo == 1 then
  1227.             combo = 0
  1228.             print("ded")
  1229.         end
  1230.     elseif combo == 1 then
  1231.         attacking = true
  1232.         combo = combo + 1
  1233.         print("swing"..combo)
  1234.         setpose("clickattack2_1", .15)
  1235.         wait(.125)
  1236.         local dam1 = cane.Touched:connect(function(hit)
  1237.             if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  1238.                 damage(hit, 10, 15, .25, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1239.             end
  1240.         end)
  1241.         local dam2 = rarm.Touched:connect(function(hit)
  1242.             if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  1243.                 damage(hit, 10, 15, .25, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1244.             end
  1245.         end)
  1246.         setpose("clickattack2_2", .14)
  1247.         sound(sounds.swing,cane,.5,random(1,1.5))
  1248.         for i = 1, 5 do
  1249.             torso.Velocity = RP.CFrame.lookVector * 45
  1250.             wait()
  1251.         end
  1252.         wait(.25)
  1253.         dam1:disconnect()
  1254.         dam2:disconnect()
  1255.         attacking = false
  1256.         wait(1)
  1257.         if combo == 2 then
  1258.             combo = 0
  1259.             print("ded")
  1260.         end
  1261.     elseif combo == 2 then
  1262.         attacking = true
  1263.         combo = combo + 1
  1264.         print("swing"..combo)
  1265.         setpose("clickattack3_1", .15)
  1266.         wait(.2)
  1267.         local dam1 = cane.Touched:connect(function(hit)
  1268.             if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  1269.                 damage(hit, 10, 15, .25, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1270.             end
  1271.         end)
  1272.         local dam2 = rarm.Touched:connect(function(hit)
  1273.             if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  1274.                 damage(hit, 10, 15, .25, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1275.             end
  1276.         end)
  1277.         setpose("clickattack3_2", .2)
  1278.         sound(sounds.swing,cane,.5,random(.5,1))
  1279.         for i = 1, 5 do
  1280.             torso.Velocity = RP.CFrame.lookVector * 55
  1281.             wait()
  1282.         end
  1283.         wait(.3)
  1284.         dam1:disconnect()
  1285.         dam2:disconnect()
  1286.         attacking = false
  1287.         wait(.5)
  1288.         if combo == 3 then
  1289.             combo = 0
  1290.             print("ded")
  1291.         end
  1292.     elseif combo == 3 then
  1293.         attacking = true
  1294.         combo = combo + 1
  1295.         print("swing"..combo)
  1296.         setpose("clickattack4_1", .18)
  1297.         sound(sounds.swing,cane,.5,random(1,1.5))
  1298.         wait(.3)
  1299.         local bewmcf = larm.CFrame*cf(0,-3,0)
  1300.         local bewmrange = 7.5
  1301.         for i = 1, 2 do
  1302.             particleemitter3.Color = ColorSequence.new(Color3.new(255, 255, 0), Color3.new(255,255,0))
  1303.             magic.block(BrickColor.new("New Yeller"), bewmcf, 1, 1, 1, 2, 2, 2, .075)
  1304.         end
  1305.         for _,v in pairs(game.Workspace:GetChildren()) do
  1306.             if v:FindFirstChild("Torso") and v.Torso:IsA("Part") then
  1307.                 local vtor = v.Torso
  1308.                 local dist = (bewmcf.p - vtor.Position).magnitude
  1309.                 if dist <= bewmrange then
  1310.                     damage(vtor, 20, 30, .5, "Normal", RP, .5, 1, random(3, 10), nil, true)
  1311.                 end
  1312.             end
  1313.         end
  1314.         sound(sounds.bewm,rarm,1,random(1,2))
  1315.         print("bewm")
  1316.         setpose("clickattack4_2", .165)
  1317.         wait(.175)
  1318.         attacking = false
  1319.         wait(.5)
  1320.         if combo == 4 then
  1321.             combo = 0
  1322.             print("ded")
  1323.         end
  1324.     end
  1325. end
  1326. bin.Selected:connect(equip)
  1327. bin.Deselected:connect(unequip)
  1328. mouse.Button1Down:connect(clicked)
  1329. mouse.KeyDown:connect(keypress)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top