Advertisement
lafur

Untitled

Mar 9th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end wait(0.016666666666667)
  6. Effects = {}
  7. local Player = game.Players.localPlayer
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local mouse = Player:GetMouse()
  11. local m = Instance.new("Model", Character)
  12. m.Name = "WeaponModel"
  13. local effect = Instance.new("Model", Character)
  14. effect.Name = "Effects"
  15. local LeftArm = Character["Left Arm"]
  16. local RightArm = Character["Right Arm"]
  17. local LeftLeg = Character["Left Leg"]
  18. local RightLeg = Character["Right Leg"]
  19. local Head = Character.Head
  20. local Torso = Character.Torso
  21. local cam = game.Workspace.CurrentCamera
  22. local RootPart = Character.HumanoidRootPart
  23. local RootJoint = RootPart.RootJoint
  24. local equipped = false
  25. local attack = false
  26. local Anim = "Idle"
  27. local idle = 0
  28. local attacktype = 1
  29. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  30. local velocity = RootPart.Velocity.y
  31. local sine = 0
  32. local change = 1
  33. local mana = 0
  34. local it = Instance.new
  35. vt = Vector3.new
  36. local grabbed = false
  37. local cf = CFrame.new
  38. local mr = math.rad
  39. local angles = CFrame.Angles
  40. local ud = UDim2.new
  41. local c3 = Color3.new
  42. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  45. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  46. RSH = nil
  47. RW = Instance.new("Weld")
  48. LW = Instance.new("Weld")
  49. RH = Torso["Right Hip"]
  50. LH = Torso["Left Hip"]
  51. RSH = Torso["Right Shoulder"]
  52. LSH = Torso["Left Shoulder"]
  53. RSH.Parent = nil
  54. LSH.Parent = nil
  55. RW.Name = "RW"
  56. RW.Part0 = Torso
  57. RW.C0 = cf(1.5, 0.5, 0)
  58. RW.C1 = cf(0, 0.5, 0)
  59. RW.Part1 = RightArm
  60. RW.Parent = Torso
  61. LW.Name = "LW"
  62. LW.Part0 = Torso
  63. LW.C0 = cf(-1.5, 0.5, 0)
  64. LW.C1 = cf(0, 0.5, 0)
  65. LW.Part1 = LeftArm
  66. LW.Parent = Torso
  67. clerp = function(a, b, t)
  68. return a:lerp(b, t)
  69. end
  70.  
  71. local RbxUtility = LoadLibrary("RbxUtility")
  72. local Create = RbxUtility.Create
  73. RemoveOutlines = function(part)
  74. part.TopSurface = 10
  75. end
  76.  
  77. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  78. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  79. RemoveOutlines(Part)
  80. return Part
  81. end
  82.  
  83. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  84. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  85. if Mesh == "SpecialMesh" then
  86. Msh.MeshType = MeshType
  87. Msh.MeshId = MeshId
  88. end
  89. return Msh
  90. end
  91.  
  92. local co1 = 10
  93. local co2 = 30
  94. local co3 = 30
  95. local co4 = 60
  96. local cooco = 3
  97. local cooldown1 = 0
  98. local cooldown2 = 0
  99. local cooldown3 = 0
  100. local cooldown4 = 0
  101. local coolcool = 0
  102. local maxEnergy = 100
  103. local Energy = 0
  104. local skill1stam = 10
  105. local skill2stam = 50
  106. local skill3stam = 60
  107. local skill4stam = 100
  108. local skill5stam = 100
  109. local recovermana = 5
  110. local skillcolorscheme = BrickColor.new("Really black").Color
  111. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  112. makeframe = function(par, trans, pos, size, color)
  113. local frame = Instance.new("Frame", par)
  114. frame.BackgroundTransparency = trans
  115. frame.BorderSizePixel = 0
  116. frame.Position = pos
  117. frame.Size = size
  118. frame.BackgroundColor3 = color
  119. return frame
  120. end
  121.  
  122. makelabel = function(par, text)
  123. local label = Instance.new("TextLabel", par)
  124. label.BackgroundTransparency = 1
  125. label.Size = UDim2.new(1, 0, 1, 0)
  126. label.Position = UDim2.new(0, 0, 0, 0)
  127. label.TextColor3 = Color3.new(255, 255, 255)
  128. label.TextStrokeTransparency = 0
  129. label.FontSize = Enum.FontSize.Size32
  130. label.Font = Enum.Font.SourceSansBold
  131. label.BorderSizePixel = 0
  132. label.TextScaled = true
  133. label.Text = text
  134. end
  135.  
  136. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.93, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  137. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.86, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  138. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.79, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  139. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.72, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  140. framesk5 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.6, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  141. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  142. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  143. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  144. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  145. bar5 = makeframe(framesk5, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  146. text1 = makelabel(framesk1, "[Z] Hello!")
  147. text2 = makelabel(framesk2, "[X] Cake")
  148. text3 = makelabel(framesk3, "[C] Confetti")
  149. text4 = makelabel(framesk4, "[V] ZOOP")
  150. text5 = Instance.new("TextLabel", framesk5)
  151. text5.BackgroundTransparency = 1
  152. text5.Size = UDim2.new(1, 0, 1, 0)
  153. text5.Position = UDim2.new(0, 0, 0, 0)
  154. text5.TextColor3 = Color3.new(255, 255, 255)
  155. text5.TextStrokeTransparency = 0
  156. text5.FontSize = Enum.FontSize.Size32
  157. text5.Font = Enum.Font.SourceSansBold
  158. text5.BorderSizePixel = 0
  159. text5.TextScaled = true
  160. text5.Text = "[F] Aim]"
  161. ArtificialHB = Instance.new("BindableEvent", script)
  162. ArtificialHB.Name = "Heartbeat"
  163. script:WaitForChild("Heartbeat")
  164. frame = 0.033333333333333
  165. tf = 0
  166. allowframeloss = false
  167. tossremainder = false
  168. lastframe = tick()
  169. script.Heartbeat:Fire()
  170. game:GetService("RunService").Heartbeat:connect(function(s, p)
  171. tf = tf + s
  172. if frame <= tf then
  173. if allowframeloss then
  174. script.Heartbeat:Fire()
  175. lastframe = tick()
  176. else
  177. for i = 1, math.floor(tf / frame) do
  178. script.Heartbeat:Fire()
  179. end
  180. lastframe = tick()
  181. end
  182. if tossremainder then
  183. tf = 0
  184. else
  185. tf = tf - frame * math.floor(tf / frame)
  186. end
  187. end
  188. end
  189. )
  190. swait = function(num)
  191. if num == 0 or num == nil then
  192. ArtificialHB.Event:wait()
  193. else
  194. for i = 0, num do
  195. ArtificialHB.Event:wait()
  196. end
  197. end
  198. end
  199.  
  200. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  201. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  202. return Weld
  203. end
  204.  
  205. rayCast = function(Position, Direction, Range, Ignore)
  206. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  207. end
  208.  
  209. CreateSound = function(id, par, vol, pit)
  210. coroutine.resume(coroutine.create(function()
  211. local sou = Instance.new("Sound", par or workspace)
  212. sou.Volume = vol
  213. sou.Pitch = pit or 1
  214. sou.SoundId = id
  215. swait()
  216. sou:play()
  217. game:GetService("Debris"):AddItem(sou, 6)
  218. end
  219. ))
  220. end
  221.  
  222. local getclosest = function(obj, distance)
  223. local last, lastx = distance + 1, nil
  224. for i,v in pairs(workspace:GetChildren()) do
  225. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  226. local t = v.Torso
  227. local dist = t.Position - obj.Position.magnitude
  228. if dist <= distance and dist < last then
  229. last = dist
  230. lastx = v
  231. end
  232. end
  233. end
  234. return lastx
  235. end
  236.  
  237. makeconfetti = function(place)
  238. local cp = Instance.new("Part")
  239. cp.Name = "Effect"
  240. cp.FormFactor = "Custom"
  241. cp.Size = Vector3.new(0, 0, 0)
  242. cp.CanCollide = false
  243. cp.Transparency = 1
  244. cp.CFrame = place.CFrame
  245. cp.Velocity = Vector3.new(math.random() - 0.5, math.random(), math.random() - 0.5).unit * 20
  246. delay(0.25 + math.random() * 0.2, function()
  247. if cp ~= nil then
  248. cp.Velocity = cp.Velocity * 0.1
  249. wait(0.5)
  250. end
  251. if cp ~= nil then
  252. cp.Velocity = Vector3.new(0, -1, 0)
  253. wait(1)
  254. end
  255. if cp ~= nil then
  256. cp.Velocity = Vector3.new(0, -2, 0)
  257. end
  258. end
  259. )
  260. local cbbg = Instance.new("BillboardGui")
  261. cbbg.Adornee = cp
  262. cbbg.Size = UDim2.new(7, 0, 4, 0)
  263. local cil = Instance.new("ImageLabel")
  264. cil.BackgroundTransparency = 1
  265. cil.BorderSizePixel = 0
  266. cil.Size = UDim2.new(1, 0, 1, 0)
  267. cil.Image = "http://www.roblox.com/asset/?id=104606998"
  268. cil.Parent = cbbg
  269. cbbg.Parent = cp
  270. local bf = Instance.new("BodyForce")
  271. bf.force = Vector3.new(0, cp:GetMass() * 196.2, 0)
  272. bf.Parent = cp
  273. game.Debris:AddItem(cp, 7 + math.random())
  274. cp.Parent = game.Workspace
  275. end
  276.  
  277. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  278. if hit.Parent == nil then
  279. return
  280. end
  281. local h = hit.Parent:FindFirstChild("Humanoid")
  282. for _,v in pairs(hit.Parent:children()) do
  283. if v:IsA("Humanoid") then
  284. h = v
  285. end
  286. end
  287. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  288. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  289. return
  290. end
  291. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  292. game:GetService("Debris"):AddItem(c, 0.5)
  293. if HitSound ~= nil and HitPitch ~= nil then
  294. CreateSound(HitSound, hit, 1, HitPitch)
  295. end
  296. local Damage = math.random(minim, maxim)
  297. local blocked = false
  298. local block = hit.Parent:findFirstChild("Block")
  299. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  300. blocked = true
  301. block.Value = block.Value - 1
  302. print(block.Value)
  303. end
  304. if blocked == false then
  305. h.Health = h.Health - Damage
  306. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  307. else
  308. h.Health = h.Health - Damage / 2
  309. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  310. end
  311. if Type == "Knockdown" then
  312. local hum = hit.Parent.Humanoid
  313. hum.PlatformStand = true
  314. coroutine.resume(coroutine.create(function(HHumanoid)
  315. swait(1)
  316. HHumanoid.PlatformStand = false
  317. end
  318. ), hum)
  319. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  320. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  321. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  322. game:GetService("Debris"):AddItem(bodvol, 0.5)
  323. game:GetService("Debris"):AddItem(rl, 0.5)
  324. else
  325. do
  326. if Type == "Normal" then
  327. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  328. if knockback > 0 then
  329. vp.Parent = hit.Parent.Torso
  330. end
  331. game:GetService("Debris"):AddItem(vp, 0.5)
  332. else
  333. do
  334. if Type == "Up" then
  335. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  336. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  337. else
  338. do
  339. if Type == "DarkUp" then
  340. coroutine.resume(coroutine.create(function()
  341. for i = 0, 1, 0.1 do
  342. swait()
  343. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  344. end
  345. end
  346. ))
  347. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  348. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  349. else
  350. do
  351. if Type == "Snare" then
  352. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  353. game:GetService("Debris"):AddItem(bp, 1)
  354. else
  355. do
  356. if Type == "Freeze" then
  357. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  358. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  359. hit.Parent.Torso.Anchored = true
  360. coroutine.resume(coroutine.create(function(Part)
  361. swait(1.5)
  362. Part.Anchored = false
  363. end
  364. ), hit.Parent.Torso)
  365. game:GetService("Debris"):AddItem(BodPos, 3)
  366. game:GetService("Debris"):AddItem(BodGy, 3)
  367. end
  368. do
  369. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  370. game:GetService("Debris"):AddItem(debounce, Delay)
  371. c = Instance.new("ObjectValue")
  372. c.Name = "creator"
  373. c.Value = Player
  374. c.Parent = h
  375. game:GetService("Debris"):AddItem(c, 0.5)
  376. end
  377. end
  378. end
  379. end
  380. end
  381. end
  382. end
  383. end
  384. end
  385. end
  386. end
  387. end
  388. end
  389.  
  390. ShowDamage = function(Pos, Text, Time, Color)
  391. local Rate = 0.033333333333333
  392. if not Pos then
  393. local Pos = Vector3.new(0, 0, 0)
  394. end
  395. local Text = Text or ""
  396. local Time = Time or 2
  397. if not Color then
  398. local Color = Color3.new(1, 0, 1)
  399. end
  400. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  401. EffectPart.Anchored = true
  402. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  403. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  404. game.Debris:AddItem(EffectPart, Time + 0.1)
  405. EffectPart.Parent = game:GetService("Workspace")
  406. delay(0, function()
  407. local Frames = Time / Rate
  408. for Frame = 1, Frames do
  409. wait(Rate)
  410. local Percent = Frame / Frames
  411. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  412. TextLabel.TextTransparency = Percent
  413. end
  414. if EffectPart and EffectPart.Parent then
  415. EffectPart:Destroy()
  416. end
  417. end
  418. )
  419. end
  420.  
  421. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  422. for _,c in pairs(workspace:children()) do
  423. local hum = c:findFirstChild("Humanoid")
  424. if hum ~= nil then
  425. local head = c:findFirstChild("Torso")
  426. if head ~= nil then
  427. local targ = head.Position - Part.Position
  428. local mag = targ.magnitude
  429. if mag <= magni and c.Name ~= Player.Name then
  430. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  431. end
  432. end
  433. end
  434. end
  435. end
  436.  
  437. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Handle", Vector3.new(0.700000048, 0.369999945, 0.280000091))
  438. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.318675995, -0.93935442, -0.100952148, -0.000336287718, -2.69723296e-005, -1.0000006, 0.000396225107, -1.0000006, 2.75748262e-005, -1.00000048, -0.00039631853, 0.000336177269))
  439. CreateMesh("SpecialMesh", Handle, Enum.MeshType.Cylinder, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.5))
  440. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.700000048, 0.369999945, 0.280000091))
  441. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000131, -7.35742219e-007, 1.21101039e-007, -7.35742219e-007, 1.00000131, 1.02765625e-007, 1.21101039e-007, 1.02765625e-007, 1.00000119))
  442. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.5))
  443. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 1.19999993, 1.20000005))
  444. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.885063887, -0.850027084, 0.139083862, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  445. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  446. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000018, 0.919999897, 0.929999948))
  447. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.65007019, -1.12043953, 1.41934061, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  448. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1.10000002, 1.10000002))
  449. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.600000024, 0.299999893, 0.300000012))
  450. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.685011983, -1.30000305, -0.310913086, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  451. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  452. Barrel = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Barrel", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  453. BarrelWeld = CreateWeld(m, Handle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.149612427, -0.839944839, -1.62507761, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  454. CreateMesh("SpecialMesh", Barrel, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 2))
  455. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  456. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15965271, -0.839952469, -1.31507254, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  457. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 1.10000002, 2))
  458. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  459. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.47496772, -1.08996964, -0.560287476, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  460. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  461. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  462. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.159637451, -0.839942932, -1.66506422, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  463. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.29999995, 1.29999995, 2))
  464. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.300000012, 0.299999893, 0.300000012))
  465. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38499403, -1.29999924, -0.31072998, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  466. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  467. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  468. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.315048695, -1.19999695, 0.139648438, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  469. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 2))
  470. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.400000006, 0.299999893, 0.300000012))
  471. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.09998894, 0.985217929, -0.310440063, -1.00000107, 3.09870593e-005, 0.000671288697, -3.00194297e-005, -1.00000107, -0.000640959595, 0.000671499758, -0.000640785322, 1.00000072))
  472. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  473. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  474. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.315003157, -1.15942001, 0.391784668, -1.05658009e-005, -1.00000119, -0.000331618445, 0.866236687, -0.000175954381, 0.49963668, -0.499636561, -0.000281113171, 0.866236448))
  475. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 2))
  476. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  477. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.315113783, -1.3240509, -0.106765747, -3.80144447e-005, -1.00000119, -0.000286904746, 0.86581111, 0.000109338136, -0.500373363, 0.500373662, -0.000267956813, 0.86581111))
  478. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 2))
  479. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1.23000002, 1.24000001, 1.20000005))
  480. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.144668579, -0.849945068, -0.335066319, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  481. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  482. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.300000012, 0.299999893, 0.300000012))
  483. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.985000253, -1.29999733, -0.310958862, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  484. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  485. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(2.21000004, 0.299999893, 0.300000012))
  486. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.12000227, -1.06999397, -0.380722046, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  487. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
  488. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(1, 0.789999902, 0.709999919))
  489. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.140090942, -1.10543823, 1.39955378, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  490. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1.04999995, 6, 2.29999995))
  491. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.220000029, 0.919999897, 0.929999948))
  492. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.459915161, -1.09041786, 1.47965384, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  493. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  494. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1.48000002, 0.819999933, 1.20000005))
  495. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.424940348, -0.660030365, 0.139541626, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  496. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  497. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 0.789999902, 0.709999919))
  498. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.140090942, -1.10543823, 1.39955378, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  499. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 5, 2.5))
  500. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  501. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.41492677, -1.12001801, 0.6197052, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  502. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  503. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  504. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.4149673, -1.11997604, -0.360290527, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  505. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  506. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  507. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15965271, -0.839946747, -1.48507142, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  508. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 1.20000005, 2))
  509. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000018, 0.919999897, 0.929999948))
  510. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.509918213, -1.09041595, 1.4796629, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  511. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1.10000002, 1.10000002))
  512. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.18999994, 1.11999989, 0.49999997))
  513. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.154647827, -0.809949875, -1.31507277, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  514. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  515. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(1.13, 1.11999989, 0.49999997))
  516. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.1746521, -0.809955597, -1.38508785, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  517. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  518. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(1.18999994, 1.11999989, 0.49999997))
  519. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.154647827, -0.809947968, -1.45508766, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  520. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  521. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 1.19999993, 1.20000005))
  522. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.885063887, -0.850027084, 0.139083862, -2.97294828e-005, -1.00000131, -1.88043923e-005, 1.00000095, -3.11155127e-005, -0.00063769205, 0.000637921738, -1.86290417e-005, 1.00000095))
  523. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  524. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.700000048, 0.369999945, 0.280000091))
  525. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.349996567, -0.606202126, 0, 0.866040528, 0.499982536, 0.000292716955, -0.499987632, 0.866041303, 0.000282988942, -0.000108518783, -0.000385537889, 1.00000477))
  526. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.5))
  527. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.220000058, 0.619999945, 0.710000098))
  528. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.290046692, -0.834992409, 0.184677124, 1.00000131, -7.35742219e-007, 1.21101039e-007, -7.35742219e-007, 1.00000131, 1.02765625e-007, 1.21101039e-007, 1.02765625e-007, 1.00000119))
  529. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  530. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(2.1500001, 0.819999933, 0.780000031))
  531. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409978628, -0.559999466, 0.124420166, -2.96669386e-005, -1.00000143, 6.75041229e-005, 1.00000095, -3.1113872e-005, -0.000724008365, 0.000724240555, 6.76767959e-005, 1.00000083))
  532. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  533. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  534. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  535. prt.Anchored = true
  536. prt.CFrame = cframe
  537. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  538. game:GetService("Debris"):AddItem(prt, 10)
  539. if Type == 1 or Type == nil then
  540. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  541. else
  542. if Type == 2 then
  543. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  544. end
  545. end
  546. end
  547.  
  548. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  549. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  550. prt.Anchored = true
  551. prt.CFrame = cframe
  552. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  553. game:GetService("Debris"):AddItem(prt, 10)
  554. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  555. end
  556.  
  557. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  558. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  559. prt.Anchored = true
  560. prt.CFrame = cframe
  561. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  562. game:GetService("Debris"):AddItem(prt, 2)
  563. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  564. for i = 0, 1, delay do
  565. swait()
  566. Part.Transparency = i
  567. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  568. end
  569. Part.Parent = nil
  570. end
  571. ), prt, msh, (math.random(0, 1) + math.random()) / 5)
  572. end
  573.  
  574. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  575. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  581. end
  582.  
  583. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  584. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  585. prt.Anchored = true
  586. prt.CFrame = cframe
  587. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  588. game:GetService("Debris"):AddItem(prt, 10)
  589. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  590. end
  591.  
  592. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  593. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  594. prt.Anchored = true
  595. prt.CFrame = cframe
  596. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  597. game:GetService("Debris"):AddItem(prt, 10)
  598. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  599. end
  600.  
  601. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  602. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  603. prt.Anchored = true
  604. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  605. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  606. local num = math.random(10, 50) / 1000
  607. game:GetService("Debris"):AddItem(prt, 10)
  608. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  609. end
  610.  
  611. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  612. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  613. prt.Anchored = true
  614. prt.CFrame = cframe
  615. msh = CreateMesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  616. game:GetService("Debris"):AddItem(prt, 5)
  617. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  618. end
  619.  
  620. MagniCamShake = function(Part, magni, cam, intens)
  621. for _,c in pairs(workspace:children()) do
  622. if game.Players:GetPlayerFromCharacter(c) ~= nil and c:findFirstChild("Torso") ~= nil then
  623. local targ = c.Torso.Position - Part.Position
  624. local mag = targ.magnitude
  625. if mag <= magni then
  626. camshake = script[cam]:Clone()
  627. camshake.Intensity.Value = mag / intens
  628. camshake.Parent = game.Players.LocalPlayer.Backpack
  629. camshake.Disabled = false
  630. end
  631. end
  632. end
  633. end
  634.  
  635. ShootCannon = function(asd, mindam, maxdam)
  636. local r = {BrickColor.new("Bright violet"), BrickColor.new("Bright green"), BrickColor.new("Really black"), BrickColor.new("Bright blue"), BrickColor.new("Maroon")}
  637. CreateSound("rbxassetid://263623156", asd, 0.5, 0.5)
  638. CreateSound("rbxassetid://263610152", asd, 0.5, 0.5)
  639. CreateSound("rbxassetid://263623139", asd, 0.5, 0.8)
  640. local MainPos = asd.Position
  641. local MainPos2 = mouse.Hit.p
  642. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  643. num = 30
  644. coroutine.resume(coroutine.create(function()
  645. repeat
  646. wait()
  647. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, Character)
  648. local mag = (MainPos - pos).magnitude
  649. MagicCylinder2(r[math.random(1, 3)], CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, 0.5, 0, 0.5, 0.03)
  650. MainPos = MainPos + MouseLook.lookVector * 10
  651. num = num - 1
  652. if hit ~= nil then
  653. num = 0
  654. local ref = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Reference", vt())
  655. ref.Anchored = true
  656. ref.CFrame = cf(pos)
  657. game.Debris:AddItem(ref, 3)
  658. MagniDamage(ref, mag, mindam, maxdam, 1, "Normal")
  659. CreateSound("rbxassetid://263610039", ref, 1, 1)
  660. CreateSound("rbxassetid://263610111", ref, 1, 1)
  661. BlockEffect(r[math.random(1, 2)], cf(pos), 5, 5, 5, 5, 5, 5, 0.05)
  662. SphereEffect(r[math.random(1, 2)], cf(pos), 5, 5, 5, 10, 10, 10, 0.05)
  663. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  664. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  665. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  666. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  667. RingEffect(r[math.random(1, 2)], cf(pos) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 5, 5, 5, 0, 0.05)
  668. game:GetService("Debris"):AddItem(ref, 1)
  669. MagniDamage(ref, 10, mindam, maxdam, 10, "Normal")
  670. end
  671. until num <= 0
  672. end
  673. ))
  674. end
  675.  
  676. Confetti = function()
  677. attack = true
  678. for i = 0, 1, 0.1 do
  679. swait()
  680. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  681. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  682. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  683. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  684. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  685. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  686. end
  687. makeconfetti(Barrel)
  688. for i = 1, 30 do
  689. local confetti = CreatePart(workspace, "SmoothPlastic", 0, 0, BrickColor.Random(), "Confetti", vt())
  690. local cmsh = CreateMesh("BlockMesh", confetti, "", "", vt(0, 0, 0), vt(3, 1, 3))
  691. confetti.CFrame = Barrel.CFrame * cf(math.random(-300, 300) / 100, math.random(-300, 300) / 100, math.random(-300, 300) / 100)
  692. confetti.Velocity = RootPart.CFrame.lookVector * math.random(40, 60) + vt(math.random(-100, 100) / 100, 1, math.random(-100, 100) / 100) * math.random(60, 80)
  693. game:GetService("Debris"):AddItem(confetti, 5)
  694. end
  695. CreateSound("http://www.roblox.com/asset/?id=104605494", RootPart, 1, 1)
  696. CreateSound("rbxassetid://263610152", RootPart, 0.5, 0.5)
  697. SphereEffect(BrickColor.new("White"), Barrel.CFrame, 5, 5, 5, 10, 10, 10, 0.05)
  698. MagniDamage(RootPart, 15, -30, -10, "Normal")
  699. for i = 0, 1, 0.1 do
  700. swait()
  701. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  702. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  703. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(200), math.rad(0), math.rad(0)), 0.3)
  704. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  705. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  706. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  707. end
  708. attack = false
  709. end
  710.  
  711. Party = function()
  712. attack = true
  713. Humanoid.JumpPower = 250
  714. for i = 0, 1, 0.1 do
  715. swait()
  716. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  717. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  718. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  719. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  720. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  721. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  722. end
  723. makeconfetti(Barrel)
  724. for i = 1, 30 do
  725. local confetti = CreatePart(workspace, "SmoothPlastic", 0, 0, BrickColor.Random(), "Confetti", vt())
  726. local cmsh = CreateMesh("BlockMesh", confetti, "", "", vt(0, 0, 0), vt(3, 1, 3))
  727. confetti.CFrame = Barrel.CFrame * cf(math.random(-300, 300) / 100, math.random(-300, 300) / 100, math.random(-300, 300) / 100)
  728. confetti.Velocity = RootPart.CFrame.lookVector * math.random(40, 60) + vt(math.random(-100, 100) / 100, 1, math.random(-100, 100) / 100) * math.random(60, 80)
  729. game:GetService("Debris"):AddItem(confetti, 5)
  730. end
  731. Humanoid.Jump = true
  732. CreateSound("http://www.roblox.com/asset/?id=104605494", RootPart, 1, 1)
  733. CreateSound("rbxassetid://263610152", RootPart, 0.5, 0.5)
  734. SphereEffect(BrickColor.Random(), Barrel.CFrame, 5, 5, 5, 10, 10, 10, 0.05)
  735. RingEffect(BrickColor.Random(), RootPart.CFrame * angles(1.47, 0, 0), 5, 5, 5, 1, 1, 3, 0.01)
  736. RingEffect(BrickColor.Random(), RootPart.CFrame * angles(1.47, 0, 0), 8, 8, 8, 2, 2, 3, 0.01)
  737. RingEffect(BrickColor.Random(), RootPart.CFrame * angles(1.47, 0, 0), 9, 9, 9, 3, 3, 3, 0.01)
  738. MagniDamage(RootPart, 30, 30, 50, "Knockdown")
  739. wait(2)
  740. Humanoid.JumpPower = 50
  741. attack = false
  742. end
  743.  
  744. local aiming = false
  745. Aim = function()
  746. attack = true
  747. aiming = true
  748. Humanoid.WalkSpeed = 0
  749. for i = 0, 1, 0.1 do
  750. swait()
  751. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  752. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  753. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  754. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  755. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  756. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  757. end
  758. end
  759.  
  760. local blast = false
  761. Shot = function()
  762. Humanoid.WalkSpeed = 16
  763.  
  764. if blast == false then
  765. blast = true
  766. ShootCannon(Barrel, 20, 30)
  767. end
  768. SphereEffect(BrickColor.new("White"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  769. for i = 0, 1, 0.1 do
  770. swait()
  771. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  772. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  773. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(120), math.rad(0), math.rad(-60)), 0.3)
  774. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(120), math.rad(0), math.rad(60)), 0.3)
  775. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  776. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  777. end
  778. blast = false
  779. attack = false
  780. aiming = false
  781. end
  782.  
  783. taunt = function()
  784. attack = true
  785. for i = 0, 1, 0.2 do
  786. swait()
  787. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  788. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  789. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  790. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.8, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3)
  791. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  792. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  793. end
  794. for i = 0, 1, 0.2 do
  795. swait()
  796. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  797. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  798. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  799. LW.C0 = clerp(LW.C0, CFrame.new(-1.8, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
  800. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  801. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  802. end
  803. for i = 0, 1, 0.2 do
  804. swait()
  805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  806. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  807. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  808. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3)
  809. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  810. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  811. end
  812. for i = 0, 1, 0.2 do
  813. swait()
  814. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  815. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  816. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  817. LW.C0 = clerp(LW.C0, CFrame.new(-1.8, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
  818. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  819. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  820. end
  821. for i = 0, 1, 0.2 do
  822. swait()
  823. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  824. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  825. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  826. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3)
  827. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  828. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  829. end
  830. attack = false
  831. end
  832.  
  833. EatMuffin = function()
  834. attack = true
  835. CreateSound("http://www.roblox.com/asset/?id=130776108", RootPart, 1, 1)
  836. for i = 0, 1, 0.1 do
  837. swait()
  838. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  839. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  840. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(80)), 0.3)
  841. LW.C0 = clerp(LW.C0, CFrame.new(-1.8, 0.8, 0.2) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.3)
  842. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  843. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  844. end
  845. print("Muffins")
  846. local Muffin = Instance.new("Part")
  847. Muffin.formFactor = 1
  848. Muffin.CanCollide = false
  849. Muffin.Name = "Muffin"
  850. Muffin.Locked = true
  851. Muffin.Size = Vector3.new(1, 1, 1)
  852. Muffin.Parent = effect
  853. local Muffinmesh = Instance.new("SpecialMesh")
  854. Muffinmesh.Parent = Muffin
  855. Muffinmesh.MeshId = "http://www.roblox.com/asset/?id=16211718"
  856. Muffinmesh.TextureId = "http://www.roblox.com/asset/?id=16211592"
  857. Muffinmesh.Scale = Vector3.new(1, 1, 1)
  858. local Muffinweld = Instance.new("Weld")
  859. Muffinweld.Parent = Muffin
  860. Muffinweld.Part0 = Muffin
  861. Muffinweld.Part1 = LeftArm
  862. Muffinweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0, math.rad(-60)) * CFrame.new(0, 1, 0.5)
  863. for i = 0, 1, 0.1 do
  864. swait()
  865. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  866. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  867. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  868. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  869. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  870. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  871. end
  872. for i = 0, 1, 0.1 do
  873. swait()
  874. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  875. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3)
  876. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  877. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.1)
  878. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  879. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  880. end
  881. for i = 1, 5 do
  882. wait(0.45)
  883. Character.Humanoid.Health = Character.Humanoid.Health + 5
  884. end
  885. Muffin.Parent = nil
  886. attack = false
  887. end
  888.  
  889. ob1u = function()
  890. end
  891.  
  892. ob1d = function()
  893. if attack == true and aiming == true and cooco <= coolcool then
  894. Shot()
  895. coolcool = 0
  896. aiming = false
  897. attack = false
  898. end
  899. end
  900.  
  901. key = function(k)
  902. k = k:lower()
  903. if attack == false and k == "f" then
  904. Aim()
  905. else
  906. if attack == false and co1 <= cooldown1 and k == "z" then
  907. cooldown1 = 0
  908. taunt()
  909. else
  910. if attack == false and co2 <= cooldown2 and k == "x" then
  911. cooldown2 = 0
  912. EatMuffin()
  913. else
  914. if attack == false and co3 <= cooldown3 and k == "c" then
  915. cooldown3 = 0
  916. Confetti()
  917. else
  918. if attack == false and co4 <= cooldown4 and k == "v" then
  919. cooldown4 = 0
  920. Party()
  921. end
  922. end
  923. end
  924. end
  925. end
  926. end
  927.  
  928. Bin = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  929. ds = function(mouse)
  930. end
  931.  
  932. s = function(mouse)
  933. print("Selected")
  934. mouse.Button1Down:connect(function()
  935. ob1d(mouse)
  936. end
  937. )
  938. mouse.Button1Up:connect(function()
  939. ob1u(mouse)
  940. end
  941. )
  942. mouse.KeyDown:connect(key)
  943. end
  944.  
  945. Bin.Selected:connect(s)
  946. Bin.Deselected:connect(ds)
  947. updateskills = function()
  948. if coolcool <= cooco then
  949. coolcool = coolcool + 0.033333333333333
  950. text5.Text = "Reloading"
  951. else
  952. text5.Text = "[F] Aim"
  953. end
  954. if cooldown1 <= co1 then
  955. cooldown1 = cooldown1 + 1
  956. end
  957. if cooldown2 <= co2 then
  958. cooldown2 = cooldown2 + 1
  959. end
  960. if cooldown3 <= co3 then
  961. cooldown3 = cooldown3 + 1
  962. end
  963. if cooldown4 <= co4 then
  964. cooldown4 = cooldown4 + 1
  965. end
  966. end
  967.  
  968. while 1 do
  969. swait()
  970. updateskills()
  971. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  972. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  973. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  974. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  975. bar5:TweenSize(UDim2.new(1 * (coolcool / cooco), 0, 1, 0), "Out", "Bounce", 0.5)
  976. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  977. velocity = RootPart.Velocity.y
  978. sine = sine + change
  979. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  980. if equipped == true or equipped == false then
  981. if 1 < RootPart.Velocity.y and hit == nil then
  982. Anim = "Jump"
  983. if attack == false then
  984. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  985. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(50)), 0.3)
  986. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  987. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(50)), 0.3)
  988. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  989. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  990. end
  991. else
  992. if RootPart.Velocity.y < -1 and hit == nil then
  993. Anim = "Fall"
  994. if attack == false then
  995. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  996. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.3)
  997. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  998. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(50)), 0.3)
  999. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1000. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1001. end
  1002. else
  1003. if Torsovelocity.x < 1 or Torsovelocity.z < 1 and hit ~= nil then
  1004. Anim = "Idle"
  1005. if attack == false then
  1006. change = 1
  1007. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1008. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1009. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  1010. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(50)), 0.3)
  1011. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1012. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1013. end
  1014. else
  1015. if 2 < Torsovelocity.x or Torsovelocity.z > 2 and hit ~= nil then
  1016. Anim = "Walk"
  1017. if attack == false then
  1018. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1019. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(40), math.rad(0), math.rad(-40)), 0.3)
  1021. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(40), math.rad(0), math.rad(40)), 0.3)
  1022. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1023. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029. end
  1030. if 0 < #Effects then
  1031. for e = 1, #Effects do
  1032. if Effects[e] ~= nil then
  1033. local Thing = Effects[e]
  1034. if Thing ~= nil then
  1035. local Part = Thing[1]
  1036. local Mode = Thing[2]
  1037. local Delay = Thing[3]
  1038. local IncX = Thing[4]
  1039. local IncY = Thing[5]
  1040. local IncZ = Thing[6]
  1041. if Thing[1].Transparency <= 1 then
  1042. if Thing[2] == "Block1" then
  1043. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1044. Mesh = Thing[1].Mesh
  1045. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1046. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1047. else
  1048. if Thing[2] == "Block2" then
  1049. Thing[1].CFrame = Thing[1].CFrame
  1050. Mesh = Thing[7]
  1051. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1052. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1053. else
  1054. if Thing[2] == "Cylinder" then
  1055. Mesh = Thing[1].Mesh
  1056. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1057. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1058. else
  1059. if Thing[2] == "Blood" then
  1060. Mesh = Thing[7]
  1061. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1062. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1063. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1064. else
  1065. if Thing[2] == "Elec" then
  1066. Mesh = Thing[1].Mesh
  1067. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1068. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1069. else
  1070. if Thing[2] == "Disappear" then
  1071. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1072. else
  1073. if Thing[2] == "Shatter" then
  1074. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1075. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1076. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1077. Thing[6] = Thing[6] + Thing[5]
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083. end
  1084. end
  1085. else
  1086. Part.Parent = nil
  1087. table.remove(Effects, e)
  1088. end
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement