aweeb

meramus

Feb 15th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.85 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125. self._btrs[name] = self.Heartbeat:Connect(fun)
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143. --[[<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><>
  144.  
  145.  
  146. Malcom was the host of his own 1920's radio broadcast, "Malcom Maddox's Magical Extravaganza!". Despite being fairly wealthy for the time, he always dreamed of getting up and performing in front of a crowd.
  147.  
  148. This is what he did. Well... He would have done this if a large bus wasn't driving at 50 miles over the speed limit, and into his unsuspecting face.
  149.  
  150. So, Malcom died.. Sort of. You see, people tend to stick around after they die if they have unfinished business. Malcom was no exception. After the shock of realizing that he was dead, he decided to go to his big show anyways.
  151.  
  152. Unfortunately, people that are alive don't really see dead people walking around, so when the patrons of the theatre saw Malcom, they wet their pants and ran down the fire escape.
  153.  
  154. After this incident, Malcom has hidden himself to the rest of the world, his mystical wonders hidden.. Until now.
  155.  
  156.  
  157. <><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  158.  
  159.  
  160. <>Controls<>
  161.  
  162. Z: Disappearing Act <> Use your hat to warp to your mouse cursor.
  163.  
  164.  
  165. X: Hat Trick <> Pull three different things out of your hat. (Its randomized!)
  166.  
  167.  
  168. C: Draw a Card <> Draw a card that does one of five effects. (Its randomized!)
  169.  
  170.  
  171. V: lul
  172.  
  173.  
  174. T: Heads Off <> Tell your audience that they will be amazed!
  175.  
  176. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>]]--
  177.  
  178.  
  179.  
  180.  
  181.  
  182. warn("Malcom Maddox was created by SezHu.")
  183.  
  184. wait(1 / 40)
  185. Effects = { }
  186. local Player = game:GetService("Players").LocalPlayer
  187. local Mouse = Player:GetMouse()
  188. local Character = Player.Character
  189. local Humanoid = Character.Humanoid
  190. local Head = Character.Head
  191. local RootPart = Character.HumanoidRootPart
  192. local Torso = Character.Torso
  193. local LeftArm = Character["Left Arm"]
  194. local RightArm = Character["Right Arm"]
  195. local LeftLeg = Character["Left Leg"]
  196. local RightLeg = Character["Right Leg"]
  197. local Camera = game.Workspace.CurrentCamera
  198. local RootJoint = RootPart.RootJoint
  199. local Equipped = false
  200. local Attack = false
  201. local Anim = 'Idle'
  202. local Idle = 0
  203. local UIS = game:GetService("UserInputService")
  204. local Combo = 1
  205. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  206. local Velocity = RootPart.Velocity.y
  207. local Sine = 0
  208. local Change = 1
  209. local killcount = 1
  210. local lasersize = 0
  211. local charsize = 2
  212. local CF = CFrame.new
  213. local ANGLES = CFrame.Angles
  214. local RAD = math.rad
  215. local Neck = Torso["Neck"]
  216. local silenced = false
  217. Head.face:Destroy()
  218. Head.Transparency = 1
  219. if(not Humanoid:FindFirstChildOfClass'ForceField')then Instance.new("ForceField",Character).Visible = false end
  220.  
  221. local function soundbork(obj)
  222. if obj:IsA("Sound") and obj.Name ~= "aa" then
  223. obj.Looped = false
  224. obj.Pitch = 1
  225. obj.Volume = 0
  226. return
  227. end
  228.  
  229.  
  230. local children = obj:GetChildren()
  231. for i = 1, #children do
  232. soundbork(children[i])
  233. end
  234. return
  235. end
  236.  
  237. maincol = Torso.Color
  238. maincol2 = Torso.Color
  239.  
  240. local RbxUtility = LoadLibrary("RbxUtility")
  241. local Create = RbxUtility.Create
  242.  
  243. Humanoid.WalkSpeed = 16
  244. Humanoid.JumpPower = 50
  245. Humanoid.Animator.Parent = nil
  246. Character.Animate.Parent = nil
  247.  
  248. local newMotor = function(part0, part1, c0, c1)
  249. local w = Create('Motor'){
  250. Parent = part0,
  251. Part0 = part0,
  252. Part1 = part1,
  253. C0 = c0,
  254. C1 = c1,
  255. }
  256. return w
  257. end
  258.  
  259.  
  260. function clerp(a, b, t)
  261. return a:lerp(b, t)
  262. end
  263.  
  264. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  265. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  266. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  267. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  268. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  269. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  270. RootJoint.C1 = CFrame.new(0, 0, 0)
  271. RootJoint.C0 = CFrame.new(0, 0, 0)
  272. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  273. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  274. local rarmc1 = RW.C1
  275. local larmc1 = LW.C1
  276. local rlegc1 = RH.C1
  277. local llegc1 = LH.C1
  278. local resetc1 = false
  279. Humanoid.Parent = nil
  280. RootPart.Size = RootPart.Size*charsize
  281. Torso.Size = Torso.Size*charsize
  282. RightArm.Size = RightArm.Size*charsize
  283. RightLeg.Size = RightLeg.Size*charsize
  284. LeftArm.Size = LeftArm.Size*charsize
  285. LeftLeg.Size = LeftLeg.Size*charsize
  286. Head.Size = Head.Size*charsize
  287. RootJoint.Parent = RootPart
  288. Neck.Parent = Torso
  289. RW.Parent = Torso
  290. LW.Parent = Torso
  291. RH.Parent = Torso
  292. LH.Parent = Torso
  293. Humanoid.Parent = Character
  294.  
  295. ch = Character:GetChildren()
  296. for i = 1, #ch do
  297. if ch[i].Name == "Torso" then
  298. ch[i].roblox.Transparency = 1
  299. elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" then
  300. ch[i]:Destroy()
  301. end
  302. end
  303.  
  304.  
  305. --<><><><><><><><><><><><>--
  306.  
  307. --Passive Effects--
  308.  
  309. --<><><><><><><><><><><><>--
  310.  
  311. spawn(function()
  312. while true do
  313. wait(.1)
  314. if Anim == "Idle" or Anim == "Walk" then
  315. local refpart = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.Random(), "Effect", Vector3.new(math.random(1,3)/6,math.random(1,3)/6,math.random(1,3)/6))
  316. refpart.Anchored = false
  317. refpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),80,math.random(-30,30))
  318. refpart.CanCollide = false
  319. local GRAVITY_ACCELERATION = 3.05
  320. local bodyForce = Instance.new('BodyForce', refpart)
  321. bodyForce.Name = 'Antigravity'
  322. bodyForce.force = Vector3.new(0, refpart:GetMass() * GRAVITY_ACCELERATION, 0)
  323. local rl = Create("BodyAngularVelocity"){
  324. P = 300,
  325. maxTorque = Vector3.new(2, 2, 2),
  326. angularvelocity = Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)),
  327. Parent = refpart,}
  328. table.insert(Effects, {refpart,"Disappear",.003})
  329. game:GetService("Debris"):AddItem(refpart, 10)
  330. end
  331. end
  332. end)
  333.  
  334.  
  335. --<><><><><><><><><><><><>--
  336.  
  337. --Tables and Songs--
  338.  
  339. --<><><><><><><><><><><><>--
  340.  
  341. local songs = {
  342. 518693107,
  343. 518693107,
  344. 518693107,
  345. 518693107,
  346. 518693107,
  347. 518693107,
  348. }
  349.  
  350. local quotes = {
  351. "IT IS I MERASMUS!",
  352. "MERASMUS ARIVES ON A TIDE OF BLOOD!",
  353. "COWER FOOLS FOR IT IS I MERASMUS!",
  354. "NO MERE MORTAL CAN RESIST THE MAGIC OF MERASMUS",
  355. "I AM MERASMUS THE WIZARD!",
  356. "SOLDIER YOU WHERE THE WORST ROOMATE!",
  357. }
  358.  
  359. playlist = Instance.new("Sound", Torso)
  360. playlist.SoundId = "rbxassetid://994337539"
  361. playlist.Volume = 3
  362. playlist.TimePosition = 0
  363. playlist.Name = "aa"
  364. playlist:Play()
  365.  
  366. --<><><><><><><><><><><><>--
  367.  
  368. --Clothes--
  369.  
  370. --<><><><><><><><><><><><>--
  371.  
  372. local top = Instance.new("Shirt")
  373. top.ShirtTemplate = "rbxassetid://763651534"
  374. top.Parent = Character
  375. top.Name = "Cloth"
  376. local bottom = Instance.new("Pants")
  377. bottom.PantsTemplate = "rbxassetid://755235792"
  378. bottom.Parent = Character
  379. bottom.Name = "Cloth"
  380.  
  381. --<><><><><><><><><><><><>--
  382.  
  383. --Name Tag--
  384.  
  385. --<><><><><><><><><><><><>--
  386.  
  387. --[[Humanoid.DisplayDistanceType = "None"
  388. local naeeym2 = Instance.new("BillboardGui",Character)
  389. naeeym2.AlwaysOnTop = false
  390. naeeym2.Size = UDim2.new(5,35,2,15)
  391. naeeym2.StudsOffset = Vector3.new(0,7,0)
  392. naeeym2.MaxDistance = 75
  393. naeeym2.Adornee = Character.Torso
  394. naeeym2.Name = "Maddox the Swing Spirit"
  395. local tecks2 = Instance.new("TextLabel",naeeym2)
  396. tecks2.BackgroundTransparency = 1
  397. tecks2.TextScaled = true
  398. tecks2.BorderSizePixel = 0
  399. tecks2.Text = "Maddox"
  400. tecks2.Font = "Cartoon"
  401. tecks2.TextSize = 30
  402. tecks2.TextStrokeTransparency = 0
  403. tecks2.TextColor3 = Color3.new(1,1,1)
  404. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  405. tecks2.Size = UDim2.new(1,0,0.5,0)
  406. tecks2.Parent = naeeym2]]--
  407.  
  408. function PlayAnimationFromTable(table, speed, bool)
  409. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  410. Neck.C0 = clerp(Neck.C0, table[2], speed)
  411. RW.C0 = clerp(RW.C0, table[3], speed)
  412. LW.C0 = clerp(LW.C0, table[4], speed)
  413. RH.C0 = clerp(RH.C0, table[5], speed)
  414. LH.C0 = clerp(LH.C0, table[6], speed)
  415. if bool == true then
  416. if resetc1 == false then
  417. resetc1 = true
  418. RootJoint.C1 = RootJoint.C1
  419. Torso.Neck.C1 = Torso.Neck.C1
  420. RW.C1 = rarmc1
  421. LW.C1 = larmc1
  422. RH.C1 = rlegc1
  423. LH.C1 = llegc1
  424. end
  425. end
  426. end
  427.  
  428. ArtificialHB = Create("BindableEvent"){
  429. Parent = script,
  430. Name = "Heartbeat",
  431. }
  432.  
  433. script:WaitForChild("Heartbeat")
  434.  
  435. frame = 1 / 45
  436. tf = 0
  437. allowframeloss = false
  438. tossremainder = false
  439. lastframe = tick()
  440. script.Heartbeat:Fire()
  441.  
  442. game:GetService("RunService").Heartbeat:connect(function(s, p)
  443. tf = tf + s
  444. if tf >= frame then
  445. if allowframeloss then
  446. script.Heartbeat:Fire()
  447. lastframe = tick()
  448. else
  449. for i = 1, math.floor(tf / frame) do
  450. script.Heartbeat:Fire()
  451. end
  452. lastframe = tick()
  453. end
  454. if tossremainder then
  455. tf = 0
  456. else
  457. tf = tf - frame * math.floor(tf / frame)
  458. end
  459. end
  460. end)
  461.  
  462. function swait(num)
  463. if num == 0 or num == nil then
  464. ArtificialHB.Event:wait()
  465. else
  466. for i = 0, num do
  467. ArtificialHB.Event:wait()
  468. end
  469. end
  470. end
  471.  
  472. local m = Create("Model"){
  473. Parent = Character,
  474. Name = "WeaponModel"
  475. }
  476.  
  477. local m2 = Create("Model"){
  478. Parent = Character,
  479. Name = "WeaponModel2"
  480. }
  481.  
  482. function RemoveOutlines(part)
  483. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  484. end
  485.  
  486. CFuncs = {
  487. Part = {
  488. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  489. local Part = Create("Part"){
  490. Parent = Parent,
  491. Reflectance = Reflectance,
  492. Transparency = Transparency,
  493. CanCollide = false,
  494. Locked = true,
  495. BrickColor = BrickColor.new(tostring(BColor)),
  496. Name = Name,
  497. Size = Size,
  498. Material = Material,
  499. }
  500. RemoveOutlines(Part)
  501. if Size == Vector3.new() then
  502. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  503. else
  504. Part.Size = Size
  505. end
  506. return Part
  507. end;
  508. };
  509.  
  510. Mesh = {
  511. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  512. local Msh = Create(Mesh){
  513. Parent = Part,
  514. Offset = OffSet,
  515. Scale = Scale,
  516. }
  517. if Mesh == "SpecialMesh" then
  518. Msh.MeshType = MeshType
  519. Msh.MeshId = MeshId
  520. end
  521. return Msh
  522. end;
  523. };
  524.  
  525. Weld = {
  526. Create = function(Parent, Part0, Part1, C0, C1)
  527. local Weld = Create("Weld"){
  528. Parent = Parent,
  529. Part0 = Part0,
  530. Part1 = Part1,
  531. C0 = C0,
  532. C1 = C1,
  533. }
  534. return Weld
  535. end;
  536. };
  537.  
  538. Sound = {
  539. Create = function(id, par, vol, pit)
  540. local Sound = Create("Sound"){
  541. Volume = vol,
  542. Pitch = pit or 1,
  543. SoundId = "rbxassetid://" .. id,
  544. Parent = par or workspace,
  545. Name = "aa"
  546. }
  547. Sound:play()
  548. return Sound
  549. end;
  550. };
  551.  
  552. Decal = {
  553. Create = function(Color, Texture, Transparency, Name, Parent)
  554. local Decal = Create("Decal"){
  555. Color3 = Color,
  556. Texture = "rbxassetid://" .. Texture,
  557. Transparency = Transparency,
  558. Name = Name,
  559. Parent = Parent,
  560. }
  561. return Decal
  562. end;
  563. };
  564.  
  565. BillboardGui = {
  566. Create = function(Parent, Image, Position, Size)
  567. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  568. BillPar.CFrame = CFrame.new(Position)
  569. local Bill = Create("BillboardGui"){
  570. Parent = BillPar,
  571. Adornee = BillPar,
  572. Size = UDim2.new(1, 0, 1, 0),
  573. SizeOffset = Vector2.new(Size, Size),
  574. }
  575. local d = Create("ImageLabel", Bill){
  576. Parent = Bill,
  577. BackgroundTransparency = 1,
  578. Size = UDim2.new(1, 0, 1, 0),
  579. Image = "rbxassetid://" .. Image,
  580. }
  581. return BillPar
  582. end
  583. };
  584.  
  585. ParticleEmitter = {
  586. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  587. local Particle = Create("ParticleEmitter"){
  588. Parent = Parent,
  589. Color = ColorSequence.new(Color1, Color2),
  590. LightEmission = LightEmission,
  591. Size = Size,
  592. Texture = Texture,
  593. Transparency = Transparency,
  594. ZOffset = ZOffset,
  595. Acceleration = Accel,
  596. Drag = Drag,
  597. LockedToPart = LockedToPart,
  598. VelocityInheritance = VelocityInheritance,
  599. EmissionDirection = EmissionDirection,
  600. Enabled = Enabled,
  601. Lifetime = LifeTime,
  602. Rate = Rate,
  603. Rotation = Rotation,
  604. RotSpeed = RotSpeed,
  605. Speed = Speed,
  606. VelocitySpread = VelocitySpread,
  607. }
  608. return Particle
  609. end;
  610. };
  611.  
  612. CreateTemplate = {
  613.  
  614. };
  615. }
  616.  
  617.  
  618.  
  619.  
  620. function RayCast(Position, Direction, Range, Ignore)
  621. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  622. end
  623.  
  624. FindNearestTorso = function(pos)
  625. local list = (game.Workspace:children())
  626. local torso = nil
  627. local dist = 1000
  628. local temp, human, temp2 = nil, nil, nil
  629. for x = 1, #list do
  630. temp2 = list[x]
  631. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  632. temp = temp2:findFirstChild("Torso")
  633. human = temp2:findFirstChild("Humanoid")
  634. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  635. local dohit = true
  636. if dohit == true then
  637. torso = temp
  638. dist = (temp.Position - pos).magnitude
  639. end
  640. end
  641. end
  642. end
  643. return torso, dist
  644. end
  645.  
  646. Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
  647.  
  648. local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  649. prt.Anchored = true
  650. prt.CFrame = cframe
  651. prt.Material = "Neon"
  652. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  653. game:GetService("Debris"):AddItem(prt, 10)
  654. coroutine.resume(coroutine.create(function(Part, Mesh)
  655.  
  656. for i = 0, 1, delay do
  657. swait()
  658. Part.Transparency = i
  659. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  660. end
  661. Part.Parent = nil
  662. end
  663. ), prt, msh)
  664. end
  665.  
  666.  
  667.  
  668.  
  669. shoot = function(mouse, aoe , partt, SpreadAmount, multiply)
  670.  
  671. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  672. local MainPos = partt.Position
  673. local MainPos2 = mouse.Hit.p + SpreadVectors
  674. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  675. local speed = 1000
  676. local num = 1
  677. coroutine.resume(coroutine.create(function()
  678.  
  679. repeat
  680. swait()
  681. local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  682. local mag = (MainPos - pos).magnitude
  683. Laser(BrickColor.new(maincol), 0, CFrame.new((MainPos + pos)/2, pos) * CFrame.Angles(1.57, 0, 0), 5, mag * (speed / (speed / 2)), 20, 20, 0, 20, 0.8)
  684. MainPos = MainPos + MouseLook.lookVector * speed
  685. num = num - 1
  686. MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0)
  687. if hit ~= nil then
  688. num = 0
  689. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  690. refpart.Anchored = true
  691. refpart.CFrame = CFrame.new(pos)
  692. game:GetService("Debris"):AddItem(refpart, 2)
  693. end
  694. do
  695. if num <= 0 then
  696. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  697. refpart.Anchored = true
  698. refpart.CFrame = CFrame.new(pos)
  699. Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 10, 10, 10, 10, 10, 10, .1, 1)
  700. Effects.Break.Create(BrickColor.new(maincol), refpart.CFrame, 2, 10, 2)
  701. if hit ~= nil then
  702. MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0)
  703. end
  704. game:GetService("Debris"):AddItem(refpart, 0)
  705. end
  706. end
  707. until num <= 0
  708. end
  709. ))
  710. end
  711.  
  712.  
  713. Laser2 = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
  714.  
  715. local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5+lasersize, 0.5, 0.5+lasersize))
  716. prt.Anchored = true
  717. prt.CFrame = cframe
  718. prt.Material = "Neon"
  719. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  720. game:GetService("Debris"):AddItem(prt, 10)
  721. coroutine.resume(coroutine.create(function(Part, Mesh)
  722.  
  723. for i = 0, 1, delay do
  724. swait()
  725. Part.Transparency = i
  726. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  727. end
  728. Part.Parent = nil
  729. end
  730. ), prt, msh)
  731. end
  732.  
  733.  
  734.  
  735.  
  736. shoot2 = function(mouse, aoe , partt, SpreadAmount, multiply)
  737.  
  738. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  739. local MainPos = partt.Position
  740. local MainPos2 = mouse.Hit.p + SpreadVectors
  741. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  742. local speed = 1000
  743. local num = 1
  744. coroutine.resume(coroutine.create(function()
  745.  
  746. repeat
  747. swait()
  748. local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  749. local mag = (MainPos - pos).magnitude
  750. Laser2(BrickColor.new(maincol), 0, CFrame.new((MainPos + pos)/2, pos) * CFrame.Angles(1.57, 0, 0), 5, mag * (speed / (speed / 2)), .8, .8, 0, .8, 0.8)
  751. MainPos = MainPos + MouseLook.lookVector * speed
  752. num = num - 1
  753. MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0)
  754. if hit ~= nil then
  755. num = 0
  756. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  757. refpart.Anchored = true
  758. refpart.CFrame = CFrame.new(pos)
  759. game:GetService("Debris"):AddItem(refpart, 2)
  760. end
  761. do
  762. if num <= 0 then
  763. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  764. refpart.Anchored = true
  765. refpart.CFrame = CFrame.new(pos)
  766. Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 1, 1, 1, 1+lasersize, 1+lasersize, 1+lasersize, .05, 1)
  767. if hit ~= nil then
  768. MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0)
  769. end
  770. game:GetService("Debris"):AddItem(refpart, 0)
  771. end
  772. end
  773. until num <= 0
  774. end
  775. ))
  776. end
  777.  
  778.  
  779.  
  780.  
  781. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  782. if hit.Parent == nil then
  783. return
  784. end
  785. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  786. for _, v in pairs(hit.Parent:children()) do
  787. if v:IsA("Humanoid") then
  788. h = v
  789. end
  790. end
  791. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  792. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  793. if hit.Parent.DebounceHit.Value == true then
  794. return
  795. end
  796. end
  797. local c = Create("ObjectValue"){
  798. Name = "creator",
  799. Value = game:service("Players").LocalPlayer,
  800. Parent = h,
  801. }
  802. game:GetService("Debris"):AddItem(c, .5)
  803. if HitSound ~= nil and HitPitch ~= nil then
  804. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  805. end
  806. local Damage = math.random(minim, maxim)
  807. local blocked = false
  808. local block = hit.Parent:findFirstChild("Block")
  809. if block ~= nil then
  810. if block.className == "IntValue" then
  811. if block.Value > 0 then
  812. blocked = true
  813. block.Value = block.Value - 1
  814. print(block.Value)
  815. end
  816. end
  817. end
  818. if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100 and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  819. for i = 0, 1, 0.1 do
  820. Effects.Break.Create(BrickColor.new("White"), hit.CFrame, 1, 4, 1)
  821. end
  822. CFuncs.Sound.Create("402174682", Torso, 5, 1)
  823. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "Poof!", 5, BrickColor.new("White").Color, BrickColor.new("Really black").Color)
  824. for _,v in pairs(hit.Parent:children()) do
  825. if v:IsA("Part") then
  826. v.Transparency = 1
  827. end
  828. end
  829. hit.Parent:BreakJoints()
  830. else
  831. h.Health = h.Health - Damage
  832. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("White").Color, BrickColor.new("Really black").Color)
  833. end
  834. if Type == "Seizure" then
  835. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  836. Effects.InnerSphere.Create(BrickColor.new("Eggplant"), hit.Parent.Torso.CFrame, 100, 2, .01)
  837. spawn(function()
  838. for i = 1, 1000 do
  839. swait()
  840. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  841. hum.MaxHealth = hum.MaxHealth - 10
  842. hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.new(math.random(-1,1)/2,0,math.random(-1,1)/2)
  843. end
  844. end)
  845. elseif Type == "Paralyze" then
  846. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  847. coroutine.resume(coroutine.create(function(HHumanoid)
  848. CFuncs.Sound.Create("209545844", hit.Parent.Torso, 1, 1)
  849. CFuncs.Sound.Create("1143596511", hit.Parent.Torso, 1, 1)
  850. Effects.InnerSphere.Create(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 100, 2, .01)
  851. local rl = Create("BodyAngularVelocity"){
  852. P = 3000,
  853. maxTorque = Vector3.new(50, 50, 50)* 200000000000,
  854. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  855. Parent = hit,
  856. }
  857. wait(.1)
  858. rl:Destroy()
  859. for i = 1, 500 do
  860. local rl = Create("BodyAngularVelocity"){
  861. P = 3000,
  862. maxTorque = Vector3.new(50, 50, 50)* 20,
  863. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  864. Parent = hit,
  865. }
  866. hum.Health = hum.Health - .01
  867. hum.PlatformStand = true
  868. for _,v in pairs(hit.Parent:children()) do
  869. if v:IsA("Part") then
  870. local oldcol = v.BrickColor
  871. v.BrickColor = BrickColor.new("New Yeller")
  872. wait(.1)
  873. v.BrickColor = oldcol
  874. end
  875. end
  876. rl:Destroy()
  877. end
  878.  
  879. HHumanoid.PlatformStand = false
  880. end), hum)
  881. elseif Type == "Knockdown" then
  882. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  883. hum.PlatformStand = true
  884. coroutine.resume(coroutine.create(function(HHumanoid)
  885. swait(1)
  886. HHumanoid.PlatformStand = false
  887. end), hum)
  888. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  889. local bodvol = Create("BodyVelocity"){
  890. velocity = angle * knockback,
  891. P = 5000,
  892. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  893. Parent = hit,
  894. }
  895. local rl = Create("BodyAngularVelocity"){
  896. P = 3000,
  897. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  898. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  899. Parent = hit,
  900. }
  901. game:GetService("Debris"):AddItem(bodvol, .5)
  902. game:GetService("Debris"):AddItem(rl, .5)
  903.  
  904. elseif Type == "Normal" then
  905. local vp = Create("BodyVelocity"){
  906. P = 500,
  907. maxForce = Vector3.new(math.huge, 0, math.huge),
  908. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  909. }
  910.  
  911.  
  912.  
  913.  
  914. if knockback > 0 then
  915. vp.Parent = hit.Parent.Torso
  916. end
  917. game:GetService("Debris"):AddItem(vp, .5)
  918. elseif Type == "Float" then
  919. local vp = Create("BodyVelocity"){
  920. P = 10,
  921. maxForce = Vector3.new(math.huge, 0, math.huge),
  922. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  923. }
  924. print(hit.Parent)
  925. if knockback > 0 then
  926. vp.Parent = hit.Parent.Torso
  927. end
  928. local hum = hit.Parent.Humanoid
  929. hum.PlatformStand = true
  930. local TotalMass = 0
  931. for _, part in pairs(hit.Parent:GetChildren()) do
  932. if part:IsA("Part") then
  933. TotalMass = TotalMass + part:GetMass()
  934. end
  935. end
  936. local ForceOfGravity = -200 * TotalMass
  937. local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
  938. floatybits.force = Vector3.new(0, -ForceOfGravity, 0)
  939. local rl = Create("BodyAngularVelocity"){
  940. P = 500,
  941. maxTorque = Vector3.new(10, 10, 10),
  942. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  943. Parent = hit,
  944. }
  945. game:GetService("Debris"):AddItem(rl, 20)
  946. game:GetService("Debris"):AddItem(floatybits, 20)
  947. game:GetService("Debris"):AddItem(vp, .5)
  948.  
  949. spawn(function()
  950. for i = 1, 70 do
  951. wait(.2)
  952. Effects.Block.Create(BrickColor.new("White"), hit.Parent.Torso.CFrame * CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-8,8))*CFrame.Angles(0,math.rad(90),0), .1, .1, .1, .1, 2, .1, .04, 2)
  953. end
  954. end)
  955.  
  956. elseif Type == "Up" then
  957. local bodyVelocity = Create("BodyVelocity"){
  958. velocity = Vector3.new(0, 20, 0),
  959. P = 5000,
  960. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  961. Parent = hit,
  962. }
  963. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  964. elseif Type == "DarkUp" then
  965. coroutine.resume(coroutine.create(function()
  966. for i = 0, 1, 0.1 do
  967. swait()
  968. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  969. end
  970. end))
  971. local bodyVelocity = Create("BodyVelocity"){
  972. velocity = Vector3.new(0, 20, 0),
  973. P = 5000,
  974. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  975. Parent = hit,
  976. }
  977. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  978. elseif Type == "Snare" then
  979. local bp = Create("BodyPosition"){
  980. P = 2000,
  981. D = 100,
  982. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  983. position = hit.Parent.Torso.Position,
  984. Parent = hit.Parent.Torso,
  985. }
  986. game:GetService("Debris"):AddItem(bp, 1)
  987. elseif Type == "Freeze" then
  988. local BodPos = Create("BodyPosition"){
  989. P = 50000,
  990. D = 1000,
  991. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  992. position = hit.Parent.Torso.Position,
  993. Parent = hit.Parent.Torso,
  994. }
  995. local BodGy = Create("BodyGyro") {
  996. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  997. P = 20e+003,
  998. Parent = hit.Parent.Torso,
  999. CFrame = hit.Parent.Torso.CFrame,
  1000. }
  1001. CFuncs.Sound.Create("585135955", hit.Parent.Torso, 5, 1)
  1002. Effects.Block.Create(BrickColor.new("Baby blue"), hit.Parent.Torso.CFrame, 3, 3, 3, 3, 5, 3, .02, 2)
  1003. hit.Parent.Torso.Anchored = true
  1004. coroutine.resume(coroutine.create(function(Part)
  1005. swait(1.5)
  1006. Part.Anchored = false
  1007. end), hit.Parent.Torso)
  1008. game:GetService("Debris"):AddItem(BodPos, 3)
  1009. game:GetService("Debris"):AddItem(BodGy, 3)
  1010. end
  1011. local debounce = Create("BoolValue"){
  1012. Name = "DebounceHit",
  1013. Parent = hit.Parent,
  1014. Value = true,
  1015. }
  1016. if Delay > 0 then
  1017. game:GetService("Debris"):AddItem(debounce, Delay)
  1018. c = Create("ObjectValue"){
  1019. Name = "creator",
  1020. Value = Player,
  1021. Parent = h,
  1022. }
  1023. end
  1024. game:GetService("Debris"):AddItem(c, .5)
  1025. end
  1026. end
  1027.  
  1028. function ShowDamage(Pos, Text, Time, Color, Color2)
  1029. local Rate = (1 / 45)
  1030. local Pos = (Pos or Vector3.new(0, 0, 0))
  1031. local Text = (Text or "")
  1032. local Time = (Time or 2)
  1033. local Color = (Color or Color3.new(1, 0, 1))
  1034. local Color2 = (Color2 or Color3.new(1, 0, 1))
  1035. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1036. EffectPart.Anchored = false
  1037. EffectPart.CFrame = CFrame.new(Pos)
  1038. EffectPart.Velocity = EffectPart.CFrame.upVector * math.random(60,70)
  1039. local sizebit = 5
  1040. local BillboardGui = Create("BillboardGui"){
  1041. Size = UDim2.new(sizebit, 0, sizebit, 0),
  1042. Adornee = EffectPart,
  1043. Parent = EffectPart,
  1044. }
  1045. local TextLabel = Create("TextLabel"){
  1046. BackgroundTransparency = 1,
  1047. Size = UDim2.new(1, 0, 1, 0),
  1048. Text = Text,
  1049. Font = "Cartoon",
  1050. TextColor3 = Color,
  1051. TextStrokeColor3 = Color2,
  1052. TextStrokeTransparency = 0,
  1053. TextScaled = true,
  1054. Parent = BillboardGui,
  1055. }
  1056. game.Debris:AddItem(EffectPart, (Time))
  1057. EffectPart.Parent = game:GetService("Workspace")
  1058. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, 0, 0)
  1059. delay(0, function()
  1060. local Frames = (Time / Rate)
  1061. wait(.5)
  1062. EffectPart.Anchored = true
  1063. wait(.5)
  1064. for Frame = 1, Frames do
  1065. wait(Rate)
  1066. BillboardGui.Size = UDim2.new(sizebit, 0, sizebit, 0)
  1067. local Percent = (Frame / Frames)
  1068. TextLabel.TextTransparency = Percent
  1069. sizebit = sizebit - .4
  1070. end
  1071. if EffectPart and EffectPart.Parent then
  1072. EffectPart:Destroy()
  1073. end
  1074. end)
  1075. end
  1076.  
  1077. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitPitch)
  1078. for _, c in pairs(workspace:children()) do
  1079. local hum = c:findFirstChildOfClass("Humanoid")
  1080. if hum ~= nil then
  1081. local head = c:findFirstChild("Torso")
  1082. if head ~= nil then
  1083. local targ = head.Position - Part.Position
  1084. local mag = targ.magnitude
  1085. if mag <= Magnitude and c.Name ~= Player.Name then
  1086. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitPitch)
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
  1092.  
  1093. EffectModel = Create("Model"){
  1094. Parent = Character,
  1095. Name = "EffectModel",
  1096. }
  1097.  
  1098. Effects = {
  1099. Block = {
  1100. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1101. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1102. prt.Anchored = true
  1103. prt.CFrame = cframe
  1104. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1105. game:GetService("Debris"):AddItem(prt, 10)
  1106. if Type == 1 or Type == nil then
  1107. table.insert(Effects, {
  1108. prt,
  1109. "Block1",
  1110. delay,
  1111. x3,
  1112. y3,
  1113. z3,
  1114. msh
  1115. })
  1116. elseif Type == 2 then
  1117. table.insert(Effects, {
  1118. prt,
  1119. "Block2",
  1120. delay,
  1121. x3,
  1122. y3,
  1123. z3,
  1124. msh
  1125. })
  1126. end
  1127. end;
  1128. };
  1129.  
  1130. Cylinder = {
  1131. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1132. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  1133. prt.Anchored = true
  1134. prt.CFrame = cframe
  1135. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1136. game:GetService("Debris"):AddItem(prt, 2)
  1137. table.insert(Effects, {
  1138. prt,
  1139. "Cylinder",
  1140. delay,
  1141. x3,
  1142. y3,
  1143. z3,
  1144. msh
  1145. })
  1146. end;
  1147. };
  1148.  
  1149. Head = {
  1150. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1151. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1152. prt.Anchored = true
  1153. prt.CFrame = cframe
  1154. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1155. game:GetService("Debris"):AddItem(prt, 10)
  1156. table.insert(Effects, {
  1157. prt,
  1158. "Cylinder",
  1159. delay,
  1160. x3,
  1161. y3,
  1162. z3,
  1163. msh
  1164. })
  1165. end;
  1166. };
  1167.  
  1168. Sphere1 = {
  1169. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1170. local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new())
  1171. prt.Anchored = true
  1172. prt.CFrame = cframe
  1173. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1174. game:GetService("Debris"):AddItem(prt, 10)
  1175. table.insert(Effects, {
  1176. prt,
  1177. "Cylinder",
  1178. delay,
  1179. x3,
  1180. y3,
  1181. z3,
  1182. msh
  1183. })
  1184. end;
  1185. };
  1186.  
  1187. Sphere2 = {
  1188. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1189. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1190. prt.Anchored = true
  1191. prt.CFrame = cframe
  1192. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1193. game:GetService("Debris"):AddItem(prt, 10)
  1194. table.insert(Effects, {
  1195. prt,
  1196. "Cylinder",
  1197. delay,
  1198. x3,
  1199. y3,
  1200. z3,
  1201. msh
  1202. })
  1203. end;
  1204. };
  1205.  
  1206. InnerSphere = {
  1207. Create = function(brickcolor, cframe, size, shrinkspeed, appspeed)
  1208. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1209. prt.Anchored = true
  1210. prt.CFrame = cframe
  1211. prt.Transparency = 1
  1212. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(size, size, size))
  1213. game:GetService("Debris"):AddItem(prt, 10)
  1214. spawn(function()
  1215. while true do
  1216. if size ~= 0 then
  1217. swait()
  1218. msh.Scale = Vector3.new(size, size, size)
  1219. size = size - shrinkspeed or size - 1
  1220. prt.Transparency = prt.Transparency - appspeed
  1221. else prt:Destroy() break
  1222. end
  1223. end
  1224. end)
  1225. end;
  1226. };
  1227.  
  1228. Elect = {
  1229. Create = function(cff, x, y, z)
  1230. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new(maincol), "Part", Vector3.new(1, 1, 1))
  1231. prt.Anchored = true
  1232. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1233. prt.CFrame = CFrame.new(prt.Position)
  1234. game:GetService("Debris"):AddItem(prt, 2)
  1235. local xval = math.random() / 2
  1236. local yval = math.random() / 2
  1237. local zval = math.random() / 2
  1238. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1239. table.insert(Effects, {
  1240. prt,
  1241. "Elec",
  1242. 0.1,
  1243. x,
  1244. y,
  1245. z,
  1246. xval,
  1247. yval,
  1248. zval
  1249. })
  1250. end;
  1251.  
  1252. };
  1253.  
  1254. Ring = {
  1255. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1256. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1257. prt.Anchored = true
  1258. prt.CFrame = cframe
  1259. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1260. game:GetService("Debris"):AddItem(prt, 10)
  1261. table.insert(Effects, {
  1262. prt,
  1263. "Cylinder",
  1264. delay,
  1265. x3,
  1266. y3,
  1267. z3,
  1268. msh
  1269. })
  1270. end;
  1271. };
  1272.  
  1273.  
  1274. Wave = {
  1275. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1276. local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new())
  1277. prt.Anchored = true
  1278. prt.CFrame = cframe
  1279. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1280. game:GetService("Debris"):AddItem(prt, 10)
  1281. table.insert(Effects, {
  1282. prt,
  1283. "Cylinder",
  1284. delay,
  1285. x3,
  1286. y3,
  1287. z3,
  1288. msh
  1289. })
  1290. end;
  1291. };
  1292.  
  1293. Break = {
  1294. Create = function(brickcolor, cframe, x1, y1, z1)
  1295. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1296. prt.Anchored = true
  1297. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1298. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1299. local num = math.random(10, 50) / 1000
  1300. game:GetService("Debris"):AddItem(prt, 10)
  1301. table.insert(Effects, {
  1302. prt,
  1303. "Shatter",
  1304. num,
  1305. prt.CFrame,
  1306. math.random() - math.random(),
  1307. 0,
  1308. math.random(50, 100) / 100
  1309. })
  1310. end;
  1311. };
  1312.  
  1313. Fire = {
  1314. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1315. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1316. prt.Anchored = true
  1317. prt.CFrame = cframe
  1318. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1319. game:GetService("Debris"):AddItem(prt, 10)
  1320. table.insert(Effects, {
  1321. prt,
  1322. "Fire",
  1323. delay,
  1324. 1,
  1325. 1,
  1326. 1,
  1327. msh
  1328. })
  1329. end;
  1330. };
  1331.  
  1332. FireWave = {
  1333. Create = function(brickcolor, cframe, x1, y1, z1)
  1334. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1335. prt.Anchored = true
  1336. prt.CFrame = cframe
  1337. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1338. local d = Create("Decal"){
  1339. Parent = prt,
  1340. Texture = "rbxassetid://26356434",
  1341. Face = "Top",
  1342. }
  1343. local d = Create("Decal"){
  1344. Parent = prt,
  1345. Texture = "rbxassetid://26356434",
  1346. Face = "Bottom",
  1347. }
  1348. game:GetService("Debris"):AddItem(prt, 10)
  1349. table.insert(Effects, {
  1350. prt,
  1351. "FireWave",
  1352. 1,
  1353. 30,
  1354. math.random(400, 600) / 100,
  1355. msh
  1356. })
  1357. end;
  1358. };
  1359.  
  1360. Lightning = {
  1361. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1362. local magz = (p0 - p1).magnitude
  1363. local curpos = p0
  1364. local trz = {
  1365. -ofs,
  1366. ofs
  1367. }
  1368. for i = 1, tym do
  1369. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1370. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1371. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1372. li.Material = "Neon"
  1373. if tym == i then
  1374. local magz2 = (curpos - p1).magnitude
  1375. li.Size = Vector3.new(th, th, magz2)
  1376. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1377. table.insert(Effects, {
  1378. li,
  1379. "Disappear",
  1380. last
  1381. })
  1382. else
  1383. do
  1384. do
  1385. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1386. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1387. game.Debris:AddItem(li, 10)
  1388. table.insert(Effects, {
  1389. li,
  1390. "Disappear",
  1391. last
  1392. })
  1393. end
  1394. end
  1395. end
  1396. end
  1397. end
  1398. };
  1399.  
  1400. EffectTemplate = {
  1401.  
  1402. };
  1403. }
  1404.  
  1405. Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(2, 2, 2))
  1406. HatWeld=CFuncs.Weld.Create(m,Character["Head"],Hat,CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),CFrame.new(0.0365142822, -0.719758511, 0.0314178467, -1.00000834, 4.61186464e-05, -2.77473146e-06, 4.86522331e-05, 1, 5.23036442e-06, 2.92961045e-06, 5.51708399e-06, -1))
  1407. meh=CFuncs.Mesh.Create("SpecialMesh",Hat,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=14028428",Vector3.new(0, 0, 0),Vector3.new(2, 2, 2)) --here
  1408. meh.TextureId = "http://www.roblox.com/asset/?id=14027832"
  1409.  
  1410.  
  1411.  
  1412. for _,v in pairs(m2:children()) do
  1413. if v:IsA("Part") and v.Name == "pand" then
  1414. v.Transparency = 1
  1415. end
  1416. end
  1417.  
  1418.  
  1419. --Start neccessary functions here
  1420.  
  1421. function Tween(obj,props,time,easing,direction,repeats,backwards)
  1422. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  1423. local tween = game:service'TweenService':Create(obj, info, props)
  1424.  
  1425. tween:Play()
  1426. end
  1427.  
  1428. function Trace()
  1429. for _,v in next, Character:GetChildren() do
  1430. if(v:IsA'Part') and v ~= RootPart then
  1431. local trace = Instance.new("Part")
  1432. trace.Parent = workspace
  1433. trace.Size = v.Size
  1434. trace.Material = Enum.Material.Neon
  1435. trace.Color = maincol
  1436. trace.Transparency = .3
  1437. trace.Anchored = true
  1438. trace.CanCollide = false
  1439. trace.CFrame = v.CFrame
  1440. Tween(trace,{Transparency=1},.5)
  1441. game:GetService("Debris"):AddItem(trace, 1)
  1442. if v.Name == "Head" then
  1443. local mehs = Instance.new("CylinderMesh",trace)
  1444. mehs.Scale = Vector3.new(1.25,1.25,1.25)
  1445. end
  1446. end
  1447. end
  1448. end
  1449.  
  1450.  
  1451. function ducks()
  1452. for i = 0, 3, 0.1 do
  1453. swait()
  1454. PlayAnimationFromTable({
  1455. CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1456. CFrame.new(0.0227765162, 2.36835814, -2.66195869, 1, 6.9886446e-06, 4.02331352e-06, -2.08616257e-06, -0.258818984, 0.965925932, 7.77840614e-06, -0.965925932, -0.258818954) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1457. CFrame.new(2.02689314, 1.83810854, -1.15534818, 0, 0.342032284, 0.939688325, 0.965925872, -0.243209288, 0.0885244831, 0.258819103, 0.907669246, -0.330377817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1458. CFrame.new(-1.95138168, 1.77444541, -1.29813623, 0.122574523, -0.49350512, -0.861062288, -0.961303234, -0.274721175, 0.0206083059, -0.246722341, 0.825215876, -0.508081853) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1459. CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1460. CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1461. }, .3, false)
  1462. end
  1463. for i = 1, 2 do
  1464. for i = 0, 1, 0.1 do
  1465. swait()
  1466. PlayAnimationFromTable({
  1467. CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1468. CFrame.new(0.266832203, 2.16833496, -3.91155529, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1469. CFrame.new(2.06273198, 1.47406721, -1.53684735, 0, 0.707109213, 0.707104445, 0.965925872, -0.183012128, 0.18301338, 0.258819103, 0.683010459, -0.683015108) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1470. CFrame.new(-1.81047451, 1.47174859, -1.69800615, 0.056022916, -0.766043305, -0.640342951, -0.979530215, -0.166366309, 0.113326266, -0.193344265, 0.620886445, -0.759682953) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1471. CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1472. CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1473. }, .3, false)
  1474. end
  1475. for i = 0, 1, 0.1 do
  1476. swait()
  1477. PlayAnimationFromTable({
  1478. CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1479. CFrame.new(0.266833276, 0.933555186, -3.88168001, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1480. CFrame.new(1.94570374, 1.23016787, -1.402282, -0.183013678, 0.683017731, 0.707101703, 0.98037976, 0.0732246935, 0.183013454, 0.0732241273, 0.726722121, -0.68301785) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1481. CFrame.new(-1.88480496, 1.2523725, -1.43212485, -0.144152611, -0.754439712, -0.640344262, -0.989212334, 0.0928238332, 0.113325842, -0.0260583311, 0.649772704, -0.759681821) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1482. CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1483. CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1484. }, .3, false)
  1485. end
  1486. end
  1487. CFuncs.Sound.Create("186440645", Hat, 3, 1)
  1488. for i = 0, 3, 0.1 do
  1489. swait()
  1490. PlayAnimationFromTable({
  1491. CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1492. CFrame.new(0.0227765162, 2.36835814, -2.66195869, 1, 6.9886446e-06, 4.02331352e-06, -2.08616257e-06, -0.258818984, 0.965925932, 7.77840614e-06, -0.965925932, -0.258818954) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1493. CFrame.new(2.02689314, 1.83810854, -1.15534818, 0, 0.342032284, 0.939688325, 0.965925872, -0.243209288, 0.0885244831, 0.258819103, 0.907669246, -0.330377817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1494. CFrame.new(-1.95138168, 1.77444541, -1.29813623, 0.122574523, -0.49350512, -0.861062288, -0.961303234, -0.274721175, 0.0206083059, -0.246722341, 0.825215876, -0.508081853) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1495. CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1496. CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1497. }, .2, false)
  1498. end
  1499. qwek = Instance.new("Sound", Torso)
  1500. qwek.SoundId = "rbxassetid://271006579"
  1501. qwek.Looped = true
  1502. qwek.Volume = 5
  1503. qwek.Pitch = .8
  1504. qwek:Play()
  1505. qwek2 = Instance.new("Sound", Torso)
  1506. qwek2.SoundId = "rbxassetid://271006579"
  1507. qwek2.Looped = true
  1508. qwek2.Volume = 5
  1509. qwek2.Pitch = 1
  1510. qwek2:Play()
  1511. qwek3 = Instance.new("Sound", Torso)
  1512. qwek3.SoundId = "rbxassetid://271006579"
  1513. qwek3.Looped = true
  1514. qwek3.Volume = 5
  1515. qwek3.Pitch = 1.3
  1516. qwek3:Play()
  1517. for i = 0, 10, 0.1 do
  1518. swait()
  1519. PlayAnimationFromTable({
  1520. CFrame.new(0, -0, 0, 1.00000095, 8.12113285e-07, -3.02493572e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819371, 0.965926886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1521. CFrame.new(0.022777468, 5.66071653, -1.77978086, 1.00000095, 0, -1.31428242e-05, -3.39746475e-06, 0.965925872, -0.258819371, 1.26957893e-05, 0.258819103, 0.965926886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1522. CFrame.new(2.11248255, 3.06429124, -1.06128931, -0.16178672, 0.22040607, 0.961898208, -0.0629198849, -0.97505945, 0.212838948, 0.984818876, -0.0260875672, 0.171619475) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1523. CFrame.new(-1.96463084, 3.01722312, -1.42708611, -0.0698213056, -0.227341518, -0.971309781, -0.0906620771, -0.968209505, 0.233133003, -0.993432164, 0.104339033, 0.0469902605) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1524. CFrame.new(1.00000072, -2.54767346, -0.749675632, 1.00000083, -7.37607479e-07, 2.01165676e-06, 5.58793545e-07, 0.996194899, 0.0871552527, -2.05636024e-06, -0.0871557891, 0.996195674) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1525. CFrame.new(-1.00000954, -3.15354609, -1.14733529, 1.00000095, 0, 3.11434269e-06, 8.12113285e-07, 0.965925872, -0.258819371, -3.02493572e-06, 0.258819103, 0.965926886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1526. }, .3, false)
  1527. local duk=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Bright yellow","duk",Vector3.new(2, 2, 2))
  1528. local moosh = CFuncs.Mesh.Create("SpecialMesh",duk,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9419831",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1529. duk.CFrame = Hat.CFrame
  1530. duk.CanCollide = false
  1531. duk.Velocity = Vector3.new(math.random(-20,20),math.random(-60,60),math.random(-20,20))
  1532. duk.Name = "duk"
  1533. table.insert(Effects, {duk,"Disappear",.01})
  1534. game:GetService("Debris"):AddItem(duk, 3)
  1535. moosh.TextureId = "http://www.roblox.com/asset/?id=9419827"
  1536. Torso.Velocity=RootPart.CFrame.upVector*100
  1537. local con = duk.Touched:connect(function(hit)
  1538. if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "duk" and hit ~= m then
  1539. MagnitudeDamage(duk, 5, 30, 30, 20, "Normal", " ", 1)
  1540. Effects.Sphere2.Create(BrickColor.new("Gold"), duk.CFrame, 1, 1, 1, 2, 2, 2, .05)
  1541. end
  1542. end)
  1543. end
  1544. qwek3:Destroy()
  1545. qwek2:Destroy()
  1546. qwek:Destroy()
  1547. end
  1548.  
  1549.  
  1550.  
  1551. function pocketpandora()
  1552. Humanoid.AutoRotate = true
  1553. local PocketPandora=CFuncs.Part.Create( workspace,Enum.Material.Plastic,0,1,"Medium stone grey","PocketPandora",Vector3.new(0.512000322, 0.652799785, 0.640000045))
  1554. local PocketPandoraWeld=CFuncs.Weld.Create( workspace,Character["Right Arm"],PocketPandora,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.24340057, 1.26152658, 0.0355987549, 4.68637081e-05, 1.00000417, -2.85994429e-06, 1, -4.81304887e-05, 5.30673697e-06, 5.45002649e-06, -2.93751145e-06, -1))
  1555. local pand=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"Fossil","pand",Vector3.new(0.406399965, 0.419200003, 0.320000023))
  1556. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0229816437, -0.655731201, 0.0416564941, -0.0293540079, -0.0772550181, -0.99657923, -0.392862946, 0.917665899, -0.0595659576, 0.919128418, 0.389770478, -0.0572878011))
  1557. CFuncs.Mesh.Create("SpecialMesh",pand,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=13520257",Vector3.new(0, 0, 0),Vector3.new(0.480000019, 0.480000019, 0.480000019))
  1558. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1559. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0497894287, 0.0101809502, -0.68927002, 0.995689869, 0.00945099909, 0.0922629908, 0.00786634162, 0.982604146, -0.185545981, -0.0924115852, 0.185471997, 0.978294551))
  1560. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1561. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.197641373, 0.841140389, 0.0983428955, -0.209358081, -0.0334330127, -0.977267385, 0.00387890753, 0.999379098, -0.0350204371, 0.977831423, -0.0111225415, -0.209098414))
  1562. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1563. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0201187134, 0.0265302658, -0.746673584, -0.997025669, -0.0285979901, -0.0715689808, -0.0345623419, 0.995905221, 0.0835369974, 0.0688869208, 0.0857621059, -0.993931353))
  1564. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1565. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200737, 0.840947151, 0.107421875, 0.306881011, 0.0363619998, -0.951053023, -0.0217640139, 0.999276757, 0.0311830547, 0.951499104, 0.0111292461, 0.307450444))
  1566. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.896000028, 0.896000028, 0.448000014))
  1567. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0183601379, -0.0494211912, -0.0223693848, 0.0508630089, -0.0429850034, -0.997780144, 0.0136630228, 0.999009788, -0.0423414856, 0.998612225, -0.0114790779, 0.0513999537))
  1568. local pand=CFuncs.Part.Create( workspace,Enum.Material.Fabric,0,1.400709148669e-08,"Institutional white","pand",Vector3.new(0.896000028, 0.448000014, 0.448000014))
  1569. local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0183601379, -0.646469116, -0.240524292, 0.0508630089, -0.0429850034, -0.997780144, -0.392863095, 0.917666256, -0.0595603026, 0.918189287, 0.395020396, 0.0297880471))
  1570. CFuncs.Mesh.Create("SpecialMesh",pand,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(1.25, 1.25, 1.25))
  1571.  
  1572. for i = 0, 3, 0.1 do
  1573. swait()
  1574. PlayAnimationFromTable({
  1575. CFrame.new(0.0911376029, 0.170700833, 0.332172483, 0.96592617, 0.0449431762, 0.254886121, 0, 0.984807849, -0.173647746, -0.25881812, 0.167730883, 0.951251686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1576. CFrame.new(-3.89245868, -2.29780269, -0.00377818942, 0.986237526, -0.0818925127, -0.14362888, -0.127979755, 0.17186299, -0.976772487, 0.104674846, 0.981711268, 0.159017161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1577. CFrame.new(2.24770093, 3.22394347, -1.96035659, 0.586824775, 0.492401212, 0.642789066, 0.718526661, -0.682659328, -0.133024901, 0.373304367, 0.539923429, -0.754404902) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1578. CFrame.new(-3.24579811, 0.162601873, -0.169526681, 0.980992317, 0.193930089, 0.00672267377, -0.193764612, 0.980845749, -0.0199200213, -0.0104569793, 0.0182387829, 0.999779046) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1579. CFrame.new(1.1014533, -4.16344213, 0.406021297, 0.939692914, 0, -0.342019349, 0.0593908839, 0.984807849, 0.163175538, 0.336823404, -0.173647746, 0.925417066) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1580. CFrame.new(-0.999989688, -4.16985464, 0.369654536, 0.906307459, 0, 0.422619224, -0.0733868629, 0.984807849, 0.157378227, -0.41619873, -0.173647746, 0.892538786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1581. }, .3, false)
  1582. end
  1583. CFuncs.Sound.Create("525166232", pand, 10, 1.1)
  1584. for i = 0, 3, 0.1 do
  1585. swait()
  1586. PlayAnimationFromTable({
  1587. CFrame.new(0.0911376029, 0.170700833, 0.332172483, 0.96592617, 0.0449431762, 0.254886121, 0, 0.984807849, -0.173647746, -0.25881812, 0.167730883, 0.951251686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1588. CFrame.new(-3.89245868, -2.29780269, -0.00377818942, 0.986237526, -0.0818925127, -0.14362888, -0.127979755, 0.17186299, -0.976772487, 0.104674846, 0.981711268, 0.159017161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1589. CFrame.new(1.80590749, 2.72466302, -1.93817627, 0.663057327, 0.747823834, 0.0333839096, 0.746770024, -0.657716274, -0.098711893, -0.0518619865, 0.0903817415, -0.994556129) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1590. CFrame.new(-3.24579811, 0.162601873, -0.169526681, 0.980992317, 0.193930089, 0.00672267377, -0.193764612, 0.980845749, -0.0199200213, -0.0104569793, 0.0182387829, 0.999779046) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1591. CFrame.new(1.1014533, -4.16344213, 0.406021297, 0.939692914, 0, -0.342019349, 0.0593908839, 0.984807849, 0.163175538, 0.336823404, -0.173647746, 0.925417066) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1592. CFrame.new(-0.999989688, -4.16985464, 0.369654536, 0.906307459, 0, 0.422619224, -0.0733868629, 0.984807849, 0.157378227, -0.41619873, -0.173647746, 0.892538786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1593. }, .3, false)
  1594. end
  1595. for i = 0, 2, 0.1 do
  1596. swait()
  1597. PlayAnimationFromTable({
  1598. CFrame.new(0.0911456496, 0.170702159, 0.332171082, 0.999885321, -0.00137777999, -0.0150859356, 0.00628500246, 0.943831742, 0.330366731, 0.0137834102, -0.330423653, 0.943732202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1599. CFrame.new(-3.75862074, -2.28645492, 0.346096963, 0.970100462, 0.236889541, -0.0528076962, -0.0789259449, 0.102158397, -0.991632223, -0.229512513, 0.966150701, 0.117800683) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1600. CFrame.new(3.20707846, 0.285080135, 1.16387141, -0.00297607109, -0.107517615, 0.994198799, -0.783208609, 0.618401051, 0.0645325035, -0.621752024, -0.7784729, -0.0860491246) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1601. CFrame.new(-3.36487269, 0.161271498, 0.244712532, 0.975460768, 0.219438821, 0.0179737657, -0.219429642, 0.962213933, 0.161229551, 0.0180853903, -0.161217049, 0.986753345) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1602. CFrame.new(0.851068258, -4.07387733, -0.701450467, 0.997281611, 0.0189382583, -0.0712103695, -0.0301716141, 0.986631095, -0.160152644, 0.067225337, 0.161865816, 0.984520435) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1603. CFrame.new(-1.25113344, -4.09032774, -0.91490078, 0.999885321, 0.00628500246, 0.0137834102, -0.00137777999, 0.943831742, -0.330423653, -0.0150859356, 0.330366731, 0.943732202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1604. }, .3, false)
  1605. end
  1606.  
  1607. for i = 0, .1, 0.1 do
  1608. swait()
  1609. PlayAnimationFromTable({
  1610. CFrame.new(0.0798431486, 0.233077481, 1.12295187, 0.999885499, -0.00873519853, -0.0123708993, 0.00628500246, 0.982565761, -0.18580927, 0.0137782991, 0.185710222, 0.982508063) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1611. CFrame.new(0.0265016034, 3.24111581, -0.318699658, 0.998973072, -0.0240464583, -0.0384024978, 0.0298348591, 0.98697418, 0.158088326, 0.0341008157, -0.159071684, 0.986678004) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1612. CFrame.new(2.96458101, 0.895944357, -2.12482834, -0.0157348998, 0.106384002, 0.994200766, 0.999534369, 0.0276731253, 0.0128581598, -0.026144743, 0.993939996, -0.106769882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1613. CFrame.new(-3.18996, 0.315425068, 0.578166604, 0.991264641, 0.131625995, -0.00832906365, -0.0797855482, 0.64874804, 0.756809294, 0.105019227, -0.749533653, 0.653582811) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1614. CFrame.new(0.790542006, -3.90754509, -1.36502731, 0.998461664, 0.0502564199, 0.0234256238, -0.0362905487, 0.911728263, -0.409187764, -0.0419221073, 0.407708168, 0.912149489) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1615. CFrame.new(-1.24295056, -4.01071262, 1.00937235, 0.99988544, 0.00379677117, 0.0146613121, -0.00873538479, 0.935390234, 0.353509545, -0.0123718679, -0.353597105, 0.935316026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1616. }, .3, false)
  1617. end
  1618. CFuncs.Sound.Create("437846473", Torso, 10, 1)
  1619. PocketPandoraWeld:Destroy()
  1620. CFuncs.Sound.Create("160718677", pand, 5, 1)
  1621. for _,v in pairs(workspace:children()) do
  1622. if v:IsA("Part") and v.Name == "PocketPandora" then
  1623. v.Anchored = false
  1624. v.CanCollide = true
  1625. v.Parent = workspace
  1626. v.CFrame = RootPart.CFrame * CFrame.new(2,5,-5)
  1627. v.Velocity=RootPart.CFrame.lookVector*200
  1628. local con = v.Touched:connect(function(hit)
  1629. if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "refpart" then
  1630. MagnitudeDamage(PocketPandora, 30, 100, 100, 50, "Normal", " ", 1)
  1631. Effects.Sphere2.Create(BrickColor.new("Smoky grey"), v.CFrame, .5, 2, .5, 3, 5, 3, .03)
  1632. Effects.Sphere2.Create(BrickColor.new(maincol), v.CFrame, .6, 3, .6, 4, 6, 4, .03)
  1633. CFuncs.Sound.Create("206049428", pand, 10, 1)
  1634. v:Destroy()
  1635. end
  1636. end)
  1637. end
  1638. end
  1639.  
  1640. for i = 0,5, 0.1 do
  1641. swait()
  1642. PlayAnimationFromTable({
  1643. CFrame.new(0.0798431486, 0.233077481, 1.12295187, 0.999885499, -0.00873519853, -0.0123708993, 0.00628500246, 0.982565761, -0.18580927, 0.0137782991, 0.185710222, 0.982508063) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1644. CFrame.new(0.0265016034, 3.24111581, -0.318699658, 0.998973072, -0.0240464583, -0.0384024978, 0.0298348591, 0.98697418, 0.158088326, 0.0341008157, -0.159071684, 0.986678004) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1645. CFrame.new(2.99794817, 2.31009698, -1.64348817, 0.0563318357, 0.0916124284, 0.994200289, 0.783475637, -0.621289551, 0.0128577966, 0.618864119, 0.778207421, -0.106774479) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1646. CFrame.new(-3.18996, 0.315425068, 0.578166604, 0.991264641, 0.131625995, -0.00832906365, -0.0797855482, 0.64874804, 0.756809294, 0.105019227, -0.749533653, 0.653582811) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1647. CFrame.new(0.790542006, -3.90754509, -1.36502731, 0.998461664, 0.0502564199, 0.0234256238, -0.0362905487, 0.911728263, -0.409187764, -0.0419221073, 0.407708168, 0.912149489) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1648. CFrame.new(-1.24295056, -4.01071262, 1.00937235, 0.99988544, 0.00379677117, 0.0146613121, -0.00873538479, 0.935390234, 0.353509545, -0.0123718679, -0.353597105, 0.935316026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1649. }, .3, false)
  1650. end
  1651.  
  1652. end
  1653.  
  1654.  
  1655. function foryou()
  1656. Humanoid.AutoRotate = true
  1657.  
  1658. FHandle=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Institutional white","FHandle",Vector3.new(1, 2, 1))
  1659. FHandleWeld=CFuncs.Weld.Create(m2,Character["Right Arm"],FHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.18448639, 0.551091194, -0.163902283, -0.155436471, 0.983553827, -0.09203168, -0.987750709, -0.153451264, 0.0283052251, 0.0137170125, 0.0953044593, 0.995353699))
  1660. CFuncs.Mesh.Create("SpecialMesh",FHandle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1049194",Vector3.new(0, 0, 0),Vector3.new(1.79999995, 1.29999995, 1.89999998))
  1661. Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Dusty Rose","Plant",Vector3.new(2, 0.400000006, 2))
  1662. PlantWeld=CFuncs.Weld.Create(m2,FHandle,Plant,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.308837891, 1.90258408, 0.500061035, 0.90631032, 0.422617525, -2.08616257e-07, -0.422617853, 0.906308651, -3.24845314e-06, -6.78002834e-07, 3.28943133e-06, 1.0000006))
  1663. CFuncs.Mesh.Create("SpecialMesh",Plant,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=16659363",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1664. Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Really red","Plant",Vector3.new(2, 0.400000006, 2))
  1665. PlantWeld=CFuncs.Weld.Create(m2,FHandle,Plant,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.325637817, 1.54702187, 0.131658554, -0.969451249, 0.0996286124, -0.224139586, 0.0717185959, 0.988995075, 0.129403844, 0.234565258, 0.109375738, -0.965927601))
  1666. CFuncs.Mesh.Create("SpecialMesh",Plant,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=16659363",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.5, 1.5))
  1667. Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1))
  1668. TestWeld=CFuncs.Weld.Create(m2,FHandle,Test,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.308868408, -1.30257416, 0.220046997, -0.906308413, -0.422617137, 5.06639481e-07, 0.422617078, -0.906308293, 3.25590372e-06, -9.31322575e-07, 3.16090882e-06, 1.00000012))
  1669. CFuncs.Mesh.Create("SpecialMesh",Test,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1091940",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 2, 0.200000003))
  1670. Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1))
  1671. TestWeld=CFuncs.Weld.Create(m2,FHandle,Test,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115341187, -0.744662762, -0.176582336, 0.969449461, -0.0996279493, -0.22414732, -0.0717145503, -0.988994002, 0.129413977, -0.234573573, -0.109385677, -0.965924442))
  1672. CFuncs.Mesh.Create("SpecialMesh",Test,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1091940",Vector3.new(0, 0, 0),Vector3.new(0.5, 2.5, 0.5))
  1673. fire=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Medium stone grey","fire",Vector3.new(1.4400003, 2.17999935, 2.24999976))
  1674. fireWeld=CFuncs.Weld.Create(m2,FHandle,fire,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.8053484, 0.600914001, 0.173200607, 0.197724402, 0.974774659, -0.103535756, -0.972187221, 0.181474328, -0.148050904, -0.125527188, 0.129929408, 0.983545303))
  1675. Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Salmon","Plant",Vector3.new(2, 0.400000006, 2))
  1676. PlantWeld=CFuncs.Weld.Create(m2,FHandle,Plant,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.391174316, 2.30257797, 7.2479248e-05, 0.90631187, 0.422617793, 7.4505806e-09, -0.42261827, 0.906309068, -3.21865082e-06, -4.84287739e-07, 3.37697566e-06, 1.00000107))
  1677. CFuncs.Mesh.Create("SpecialMesh",Plant,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=16659363",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1678. Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1))
  1679. TestWeld=CFuncs.Weld.Create(m2,FHandle,Test,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.391143799, -1.70257568, 0.100059509, -0.906308413, -0.422617137, 5.06639481e-07, 0.422617078, -0.906308293, 3.25590372e-06, -9.31322575e-07, 3.16090882e-06, 1.00000012))
  1680. CFuncs.Mesh.Create("SpecialMesh",Test,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1091940",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 2, 0.200000003))
  1681. CFuncs.Sound.Create("1030472543", Torso, 10, 1)
  1682. for i = 0, 5, 0.1 do
  1683. swait()
  1684. PlayAnimationFromTable({
  1685. CFrame.new(0.0911376029, 0.170700833, 0.332172483, 0.96592617, 0.0449431762, 0.254886121, 0, 0.984807849, -0.173647746, -0.25881812, 0.167730883, 0.951251686) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1686. CFrame.new(-3.89245868, -2.29780269, -0.00377818942, 0.986237526, -0.0818925127, -0.14362888, -0.127979755, 0.17186299, -0.976772487, 0.104674846, 0.981711268, 0.159017161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1687. CFrame.new(2.24770093, 3.22394347, -1.96035659, 0.586824775, 0.492401212, 0.642789066, 0.718526661, -0.682659328, -0.133024901, 0.373304367, 0.539923429, -0.754404902) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1688. CFrame.new(-3.24579811, 0.162601873, -0.169526681, 0.980992317, 0.193930089, 0.00672267377, -0.193764612, 0.980845749, -0.0199200213, -0.0104569793, 0.0182387829, 0.999779046) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1689. CFrame.new(1.1014533, -4.16344213, 0.406021297, 0.939692914, 0, -0.342019349, 0.0593908839, 0.984807849, 0.163175538, 0.336823404, -0.173647746, 0.925417066) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1690. CFrame.new(-0.999989688, -4.16985464, 0.369654536, 0.906307459, 0, 0.422619224, -0.0733868629, 0.984807849, 0.157378227, -0.41619873, -0.173647746, 0.892538786) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1691. }, .3, false)
  1692. end
  1693. for i = 0, 6, 0.1 do
  1694. swait()
  1695. PlayAnimationFromTable({
  1696. CFrame.new(-0.201527208, 0.339289248, -0.760077715, 0.965926766, -0.109380201, 0.23456727, 0, 0.906308293, 0.422617316, -0.258816212, -0.408217311, 0.875427306) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1697. CFrame.new(-2.63639927, -3.08259439, 2.20601225, 0.96412462, -0.126876891, -0.233165681, 0.137302473, -0.513392627, 0.847098649, -0.227182761, -0.848722875, -0.477553904) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1698. CFrame.new(3.16202116, 2.08283663, -1.89966655, 0.0309411921, -0.0984340832, 0.994662583, 0.897010624, -0.436257124, -0.0710765198, 0.440924883, 0.894421995, 0.0747980848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1699. CFrame.new(-3.02596211, -0.564618766, 0.844400108, 0.999514997, -0.0298547298, 0.00887096301, 0.0205256008, 0.845656037, 0.533333659, -0.0234243199, -0.532892823, 0.845858574) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1700. CFrame.new(1.10143936, -4.27405882, -1.10186839, 0.939693689, 0, -0.342017531, -0.144542515, 0.906308293, -0.397130758, 0.3099733, 0.422617316, 0.851652145) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1701. CFrame.new(-0.999990761, -4.25845289, -1.13533604, 0.906306744, 0, 0.422621042, 0.178606942, 0.906308293, -0.383020878, -0.383024931, 0.422617316, 0.821393192) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1702. }, .3, false)
  1703. end
  1704. CFuncs.Sound.Create("490241055", fire, 10, 1)
  1705. local PE1 = Instance.new("ParticleEmitter",fire)
  1706. PE1.LightEmission = NumberSequence.new(0.2)
  1707. PE1.Size = NumberSequence.new(3)
  1708. PE1.Texture = "http://www.roblox.com/asset/?id=242461088"
  1709. PE1.Lifetime = NumberRange.new(.75)
  1710. PE1.Rate = 50.000
  1711. PE1.Transparency = NumberSequence.new(0.2)
  1712. PE1.LightEmission = NumberSequence.new(1)
  1713. PE1.Rotation = NumberRange.new(0)
  1714. PE1.Speed = NumberRange.new(.1)
  1715. PE1.RotSpeed = NumberRange.new(0)
  1716. PE1.ZOffset = .2
  1717. for i = 0, 5, 0.1 do
  1718. swait()
  1719. PlayAnimationFromTable({
  1720. CFrame.new(-0.201527208, 0.339289248, -0.760077715, 0.965926766, -0.109380201, 0.23456727, 0, 0.906308293, 0.422617316, -0.258816212, -0.408217311, 0.875427306) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1721. CFrame.new(-2.63639927, -3.08259439, 2.20601225, 0.96412462, -0.126876891, -0.233165681, 0.137302473, -0.513392627, 0.847098649, -0.227182761, -0.848722875, -0.477553904) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1722. CFrame.new(3.16202116, 2.08283663, -1.89966655, 0.0309411921, -0.0984340832, 0.994662583, 0.897010624, -0.436257124, -0.0710765198, 0.440924883, 0.894421995, 0.0747980848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1723. CFrame.new(-3.02596211, -0.564618766, 0.844400108, 0.999514997, -0.0298547298, 0.00887096301, 0.0205256008, 0.845656037, 0.533333659, -0.0234243199, -0.532892823, 0.845858574) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1724. CFrame.new(1.10143936, -4.27405882, -1.10186839, 0.939693689, 0, -0.342017531, -0.144542515, 0.906308293, -0.397130758, 0.3099733, 0.422617316, 0.851652145) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1725. CFrame.new(-0.999990761, -4.25845289, -1.13533604, 0.906306744, 0, 0.422621042, 0.178606942, 0.906308293, -0.383020878, -0.383024931, 0.422617316, 0.821393192) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1726. }, .3, false)
  1727. end
  1728. CFuncs.Sound.Create("172324194", Torso, 10, 1)
  1729. for i = 0, 6, 0.1 do
  1730. swait()
  1731. PlayAnimationFromTable({
  1732. CFrame.new(-0.201516241, 0.339291096, -0.760076404, 0.97455883, -0.126014829, -0.185352385, 0.178607017, 0.936242044, 0.302573204, 0.135405973, -0.327980638, 0.934929967) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1733. CFrame.new(-2.55570674, -2.16993427, 3.6085391, 0.879511952, -0.473674715, -0.0457305014, -0.268807769, -0.573806643, 0.773620367, -0.392684817, -0.668115556, -0.631997108) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1734. CFrame.new(2.06292558, 1.80838537, -3.22790933, 0.214386374, 0.288788915, 0.933080733, 0.927286148, -0.360320926, -0.101535536, 0.306886107, 0.887000561, -0.345037788) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1735. CFrame.new(-2.80201578, 0.225536764, 1.78792167, 0.999614537, -0.0117794126, 0.0251443088, -0.00699919462, 0.769420385, 0.638704658, -0.0268700868, -0.638634384, 0.769041181) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1736. CFrame.new(0.532568038, -4.3854022, -1.08604121, 0.98265177, 0.178607017, 0.0499521792, -0.154120743, 0.936242044, -0.315749615, -0.103162408, 0.302573204, 0.947526813) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1737. CFrame.new(-1.38611662, -4.29509449, -0.232889488, 0.659518123, 0.178607017, 0.730161428, 0.114288926, 0.936242044, -0.332248539, -0.742949605, 0.302573204, 0.597055733) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1738. }, .4, false)
  1739. end
  1740. FHandleWeld:Destroy()
  1741. for _,v in pairs(m2:children()) do
  1742. if v:IsA("Part") then
  1743. v.Parent = workspace
  1744. v.CanCollide = true
  1745. v.Velocity=RootPart.CFrame.upVector*0
  1746. table.insert(Effects, {v,"Disappear",.008})
  1747. game:GetService("Debris"):AddItem(v, 5)
  1748. end
  1749. end
  1750. end
  1751.  
  1752.  
  1753.  
  1754. function topwat()
  1755. Attack = true
  1756. Humanoid.WalkSpeed = 0
  1757. Humanoid.JumpPower = 0
  1758. Humanoid.AutoRotate = false
  1759.  
  1760. for i = 0, 8, 0.1 do
  1761. swait()
  1762. PlayAnimationFromTable({
  1763. CFrame.new(-0.00205035275, 0, -0.0156110032, 0.965925872, 0, 0.258819073, 0, 1, 0, -0.258819073, 0, 0.965925872) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1764. CFrame.new(0.302975714, -0.0352788754, -2.58990121, 0.996195078, 0.0298128296, 0.0818930417, 0.0298129916, -0.999554753, 0.00122109544, 0.0818929821, 0.00122502726, -0.996640384) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1765. CFrame.new(1.13866591, 2.04802728, -1.94127011, -0.439383566, 0.627507865, 0.642787695, 0.819152892, 0.573575318, -1.11085149e-06, -0.368687868, 0.526540875, -0.766044438) * CFrame.new(0, -.5, 0) * CFrame.Angles(RAD(0 + 5 * math.cos(Sine/2)), 0, 0),
  1766. CFrame.new(-2.42017388, 0.400777161, -2.11568689, 0.882900894, -0.469536036, 0.00468276255, 0.131853923, 0.238337904, -0.962190032, 0.450666815, 0.850135863, 0.272338927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1767. CFrame.new(1.10143924, -3.99999404, 0.0369313061, 0.939692557, 0, -0.342020273, 0, 1, 0, 0.342020273, 0, 0.939692557) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1768. CFrame.new(-0.999986231, -3.99999404, 1.25169754e-06, 0.906307876, 0, 0.42261827, 0, 1, 0, -0.42261827, 0, 0.906307876) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1769. }, .1, false)
  1770. end
  1771.  
  1772.  
  1773. local x = math.random(1,3)
  1774. if x == 1 then
  1775. pocketpandora()
  1776. elseif x == 2 then
  1777. ducks()
  1778. elseif x == 3 then
  1779. foryou()
  1780. end
  1781.  
  1782. Humanoid.WalkSpeed = 16
  1783. Humanoid.JumpPower = 50
  1784. Humanoid.AutoRotate = true
  1785. Attack = false
  1786. end
  1787.  
  1788. function hatsoff()
  1789. Attack = true
  1790. Humanoid.WalkSpeed = 0
  1791. Humanoid.JumpPower = 0
  1792. CFuncs.Sound.Create("130945622", Torso, 5, 1)
  1793. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol).Color, BrickColor.new("Really black").Color)
  1794. for i = 0, 8, 0.1 do
  1795. swait()
  1796. PlayAnimationFromTable({
  1797. CFrame.new(-0.115069248, -0, -0.214136839, 0.766046524, 0, -0.642790973, 0, 1, 0, 0.642790973, 0, 0.766046524) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1798. CFrame.new(-4.87525558, 0.797361493, -4.06305599, 0.866025567, -0.0435784385, -0.498097122, -0.0868260041, -0.994166732, -0.0639820844, -0.492403448, 0.0986578986, -0.864757538) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1799. CFrame.new(3.4945271, 1.52527678, -1.38384485, 0.870185137, -0.374341398, 0.3203848, 0.179849938, -0.364053726, -0.9138484, 0.458728582, 0.852838457, -0.249468848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1800. CFrame.new(-3.41207027, 1.04570305, -1.46108115, -0.88571322, 0.4565247, 0.084245488, 0.0838330537, -0.0211990401, 0.996254325, 0.456600636, 0.889458179, -0.0194955915) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1801. CFrame.new(0.853903413, -4.00243044, 0.828555107, 0.98480767, 0.0868239999, -0.150384188, 0, 0.866026282, 0.499998599, 0.173648536, -0.492402464, 0.852869391) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1802. CFrame.new(-1.19523168, -4.00639772, -0.555792093, 0.904794216, -0.0996007398, 0.414037675, 0.0301539879, 0.984807849, 0.17100963, -0.42478025, -0.142243639, 0.894051731) * CFrame.new(0, 0 - .3 * math.cos(Sine/3.5), 0) * CFrame.Angles(0, 0, 0),
  1803. }, .2, false)
  1804. end
  1805. for i = 0, .5, 0.1 do
  1806. swait()
  1807. PlayAnimationFromTable({
  1808. CFrame.new(-0.115069248, -0, -0.214136839, 0.766046524, 0, -0.642790973, 0, 1, 0, 0.642790973, 0, 0.766046524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1809. CFrame.new(-2.31292915, 5.66935062, 0.386707425, -0.0979517624, -0.866521716, -0.489434123, -0.98050642, -0.000144343387, 0.196486965, -0.170330837, 0.499139547, -0.849615812) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1810. CFrame.new(3.4945271, 1.52527678, -1.38384485, 0.870185137, -0.374341398, 0.3203848, 0.179849938, -0.364053726, -0.9138484, 0.458728582, 0.852838457, -0.249468848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1811. CFrame.new(-2.79443884, 2.43125439, -0.142938256, 0.312049747, -0.222866639, 0.92355597, -0.188317999, -0.967318416, -0.169798508, 0.931214929, -0.120936617, -0.343821317) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1812. CFrame.new(0.853903413, -4.00243044, 0.828555107, 0.98480767, 0.0868239999, -0.150384188, 0, 0.866026282, 0.499998599, 0.173648536, -0.492402464, 0.852869391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1813. CFrame.new(-1.19523168, -4.00639772, -0.555792093, 0.904794216, -0.0996007398, 0.414037675, 0.0301539879, 0.984807849, 0.17100963, -0.42478025, -0.142243639, 0.894051731) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1814. }, .1, false)
  1815. end
  1816. Humanoid.WalkSpeed = 16
  1817. Humanoid.JumpPower = 50
  1818. Attack = false
  1819. end
  1820.  
  1821.  
  1822.  
  1823. function overthere()
  1824. Attack = true
  1825. local xy = 2
  1826. local hitt = Mouse.hit
  1827. Humanoid.WalkSpeed = 0
  1828. Humanoid.JumpPower = 0
  1829. CFuncs.Sound.Create("538558581", Hat, 5, 1)
  1830. for i = 0, 5, 0.1 do
  1831. swait()
  1832. xy = xy + .15
  1833. PlayAnimationFromTable({
  1834. CFrame.new(0.0107159223, -2.71742606, 0.0607917309, 0.99988538, 0.009216398, 0.0120227486, -0.0151350051, 0.641702771, 0.766804099, -0.000647842884, -0.766898036, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1835. CFrame.new(-0.28039515, 11.482439, 13.6262321, 0.99988538, -0.0151350051, -0.000647842884, 0.009216398, 0.641702771, -0.766898036, 0.0120227486, 0.766804099, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1836. CFrame.new(1.83838439, 2.67886591, 0.0802880749, -2.82153487e-05, 0.707110763, 0.707103014, -3.48687172e-06, -0.707103014, 0.707110524, 1.00000012, 1.75237656e-05, 2.24113464e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1837. CFrame.new(-1.61722004, 2.37308216, -0.0369534679, 0.0996018648, -0.819160461, -0.564850211, 0.0309238136, -0.56485045, 0.82461369, -0.994546771, -0.0996004194, -0.0309286118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1838. CFrame.new(0.999969661, -3.48585701, -0.497745633, 1, 1.82539225e-05, 1.02139893e-06, -1.46329403e-05, 0.766044199, 0.642787874, 1.09598041e-05, -0.642788053, 0.766044199) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1839. CFrame.new(-0.999921381, -3.45396709, -0.373242021, 1.00000024, -2.43186951e-05, -2.02894444e-06, 1.99228525e-05, 0.766044378, 0.642787635, -1.40666962e-05, -0.642787695, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1840. }, .1, false)
  1841. meh.Scale = Vector3.new(xy, xy, xy)
  1842. end
  1843. CFuncs.Sound.Create("144507916", Torso, 5, 1)
  1844. Effects.Wave.Create(BrickColor.new("White"), Hat.CFrame*CFrame.new(0,-20,0), 4, 1, 4, 4, 1, 4, .05)
  1845. for i = 0, 1, 0.1 do
  1846. swait()
  1847. PlayAnimationFromTable({
  1848. CFrame.new(0.0107159223, -2.71742606, 0.0607917309, 0.99988538, 0.009216398, 0.0120227486, -0.0151350051, 0.641702771, 0.766804099, -0.000647842884, -0.766898036, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1849. CFrame.new(-0.0671697259, 2.44198537, 2.82332158, 0.99988538, -0.0151350051, -0.000647842884, 0.009216398, 0.641702771, -0.766898036, 0.0120227486, 0.766804099, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1850. CFrame.new(1.83838439, 2.67886591, 0.0802880749, -2.82153487e-05, 0.707110763, 0.707103014, -3.48687172e-06, -0.707103014, 0.707110524, 1.00000012, 1.75237656e-05, 2.24113464e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1851. CFrame.new(-1.61722004, 2.37308216, -0.0369534679, 0.0996018648, -0.819160461, -0.564850211, 0.0309238136, -0.56485045, 0.82461369, -0.994546771, -0.0996004194, -0.0309286118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1852. CFrame.new(0.999969661, -3.48585701, -0.497745633, 1, 1.82539225e-05, 1.02139893e-06, -1.46329403e-05, 0.766044199, 0.642787874, 1.09598041e-05, -0.642788053, 0.766044199) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1853. CFrame.new(-0.999921381, -3.45396709, -0.373242021, 1.00000024, -2.43186951e-05, -2.02894444e-06, 1.99228525e-05, 0.766044378, 0.642787635, -1.40666962e-05, -0.642787695, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1854. }, .5, false)
  1855. end
  1856. RootPart.CFrame = hitt * CFrame.new(0,6,0)
  1857. for i = 0, 2, 0.1 do
  1858. swait()
  1859. PlayAnimationFromTable({
  1860. CFrame.new(0.0107159223, -2.71742606, 0.0607917309, 0.99988538, 0.009216398, 0.0120227486, -0.0151350051, 0.641702771, 0.766804099, -0.000647842884, -0.766898036, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1861. CFrame.new(-0.0671697259, 2.44198537, 2.82332158, 0.99988538, -0.0151350051, -0.000647842884, 0.009216398, 0.641702771, -0.766898036, 0.0120227486, 0.766804099, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1862. CFrame.new(1.83838439, 2.67886591, 0.0802880749, -2.82153487e-05, 0.707110763, 0.707103014, -3.48687172e-06, -0.707103014, 0.707110524, 1.00000012, 1.75237656e-05, 2.24113464e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1863. CFrame.new(-1.61722004, 2.37308216, -0.0369534679, 0.0996018648, -0.819160461, -0.564850211, 0.0309238136, -0.56485045, 0.82461369, -0.994546771, -0.0996004194, -0.0309286118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1864. CFrame.new(0.999969661, -3.48585701, -0.497745633, 1, 1.82539225e-05, 1.02139893e-06, -1.46329403e-05, 0.766044199, 0.642787874, 1.09598041e-05, -0.642788053, 0.766044199) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1865. CFrame.new(-0.999921381, -3.45396709, -0.373242021, 1.00000024, -2.43186951e-05, -2.02894444e-06, 1.99228525e-05, 0.766044378, 0.642787635, -1.40666962e-05, -0.642787695, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1866. }, .3, false)
  1867. end
  1868. for i = 0, 1.5, 0.1 do
  1869. swait()
  1870. xy = xy - .5
  1871. PlayAnimationFromTable({
  1872. CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0,0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1873. CFrame.new(2.09699351e-07, 3.07826781, -0.0930013061, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0 + .2 * math.cos(Sine/10), 0) * CFrame.Angles(RAD(0 + 2 * math.cos(Sine/4)), 0, 0),
  1874. CFrame.new(3.23488927, 0.217123732, -0.0756206512, 0.986215889, -0.164953321, -0.0135539025, 0.164731994, 0.986208379, -0.0160120502, 0.0160082281, 0.0135585759, 0.99978739) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, RAD(0 - 2 * math.cos(Sine/10))),
  1875. CFrame.new(-2.27295804, 2.68117332, -0.407379597, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, RAD(0 + 2 * math.cos(Sine/10))),
  1876. CFrame.new(1.00000048, -3.99999428, 8.58306885e-06, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1877. CFrame.new(-1.19524455, -4.0063982, -0.555813253, 0.996198535, 0, 0.0871554539, 0, 1, 0, -0.0871554539, 0, 0.996198535) * CFrame.new(0, 0 - .3 * math.cos(Sine/3.5), 0) * CFrame.Angles(0, 0, 0),
  1878. }, .1, false)
  1879. meh.Scale = Vector3.new(xy, xy, xy)
  1880. end
  1881. meh.Scale = Vector3.new(2, 2, 2)
  1882. Humanoid.WalkSpeed = 16
  1883. Humanoid.JumpPower = 50
  1884. Attack = false
  1885. end
  1886.  
  1887. function card()
  1888. Attack = true
  1889. Humanoid.WalkSpeed = 0
  1890. Humanoid.JumpPower = 0
  1891. for i = 0, 5, 0.1 do
  1892. swait()
  1893. PlayAnimationFromTable({
  1894. CFrame.new(0.0594676584, 0.0768035352, -0.0666813478, 0.884229183, 0.0283103138, 0.46619451, -0.046942994, 0.998493731, 0.0284016542, -0.464688241, -0.0469981395, 0.884226322) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1895. CFrame.new(-0.320109785, 3.63055658, -0.170195401, 0.694239378, -0.266091168, 0.668750525, 0.0364392735, 0.940953016, 0.336570561, -0.718821168, -0.209291756, 0.662942886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1896. CFrame.new(3.35686827, 0.22342144, -0.428599238, 0.968903899, -0.230326891, 0.090413481, 0.243740588, 0.9513551, -0.188451782, -0.0426098406, 0.204629123, 0.97791177) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1897. CFrame.new(-2.54222584, -0.211173713, 0.944933712, 0.922422528, -0.0570006818, 0.381952316, -0.034134835, 0.973141432, 0.227663115, -0.384670615, -0.223039463, 0.895702004) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1898. CFrame.new(1.25511241, -4.02567768, 0.0611277819, 0.840364099, -0.046942994, -0.539985716, 0.0241064206, 0.998493731, -0.0492867082, 0.541486025, 0.0284016542, 0.840229928) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1899. CFrame.new(-0.907657266, -4.11040592, -0.53483367, 0.976054788, -0.046942994, 0.212399751, 0.0518967845, 0.998493731, -0.0178051461, -0.211244017, 0.0284016542, 0.977020741) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1900. }, .2, false)
  1901. end
  1902. MysteryCard=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"White","MysteryCard",Vector3.new(0.880001426, 0.0500000007, 1.42000163))
  1903. MysteryCardWeld=CFuncs.Weld.Create(workspace,Character["Left Arm"],MysteryCard,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.019998312, -0.0606269836, -2.56632233, -1, -1.86971738e-06, 5.30659418e-06, -5.45002649e-06, 2.93751145e-06, -1, 3.13629062e-06, -1.00000417, -2.86020963e-06))
  1904. local dec = Instance.new("Decal",MysteryCard)
  1905. dec.Texture = "rbxassetid://8644107"
  1906. dec.Face = "Bottom"
  1907. local e = math.random(1,4)
  1908. if e == 1 then
  1909. local dec2 = Instance.new("Decal",MysteryCard)
  1910. dec2.Texture = "rbxassetid://173448236"
  1911. dec2.Face = "Top"
  1912. elseif e == 2 then
  1913. local dec2 = Instance.new("Decal",MysteryCard)
  1914. dec2.Texture = "rbxassetid://1167119856"
  1915. dec2.Face = "Top"
  1916. CFuncs.Sound.Create("976606790", Torso, 3, 1)
  1917. elseif e == 3 then
  1918. local dec2 = Instance.new("Decal",MysteryCard)
  1919. dec2.Texture = "rbxassetid://342673258"
  1920. dec2.Face = "Top"
  1921. elseif e == 100 then
  1922. local dec2 = Instance.new("Decal",MysteryCard)
  1923. dec2.Texture = "rbxassetid://1403304829"
  1924. dec2.Face = "Top"
  1925. elseif e == 4 then
  1926. local dec2 = Instance.new("Decal",MysteryCard)
  1927. dec2.Texture = "rbxassetid://358190487"
  1928. dec2.Face = "Top"
  1929. end
  1930. for i = 0, .1, 0.1 do
  1931. swait()
  1932. PlayAnimationFromTable({
  1933. CFrame.new(0.0594634786, 0.0768039674, -0.0666834489, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1934. CFrame.new(-0.122908428, 3.62031841, -0.300296009, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1935. CFrame.new(3.27946377, 0.196054846, -0.0853066146, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1936. CFrame.new(-3.38164973, 1.88772869, -1.7773633, 0.870166838, 0.233024612, -0.434176862, -0.190451264, -0.653598666, -0.732487082, -0.454464883, 0.720075309, -0.524359882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1937. CFrame.new(1.11755061, -4.02567816, -0.574618757, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1938. CFrame.new(-1.05345631, -4.11040878, -0.0093524158, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1939. }, .1, false)
  1940. end
  1941. for i = 0, 5, 0.1 do
  1942. swait()
  1943. PlayAnimationFromTable({
  1944. CFrame.new(0.0594634786, 0.0768039674, -0.0666834489, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1945. CFrame.new(-0.122908428, 3.62031841, -0.300296009, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1946. CFrame.new(3.27946377, 0.196054846, -0.0853066146, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1947. CFrame.new(-1.93848646, 1.49346352, -2.41478252, 0.870159626, 0.0276981965, -0.491991103, -0.190459937, -0.901923239, -0.387633443, -0.454474866, 0.431007445, -0.779541671) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1948. CFrame.new(1.11755061, -4.02567816, -0.574618757, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1949. CFrame.new(-1.05345631, -4.11040878, -0.0093524158, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1950. }, .2, false)
  1951. end
  1952.  
  1953. for i = 0, 3, 0.1 do
  1954. swait()
  1955. PlayAnimationFromTable({
  1956. CFrame.new(0.0594634525, 0.0768030137, -0.0666834041, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1957. CFrame.new(-0.122923493, 3.62031841, -0.300292909, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1958. CFrame.new(3.27946401, 0.196052969, -0.0853065252, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1959. CFrame.new(-1.89293754, 1.45044494, -1.85970807, -0.996556878, -0.0150756445, 0.0815295279, 0.00878233463, -0.996992052, -0.0770052373, 0.0824451596, -0.0760240704, 0.993691742) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1960. CFrame.new(1.11755061, -4.02567768, -0.574618697, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1961. CFrame.new(-1.05346203, -4.11040878, -0.00934726, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1962. }, .2, false)
  1963. end
  1964. if e == 1 then
  1965. MagnitudeDamage(Torso, 70, 20, 20, 0, "Seizure", " ", 1)
  1966. Effects.Sphere2.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01)
  1967. Effects.InnerSphere.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 100, 2, .01)
  1968. CFuncs.Sound.Create("1751051242", Torso, 5, 1)
  1969. elseif e == 2 then
  1970. MagnitudeDamage(Torso, 70, 10, 10, 0, "Freeze", " ", 1)
  1971. Effects.Sphere2.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 2, 2, 2, 2, 2, 2, .01)
  1972. Effects.Sphere1.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01)
  1973. elseif e == 3 then
  1974. CFuncs.Sound.Create("157506631", Torso, 5, 1)
  1975. for i = 1,5 do
  1976. Effects.InnerSphere.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 100, 2, .01)
  1977. wait(.4)
  1978. end
  1979. wait(.8)
  1980. MagnitudeDamage(Torso, 70, 500, 500, 500, "Normal", " ", 1)
  1981. CFuncs.Sound.Create("1543847134", Torso, 5, 1)
  1982. Effects.Sphere2.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 2, 2, 2, 13, 13, 13, .01)
  1983. Effects.Sphere1.Create(BrickColor.new("Really red"), MysteryCard.CFrame, 1, 1, 1, 12, 12, 12, .01)
  1984. elseif e == 100 then
  1985. MagnitudeDamage(Torso, 70, 5, 5, 0, "Float", " ", 1)
  1986. Effects.Sphere2.Create(BrickColor.new("White"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01)
  1987. elseif e == 4 then
  1988. MagnitudeDamage(Torso, 70, 30, 30, 0, "Paralyze", " ", 1)
  1989. Effects.Sphere2.Create(BrickColor.new("Gold"), MysteryCard.CFrame, 1, 1, 1, 8, 8, 8, .05)
  1990. Effects.InnerSphere.Create(BrickColor.new("White"), MysteryCard.CFrame, 100, 2, .01)
  1991. end
  1992. table.insert(Effects, {MysteryCard,"Disappear",.01})
  1993. for i = 0, 5, 0.1 do
  1994. swait()
  1995. PlayAnimationFromTable({
  1996. CFrame.new(0.0594634525, 0.0768030137, -0.0666834041, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  1997. CFrame.new(-0.122923493, 3.62031841, -0.300292909, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1998. CFrame.new(3.27946401, 0.196052969, -0.0853065252, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1999. CFrame.new(-1.89293754, 1.45044494, -1.85970807, -0.996556878, -0.0150756445, 0.0815295279, 0.00878233463, -0.996992052, -0.0770052373, 0.0824451596, -0.0760240704, 0.993691742) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2000. CFrame.new(1.11755061, -4.02567768, -0.574618697, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  2001. CFrame.new(-1.05346203, -4.11040878, -0.00934726, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  2002. }, .2, false)
  2003. end
  2004. Humanoid.WalkSpeed = 16
  2005. Humanoid.JumpPower = 50
  2006. Attack = false
  2007. MysteryCard:Destroy()
  2008. MysteryCardWeld:Destroy()
  2009. end
  2010.  
  2011.  
  2012.  
  2013.  
  2014. function unanchor()
  2015. g = Character:GetChildren()
  2016. for i = 1, #g do
  2017. if g[i].ClassName == "Part" then
  2018. g[i].Anchored = false
  2019. end
  2020. end
  2021. end
  2022.  
  2023.  
  2024. Mouse.KeyDown:connect(function(Key)
  2025. Key = Key:lower()
  2026. if Attack == false and Key == 'z' and Anim == "Idle" then
  2027. overthere()
  2028. elseif Attack == false and Key == 'x' and Anim == "Idle" then
  2029. topwat()
  2030. elseif Attack == false and Key == 'c' then
  2031. card()
  2032. elseif Attack == false and Key == 'v' then
  2033. print("too lazy to add this move lul")
  2034. elseif Attack == false and Key == 't' and Anim == "Idle" then
  2035. hatsoff()
  2036. end
  2037. end)
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043. while true do
  2044. swait()
  2045. unanchor()
  2046. for i, v in pairs(Character:GetChildren()) do
  2047. if v:IsA("Part") then
  2048. v.Material = "SmoothPlastic"
  2049. elseif v:IsA("Accessory") then
  2050. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2051. end
  2052. end
  2053. for i, v in pairs(Character:GetChildren()) do
  2054. if v:IsA'Model' then
  2055. for _, c in pairs(v:GetChildren()) do
  2056. if c:IsA'Part' then
  2057. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2058. end
  2059. end
  2060. end
  2061. end
  2062. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2063. Velocity = RootPart.Velocity.y
  2064. Sine = Sine + Change
  2065. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 7, Character)
  2066. if RootPart.Velocity.y > 1 and hit == nil then
  2067. Anim = "Jump"
  2068. if Attack == false then
  2069. Change = 1
  2070. PlayAnimationFromTable({
  2071. CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2072. CFrame.new(-6.66721871e-06, 4.92021656, -0.417787671, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2073. CFrame.new(2.04141426, 2.38522053, -0.261183709, 0.870933354, 0.490618378, 0.0278630257, 0.491302133, -0.868171513, -0.0700040013, -0.0101553798, 0.0746579692, -0.997161388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2074. CFrame.new(-2.27295709, 2.68117261, -0.407387137, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2075. CFrame.new(1.03295517, -2.92346931, -0.186930001, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2076. CFrame.new(-1.19524062, -3.79352093, -0.555811405, 1.00000381, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 1.00000381) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2077. }, .04, false)
  2078. end
  2079. elseif RootPart.Velocity.y < -1 and hit == nil then
  2080. Anim = "Fall"
  2081. if Attack == false then
  2082. Change = 1
  2083. PlayAnimationFromTable({
  2084. CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, .05),
  2085. CFrame.new(-6.66721871e-06, 4.92021656, -0.417787671, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2086. CFrame.new(2.04141426, 2.38522053, -0.261183709, 0.870933354, 0.490618378, 0.0278630257, 0.491302133, -0.868171513, -0.0700040013, -0.0101553798, 0.0746579692, -0.997161388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2087. CFrame.new(-2.27295709, 2.68117261, -0.407387137, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2088. CFrame.new(1.03295517, -2.92346931, -0.186930001, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2089. CFrame.new(-1.19524062, -3.79352093, -0.555811405, 1.00000381, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 1.00000381) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2090. }, .04, false)
  2091. end
  2092. elseif TorsoVelocity < 1 and hit ~= nil then
  2093. Anim = "Idle"
  2094. if Attack == false then
  2095. Change = 1
  2096. PlayAnimationFromTable({
  2097. CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0,0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, .02),
  2098. CFrame.new(2.09699351e-07, 3.07826781, -0.0930013061, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0 + .2 * math.cos(Sine/10), 0) * CFrame.Angles(RAD(0 + 5 * math.cos(Sine/10)), 0, 0),
  2099. CFrame.new(3.23488927, 0.217123732, -0.0756206512, 0.986215889, -0.164953321, -0.0135539025, 0.164731994, 0.986208379, -0.0160120502, 0.0160082281, 0.0135585759, 0.99978739) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, RAD(0 - 2 * math.cos(Sine/10))),
  2100. CFrame.new(-2.27295804, 2.68117332, -0.407379597, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, RAD(0 + 2 * math.cos(Sine/10))),
  2101. CFrame.new(1.00000048, -3.99999428, 8.58306885e-06, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0),
  2102. CFrame.new(-1.19524455, -4.0063982, -0.555813253, 0.996198535, 0, 0.0871554539, 0, 1, 0, -0.0871554539, 0, 0.996198535) * CFrame.new(0, 0 - playlist.PlaybackLoudness/500 * math.cos(Sine/3.5), 0) * CFrame.Angles(0, 0, 0),
  2103. }, .1, false)
  2104. end
  2105. elseif TorsoVelocity > 2 and hit ~= nil then
  2106. Anim = "Walk"
  2107. if Attack == false then
  2108. PlayAnimationFromTable({
  2109. CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0, .1 + .2 * math.cos(Sine/8), 0) * CFrame.Angles(-.1, 0 - .02 * math.sin(Sine/8), 0 - .02 * math.sin(Sine/8)),
  2110. CFrame.new(2.09699351e-07, 3.07826781, -0.0930013061, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, .1 + .2 * math.cos(Sine/8), 0) * CFrame.Angles(RAD(0 + 2 * math.cos(Sine/4)), 0, 0),
  2111. CFrame.new(3.23488927, 0.217123732, -0.0756206512, 0.986215889, -0.164953321, -0.0135539025, 0.164731994, 0.986208379, -0.0160120502, 0.0160082281, 0.0135585759, 0.99978739) * CFrame.new(0, .1 + .2 * math.cos(Sine/8), 0) * CFrame.Angles(RAD(0 - 10 * math.cos(Sine/8)), 0, RAD(0 - 2 * math.cos(Sine/10))),
  2112. CFrame.new(-2.27295804, 2.68117332, -0.407379597, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, RAD(0 + 2 * math.cos(Sine/10))),
  2113. CFrame.new(1.00000048, -3.99999428, 8.58306885e-06, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, .1 + .6 * math.cos(Sine/8), math.sin(Sine/-8)) * CFrame.Angles(.1 + .6 * math.sin(Sine/8), 0, 0),
  2114. CFrame.new(-1.19524455, -4.0063982, -0.555813253, 0.996198535, 0, 0.0871554539, 0, 1, 0, -0.0871554539, 0, 0.996198535) * CFrame.new(0, .1 - .6 * math.cos(Sine/8), math.sin(Sine/8)) * CFrame.Angles(.1 + .6 * math.sin(Sine/-8), 0, 0),
  2115. }, .1, false) --math.cos on the Y angle of the CFrame.new, math.sin on the Z angle of it, and math.sin on the X angle of the CFrame.angles
  2116. end
  2117. end
  2118. if #Effects > 0 then
  2119. for e = 1, #Effects do
  2120. if Effects[e] ~= nil then
  2121. local Thing = Effects[e]
  2122. if Thing ~= nil then
  2123. local Part = Thing[1]
  2124. local Mode = Thing[2]
  2125. local Delay = Thing[3]
  2126. local IncX = Thing[4]
  2127. local IncY = Thing[5]
  2128. if Thing[1].Transparency <= 1 then
  2129. if Thing[2] == "Block1" then
  2130. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2131. Mesh = Thing[7]
  2132. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2133. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2134. elseif Thing[2] == "Ice" then
  2135. if Thing[6] <= Thing[5] then
  2136. Thing[6] = Thing[6] + .05
  2137. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  2138. else
  2139. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2140. end
  2141. elseif Thing[2] == "Shatter" then
  2142. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2143. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2144. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2145. Thing[6] = Thing[6] + Thing[5]
  2146. elseif Thing[2] == "Block2" then
  2147. Thing[1].CFrame = Thing[1].CFrame
  2148. Mesh = Thing[7]
  2149. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2150. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2151. elseif Thing[2] == "Block3" then
  2152. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2153. Mesh = Thing[7]
  2154. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2155. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2156. elseif Thing[2] == "Block4" then
  2157. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  2158. Mesh = Thing[7]
  2159. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2160. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2161. elseif Thing[2] == "Block2Fire" then
  2162. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2163. Mesh = Thing[7]
  2164. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2165. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2166. if Thing[1].Transparency >= .3 then
  2167. Thing[1].BrickColor = BrickColor.new("Bright red")
  2168. else
  2169. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  2170. end
  2171. elseif Thing[2] == "Cylinder" then
  2172. Mesh = Thing[7]
  2173. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2174. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2175. elseif Thing[2] == "Blood" then
  2176. Mesh = Thing[7]
  2177. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  2178. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2179. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2180. elseif Thing[2] == "Elec" then
  2181. Mesh = Thing[10]
  2182. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2183. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2184. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  2185. Thing[1].Rotation = Vector3.new(0, 0, 0)
  2186. elseif Thing[2] == "Disappear" then
  2187. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2188. end
  2189. else
  2190. Part.Parent = nil
  2191. table.remove(Effects, e)
  2192. end
  2193. end
  2194. end
  2195. end
  2196. end
  2197. if playlist.IsPlaying == false then
  2198. playlist:Destroy()
  2199. playlist=Instance.new("Sound", Torso)
  2200. playlist.SoundId = "rbxassetid://994337539"
  2201. playlist.Volume = 3
  2202. playlist.Looped = false
  2203. playlist.Name = "aa"
  2204. warn(playlist.SoundId)
  2205. playlist:Play()
  2206. end
  2207. playlist.Volume = 3
  2208. playlist.Looped = false
  2209. --soundbork(workspace)
  2210. if true then
  2211. Humanoid.MaxHealth = 1e100
  2212. Humanoid.Health = 1e100
  2213. Humanoid.Name = math.random()*100
  2214. end
  2215. end
Advertisement
Add Comment
Please, Sign In to add comment