Nightcore400

idk just a test

Dec 30th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 107.22 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  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})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. ---------------------------------------------------------------------------------------------------------------------------------------
  87. --[[<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><>
  88.  
  89.  
  90. 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.
  91.  
  92. 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.
  93.  
  94. 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.
  95.  
  96. 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.
  97.  
  98. After this incident, Malcom has hidden himself to the rest of the world, his mystical wonders hidden.. Until now.
  99.  
  100.  
  101. <><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  102.  
  103.  
  104. <>Controls<>
  105.  
  106. Z: Disappearing Act <> Use your hat to warp to your mouse cursor.
  107.  
  108.  
  109. X: Hat Trick <> Pull three different things out of your hat. (Its randomized!)
  110.  
  111.  
  112. C: Draw a Card <> Draw a card that does one of five effects. (Its randomized!)
  113.  
  114.  
  115. V: lul
  116.  
  117.  
  118. T: Heads Off <> Tell your audience that they will be amazed!
  119.  
  120. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>]]--
  121.  
  122.  
  123.  
  124.  
  125.  
  126. warn("Malcom Maddox was created by SezHu.")
  127.  
  128. wait(1 / 40)
  129. Effects = { }
  130. local Player = game.Players.localPlayer
  131. local Mouse = Player:GetMouse()
  132. local Character = Player.Character
  133. local Humanoid = Character.Humanoid
  134. local Head = Character.Head
  135. local RootPart = Character.HumanoidRootPart
  136. local Torso = Character.Torso
  137. local LeftArm = Character["Left Arm"]
  138. local RightArm = Character["Right Arm"]
  139. local LeftLeg = Character["Left Leg"]
  140. local RightLeg = Character["Right Leg"]
  141. local Camera = game.Workspace.CurrentCamera
  142. local RootJoint = RootPart.RootJoint
  143. local Equipped = false
  144. local Attack = false
  145. local Anim = 'Idle'
  146. local Idle = 0
  147. local UIS = game:GetService("UserInputService")
  148. local Combo = 1
  149. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  150. local Velocity = RootPart.Velocity.y
  151. local Sine = 0
  152. local Change = 1
  153. local killcount = 1
  154. local lasersize = 0
  155. local charsize = 2
  156. local CF = CFrame.new
  157. local ANGLES = CFrame.Angles
  158. local RAD = math.rad
  159. local Neck = Torso["Neck"]
  160. local silenced = false
  161. Head.face:Destroy()
  162. Head.Transparency = 1
  163. if(not Humanoid:FindFirstChildOfClass'ForceField')then Instance.new("ForceField",Character).Visible = false end
  164.  
  165. local function soundbork(obj)
  166. if obj:IsA("Sound") and obj.Name ~= "aa" then
  167. obj.Looped = false
  168. obj.Pitch = 1
  169. obj.Volume = 0
  170. return
  171. end
  172.  
  173.  
  174. local children = obj:GetChildren()
  175. for i = 1, #children do
  176. soundbork(children[i])
  177. end
  178. return
  179. end
  180.  
  181. maincol = Torso.Color
  182. maincol2 = Torso.Color
  183.  
  184. local RbxUtility = LoadLibrary("RbxUtility")
  185. local Create = RbxUtility.Create
  186.  
  187. Humanoid.WalkSpeed = 16
  188. Humanoid.JumpPower = 50
  189. Humanoid.Animator.Parent = nil
  190. Character.Animate.Parent = nil
  191.  
  192. local newMotor = function(part0, part1, c0, c1)
  193. local w = Create('Motor'){
  194. Parent = part0,
  195. Part0 = part0,
  196. Part1 = part1,
  197. C0 = c0,
  198. C1 = c1,
  199. }
  200. return w
  201. end
  202.  
  203.  
  204. function clerp(a, b, t)
  205. return a:lerp(b, t)
  206. end
  207.  
  208. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  209. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  210. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  211. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  212. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  213. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  214. RootJoint.C1 = CFrame.new(0, 0, 0)
  215. RootJoint.C0 = CFrame.new(0, 0, 0)
  216. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  217. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  218. local rarmc1 = RW.C1
  219. local larmc1 = LW.C1
  220. local rlegc1 = RH.C1
  221. local llegc1 = LH.C1
  222. local resetc1 = false
  223. Humanoid.Parent = nil
  224. RootPart.Size = RootPart.Size*charsize
  225. Torso.Size = Torso.Size*charsize
  226. RightArm.Size = RightArm.Size*charsize
  227. RightLeg.Size = RightLeg.Size*charsize
  228. LeftArm.Size = LeftArm.Size*charsize
  229. LeftLeg.Size = LeftLeg.Size*charsize
  230. Head.Size = Head.Size*charsize
  231. RootJoint.Parent = RootPart
  232. Neck.Parent = Torso
  233. RW.Parent = Torso
  234. LW.Parent = Torso
  235. RH.Parent = Torso
  236. LH.Parent = Torso
  237. Humanoid.Parent = Character
  238.  
  239. ch = Character:GetChildren()
  240. for i = 1, #ch do
  241. if ch[i].Name == "Torso" then
  242. ch[i].roblox.Transparency = 1
  243. elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" then
  244. ch[i]:Destroy()
  245. end
  246. end
  247.  
  248.  
  249. --<><><><><><><><><><><><>--
  250.  
  251. --Passive Effects--
  252.  
  253. --<><><><><><><><><><><><>--
  254.  
  255. spawn(function()
  256. while true do
  257. wait(.1)
  258. if Anim == "Idle" or Anim == "Walk" then
  259. 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))
  260. refpart.Anchored = false
  261. refpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),80,math.random(-30,30))
  262. refpart.CanCollide = false
  263. local GRAVITY_ACCELERATION = 3.05
  264. local bodyForce = Instance.new('BodyForce', refpart)
  265. bodyForce.Name = 'Antigravity'
  266. bodyForce.force = Vector3.new(0, refpart:GetMass() * GRAVITY_ACCELERATION, 0)
  267. local rl = Create("BodyAngularVelocity"){
  268. P = 300,
  269. maxTorque = Vector3.new(2, 2, 2),
  270. angularvelocity = Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)),
  271. Parent = refpart,}
  272. table.insert(Effects, {refpart,"Disappear",.003})
  273. game:GetService("Debris"):AddItem(refpart, 10)
  274. end
  275. end
  276. end)
  277.  
  278.  
  279. --<><><><><><><><><><><><>--
  280.  
  281. --Tables and Songs--
  282.  
  283. --<><><><><><><><><><><><>--
  284.  
  285. local songs = {
  286. 1374520036,
  287. 1034928566,
  288. 228239848,
  289. 257314417,
  290. 176069112,
  291. 608232329,
  292. }
  293.  
  294. local quotes = {
  295. "I will amaze you!",
  296. "Heads off to you!",
  297. "Step right up!",
  298. "Be amazed!",
  299. "The show must go on!",
  300. "Let the show begin!",
  301. }
  302.  
  303. playlist = Instance.new("Sound", Torso)
  304. playlist.SoundId = "rbxassetid://1234043017"
  305. playlist.Volume = 3
  306. playlist.TimePosition = 0
  307. playlist.Name = "aa"
  308. playlist:Play()
  309.  
  310. --<><><><><><><><><><><><>--
  311.  
  312. --Clothes--
  313.  
  314. --<><><><><><><><><><><><>--
  315.  
  316. local top = Instance.new("Shirt")
  317. top.ShirtTemplate = "rbxassetid://268316000"
  318. top.Parent = Character
  319. top.Name = "Cloth"
  320. local bottom = Instance.new("Pants")
  321. bottom.PantsTemplate = "rbxassetid://268949770"
  322. bottom.Parent = Character
  323. bottom.Name = "Cloth"
  324.  
  325. --<><><><><><><><><><><><>--
  326.  
  327. --Name Tag--
  328.  
  329. --<><><><><><><><><><><><>--
  330.  
  331. --[[Humanoid.DisplayDistanceType = "None"
  332. local naeeym2 = Instance.new("BillboardGui",Character)
  333. naeeym2.AlwaysOnTop = false
  334. naeeym2.Size = UDim2.new(5,35,2,15)
  335. naeeym2.StudsOffset = Vector3.new(0,7,0)
  336. naeeym2.MaxDistance = 75
  337. naeeym2.Adornee = Character.Torso
  338. naeeym2.Name = "Maddox the Swing Spirit"
  339. local tecks2 = Instance.new("TextLabel",naeeym2)
  340. tecks2.BackgroundTransparency = 1
  341. tecks2.TextScaled = true
  342. tecks2.BorderSizePixel = 0
  343. tecks2.Text = "Maddox"
  344. tecks2.Font = "Cartoon"
  345. tecks2.TextSize = 30
  346. tecks2.TextStrokeTransparency = 0
  347. tecks2.TextColor3 = Color3.new(1,1,1)
  348. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  349. tecks2.Size = UDim2.new(1,0,0.5,0)
  350. tecks2.Parent = naeeym2]]--
  351.  
  352. function PlayAnimationFromTable(table, speed, bool)
  353. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  354. Neck.C0 = clerp(Neck.C0, table[2], speed)
  355. RW.C0 = clerp(RW.C0, table[3], speed)
  356. LW.C0 = clerp(LW.C0, table[4], speed)
  357. RH.C0 = clerp(RH.C0, table[5], speed)
  358. LH.C0 = clerp(LH.C0, table[6], speed)
  359. if bool == true then
  360. if resetc1 == false then
  361. resetc1 = true
  362. RootJoint.C1 = RootJoint.C1
  363. Torso.Neck.C1 = Torso.Neck.C1
  364. RW.C1 = rarmc1
  365. LW.C1 = larmc1
  366. RH.C1 = rlegc1
  367. LH.C1 = llegc1
  368. end
  369. end
  370. end
  371.  
  372. ArtificialHB = Create("BindableEvent"){
  373. Parent = script,
  374. Name = "Heartbeat",
  375. }
  376.  
  377. script:WaitForChild("Heartbeat")
  378.  
  379. frame = 1 / 45
  380. tf = 0
  381. allowframeloss = false
  382. tossremainder = false
  383. lastframe = tick()
  384. script.Heartbeat:Fire()
  385.  
  386. game:GetService("RunService").Heartbeat:connect(function(s, p)
  387. tf = tf + s
  388. if tf >= frame then
  389. if allowframeloss then
  390. script.Heartbeat:Fire()
  391. lastframe = tick()
  392. else
  393. for i = 1, math.floor(tf / frame) do
  394. script.Heartbeat:Fire()
  395. end
  396. lastframe = tick()
  397. end
  398. if tossremainder then
  399. tf = 0
  400. else
  401. tf = tf - frame * math.floor(tf / frame)
  402. end
  403. end
  404. end)
  405.  
  406. function swait(num)
  407. if num == 0 or num == nil then
  408. ArtificialHB.Event:wait()
  409. else
  410. for i = 0, num do
  411. ArtificialHB.Event:wait()
  412. end
  413. end
  414. end
  415.  
  416. local m = Create("Model"){
  417. Parent = Character,
  418. Name = "WeaponModel"
  419. }
  420.  
  421. local m2 = Create("Model"){
  422. Parent = Character,
  423. Name = "WeaponModel2"
  424. }
  425.  
  426. function RemoveOutlines(part)
  427. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  428. end
  429.  
  430. CFuncs = {
  431. Part = {
  432. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  433. local Part = Create("Part"){
  434. Parent = Parent,
  435. Reflectance = Reflectance,
  436. Transparency = Transparency,
  437. CanCollide = false,
  438. Locked = true,
  439. BrickColor = BrickColor.new(tostring(BColor)),
  440. Name = Name,
  441. Size = Size,
  442. Material = Material,
  443. }
  444. RemoveOutlines(Part)
  445. if Size == Vector3.new() then
  446. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  447. else
  448. Part.Size = Size
  449. end
  450. return Part
  451. end;
  452. };
  453.  
  454. Mesh = {
  455. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  456. local Msh = Create(Mesh){
  457. Parent = Part,
  458. Offset = OffSet,
  459. Scale = Scale,
  460. }
  461. if Mesh == "SpecialMesh" then
  462. Msh.MeshType = MeshType
  463. Msh.MeshId = MeshId
  464. end
  465. return Msh
  466. end;
  467. };
  468.  
  469. Weld = {
  470. Create = function(Parent, Part0, Part1, C0, C1)
  471. local Weld = Create("Weld"){
  472. Parent = Parent,
  473. Part0 = Part0,
  474. Part1 = Part1,
  475. C0 = C0,
  476. C1 = C1,
  477. }
  478. return Weld
  479. end;
  480. };
  481.  
  482. Sound = {
  483. Create = function(id, par, vol, pit)
  484. local Sound = Create("Sound"){
  485. Volume = vol,
  486. Pitch = pit or 1,
  487. SoundId = "rbxassetid://" .. id,
  488. Parent = par or workspace,
  489. Name = "aa"
  490. }
  491. Sound:play()
  492. return Sound
  493. end;
  494. };
  495.  
  496. Decal = {
  497. Create = function(Color, Texture, Transparency, Name, Parent)
  498. local Decal = Create("Decal"){
  499. Color3 = Color,
  500. Texture = "rbxassetid://" .. Texture,
  501. Transparency = Transparency,
  502. Name = Name,
  503. Parent = Parent,
  504. }
  505. return Decal
  506. end;
  507. };
  508.  
  509. BillboardGui = {
  510. Create = function(Parent, Image, Position, Size)
  511. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  512. BillPar.CFrame = CFrame.new(Position)
  513. local Bill = Create("BillboardGui"){
  514. Parent = BillPar,
  515. Adornee = BillPar,
  516. Size = UDim2.new(1, 0, 1, 0),
  517. SizeOffset = Vector2.new(Size, Size),
  518. }
  519. local d = Create("ImageLabel", Bill){
  520. Parent = Bill,
  521. BackgroundTransparency = 1,
  522. Size = UDim2.new(1, 0, 1, 0),
  523. Image = "rbxassetid://" .. Image,
  524. }
  525. return BillPar
  526. end
  527. };
  528.  
  529. ParticleEmitter = {
  530. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  531. local Particle = Create("ParticleEmitter"){
  532. Parent = Parent,
  533. Color = ColorSequence.new(Color1, Color2),
  534. LightEmission = LightEmission,
  535. Size = Size,
  536. Texture = Texture,
  537. Transparency = Transparency,
  538. ZOffset = ZOffset,
  539. Acceleration = Accel,
  540. Drag = Drag,
  541. LockedToPart = LockedToPart,
  542. VelocityInheritance = VelocityInheritance,
  543. EmissionDirection = EmissionDirection,
  544. Enabled = Enabled,
  545. Lifetime = LifeTime,
  546. Rate = Rate,
  547. Rotation = Rotation,
  548. RotSpeed = RotSpeed,
  549. Speed = Speed,
  550. VelocitySpread = VelocitySpread,
  551. }
  552. return Particle
  553. end;
  554. };
  555.  
  556. CreateTemplate = {
  557.  
  558. };
  559. }
  560.  
  561.  
  562.  
  563.  
  564. function RayCast(Position, Direction, Range, Ignore)
  565. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  566. end
  567.  
  568. FindNearestTorso = function(pos)
  569. local list = (game.Workspace:children())
  570. local torso = nil
  571. local dist = 1000
  572. local temp, human, temp2 = nil, nil, nil
  573. for x = 1, #list do
  574. temp2 = list[x]
  575. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  576. temp = temp2:findFirstChild("Torso")
  577. human = temp2:findFirstChild("Humanoid")
  578. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  579. local dohit = true
  580. if dohit == true then
  581. torso = temp
  582. dist = (temp.Position - pos).magnitude
  583. end
  584. end
  585. end
  586. end
  587. return torso, dist
  588. end
  589.  
  590. Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
  591.  
  592. local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  593. prt.Anchored = true
  594. prt.CFrame = cframe
  595. prt.Material = "Neon"
  596. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  597. game:GetService("Debris"):AddItem(prt, 10)
  598. coroutine.resume(coroutine.create(function(Part, Mesh)
  599.  
  600. for i = 0, 1, delay do
  601. swait()
  602. Part.Transparency = i
  603. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  604. end
  605. Part.Parent = nil
  606. end
  607. ), prt, msh)
  608. end
  609.  
  610.  
  611.  
  612.  
  613. shoot = function(mouse, aoe , partt, SpreadAmount, multiply)
  614.  
  615. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  616. local MainPos = partt.Position
  617. local MainPos2 = mouse.Hit.p + SpreadVectors
  618. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  619. local speed = 1000
  620. local num = 1
  621. coroutine.resume(coroutine.create(function()
  622.  
  623. repeat
  624. swait()
  625. local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  626. local mag = (MainPos - pos).magnitude
  627. 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)
  628. MainPos = MainPos + MouseLook.lookVector * speed
  629. num = num - 1
  630. MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0)
  631. if hit ~= nil then
  632. num = 0
  633. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  634. refpart.Anchored = true
  635. refpart.CFrame = CFrame.new(pos)
  636. game:GetService("Debris"):AddItem(refpart, 2)
  637. end
  638. do
  639. if num <= 0 then
  640. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  641. refpart.Anchored = true
  642. refpart.CFrame = CFrame.new(pos)
  643. Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 10, 10, 10, 10, 10, 10, .1, 1)
  644. Effects.Break.Create(BrickColor.new(maincol), refpart.CFrame, 2, 10, 2)
  645. if hit ~= nil then
  646. MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0)
  647. end
  648. game:GetService("Debris"):AddItem(refpart, 0)
  649. end
  650. end
  651. until num <= 0
  652. end
  653. ))
  654. end
  655.  
  656.  
  657. Laser2 = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
  658.  
  659. local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5+lasersize, 0.5, 0.5+lasersize))
  660. prt.Anchored = true
  661. prt.CFrame = cframe
  662. prt.Material = "Neon"
  663. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  664. game:GetService("Debris"):AddItem(prt, 10)
  665. coroutine.resume(coroutine.create(function(Part, Mesh)
  666.  
  667. for i = 0, 1, delay do
  668. swait()
  669. Part.Transparency = i
  670. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  671. end
  672. Part.Parent = nil
  673. end
  674. ), prt, msh)
  675. end
  676.  
  677.  
  678.  
  679.  
  680. shoot2 = function(mouse, aoe , partt, SpreadAmount, multiply)
  681.  
  682. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  683. local MainPos = partt.Position
  684. local MainPos2 = mouse.Hit.p + SpreadVectors
  685. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  686. local speed = 1000
  687. local num = 1
  688. coroutine.resume(coroutine.create(function()
  689.  
  690. repeat
  691. swait()
  692. local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  693. local mag = (MainPos - pos).magnitude
  694. 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)
  695. MainPos = MainPos + MouseLook.lookVector * speed
  696. num = num - 1
  697. MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0)
  698. if hit ~= nil then
  699. num = 0
  700. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  701. refpart.Anchored = true
  702. refpart.CFrame = CFrame.new(pos)
  703. game:GetService("Debris"):AddItem(refpart, 2)
  704. end
  705. do
  706. if num <= 0 then
  707. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  708. refpart.Anchored = true
  709. refpart.CFrame = CFrame.new(pos)
  710. Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 1, 1, 1, 1+lasersize, 1+lasersize, 1+lasersize, .05, 1)
  711. if hit ~= nil then
  712. MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0)
  713. end
  714. game:GetService("Debris"):AddItem(refpart, 0)
  715. end
  716. end
  717. until num <= 0
  718. end
  719. ))
  720. end
  721.  
  722.  
  723.  
  724.  
  725. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  726. if hit.Parent == nil then
  727. return
  728. end
  729. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  730. for _, v in pairs(hit.Parent:children()) do
  731. if v:IsA("Humanoid") then
  732. h = v
  733. end
  734. end
  735. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  736. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  737. if hit.Parent.DebounceHit.Value == true then
  738. return
  739. end
  740. end
  741. local c = Create("ObjectValue"){
  742. Name = "creator",
  743. Value = game:service("Players").LocalPlayer,
  744. Parent = h,
  745. }
  746. game:GetService("Debris"):AddItem(c, .5)
  747. if HitSound ~= nil and HitPitch ~= nil then
  748. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  749. end
  750. local Damage = math.random(minim, maxim)
  751. local blocked = false
  752. local block = hit.Parent:findFirstChild("Block")
  753. if block ~= nil then
  754. if block.className == "IntValue" then
  755. if block.Value > 0 then
  756. blocked = true
  757. block.Value = block.Value - 1
  758. print(block.Value)
  759. end
  760. end
  761. end
  762. if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100 and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  763. for i = 0, 1, 0.1 do
  764. Effects.Break.Create(BrickColor.new("White"), hit.CFrame, 1, 4, 1)
  765. end
  766. CFuncs.Sound.Create("402174682", Torso, 5, 1)
  767. 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)
  768. for _,v in pairs(hit.Parent:children()) do
  769. if v:IsA("Part") then
  770. v.Transparency = 1
  771. end
  772. end
  773. hit.Parent:BreakJoints()
  774. else
  775. h.Health = h.Health - Damage
  776. 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)
  777. end
  778. if Type == "Seizure" then
  779. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  780. Effects.InnerSphere.Create(BrickColor.new("Eggplant"), hit.Parent.Torso.CFrame, 100, 2, .01)
  781. spawn(function()
  782. for i = 1, 1000 do
  783. swait()
  784. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  785. hum.MaxHealth = hum.MaxHealth - 10
  786. hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.new(math.random(-1,1)/2,0,math.random(-1,1)/2)
  787. end
  788. end)
  789. elseif Type == "Paralyze" then
  790. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  791. coroutine.resume(coroutine.create(function(HHumanoid)
  792. CFuncs.Sound.Create("209545844", hit.Parent.Torso, 1, 1)
  793. CFuncs.Sound.Create("1143596511", hit.Parent.Torso, 1, 1)
  794. Effects.InnerSphere.Create(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 100, 2, .01)
  795. local rl = Create("BodyAngularVelocity"){
  796. P = 3000,
  797. maxTorque = Vector3.new(50, 50, 50)* 200000000000,
  798. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  799. Parent = hit,
  800. }
  801. wait(.1)
  802. rl:Destroy()
  803. for i = 1, 500 do
  804. local rl = Create("BodyAngularVelocity"){
  805. P = 3000,
  806. maxTorque = Vector3.new(50, 50, 50)* 20,
  807. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  808. Parent = hit,
  809. }
  810. hum.Health = hum.Health - .01
  811. hum.PlatformStand = true
  812. for _,v in pairs(hit.Parent:children()) do
  813. if v:IsA("Part") then
  814. local oldcol = v.BrickColor
  815. v.BrickColor = BrickColor.new("New Yeller")
  816. wait(.1)
  817. v.BrickColor = oldcol
  818. end
  819. end
  820. rl:Destroy()
  821. end
  822.  
  823. HHumanoid.PlatformStand = false
  824. end), hum)
  825. elseif Type == "Knockdown" then
  826. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  827. hum.PlatformStand = true
  828. coroutine.resume(coroutine.create(function(HHumanoid)
  829. swait(1)
  830. HHumanoid.PlatformStand = false
  831. end), hum)
  832. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  833. local bodvol = Create("BodyVelocity"){
  834. velocity = angle * knockback,
  835. P = 5000,
  836. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  837. Parent = hit,
  838. }
  839. local rl = Create("BodyAngularVelocity"){
  840. P = 3000,
  841. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  842. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  843. Parent = hit,
  844. }
  845. game:GetService("Debris"):AddItem(bodvol, .5)
  846. game:GetService("Debris"):AddItem(rl, .5)
  847.  
  848. elseif Type == "Normal" then
  849. local vp = Create("BodyVelocity"){
  850. P = 500,
  851. maxForce = Vector3.new(math.huge, 0, math.huge),
  852. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  853. }
  854.  
  855.  
  856.  
  857.  
  858. if knockback > 0 then
  859. vp.Parent = hit.Parent.Torso
  860. end
  861. game:GetService("Debris"):AddItem(vp, .5)
  862. elseif Type == "Float" then
  863. local vp = Create("BodyVelocity"){
  864. P = 10,
  865. maxForce = Vector3.new(math.huge, 0, math.huge),
  866. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  867. }
  868. print(hit.Parent)
  869. if knockback > 0 then
  870. vp.Parent = hit.Parent.Torso
  871. end
  872. local hum = hit.Parent.Humanoid
  873. hum.PlatformStand = true
  874. local TotalMass = 0
  875. for _, part in pairs(hit.Parent:GetChildren()) do
  876. if part:IsA("Part") then
  877. TotalMass = TotalMass + part:GetMass()
  878. end
  879. end
  880. local ForceOfGravity = -200 * TotalMass
  881. local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
  882. floatybits.force = Vector3.new(0, -ForceOfGravity, 0)
  883. local rl = Create("BodyAngularVelocity"){
  884. P = 500,
  885. maxTorque = Vector3.new(10, 10, 10),
  886. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  887. Parent = hit,
  888. }
  889. game:GetService("Debris"):AddItem(rl, 20)
  890. game:GetService("Debris"):AddItem(floatybits, 20)
  891. game:GetService("Debris"):AddItem(vp, .5)
  892.  
  893. spawn(function()
  894. for i = 1, 70 do
  895. wait(.2)
  896. 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)
  897. end
  898. end)
  899.  
  900. elseif Type == "Up" then
  901. local bodyVelocity = Create("BodyVelocity"){
  902. velocity = Vector3.new(0, 20, 0),
  903. P = 5000,
  904. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  905. Parent = hit,
  906. }
  907. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  908. elseif Type == "DarkUp" then
  909. coroutine.resume(coroutine.create(function()
  910. for i = 0, 1, 0.1 do
  911. swait()
  912. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  913. end
  914. end))
  915. local bodyVelocity = Create("BodyVelocity"){
  916. velocity = Vector3.new(0, 20, 0),
  917. P = 5000,
  918. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  919. Parent = hit,
  920. }
  921. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  922. elseif Type == "Snare" then
  923. local bp = Create("BodyPosition"){
  924. P = 2000,
  925. D = 100,
  926. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  927. position = hit.Parent.Torso.Position,
  928. Parent = hit.Parent.Torso,
  929. }
  930. game:GetService("Debris"):AddItem(bp, 1)
  931. elseif Type == "Freeze" then
  932. local BodPos = Create("BodyPosition"){
  933. P = 50000,
  934. D = 1000,
  935. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  936. position = hit.Parent.Torso.Position,
  937. Parent = hit.Parent.Torso,
  938. }
  939. local BodGy = Create("BodyGyro") {
  940. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  941. P = 20e+003,
  942. Parent = hit.Parent.Torso,
  943. CFrame = hit.Parent.Torso.CFrame,
  944. }
  945. CFuncs.Sound.Create("585135955", hit.Parent.Torso, 5, 1)
  946. Effects.Block.Create(BrickColor.new("Baby blue"), hit.Parent.Torso.CFrame, 3, 3, 3, 3, 5, 3, .02, 2)
  947. hit.Parent.Torso.Anchored = true
  948. coroutine.resume(coroutine.create(function(Part)
  949. swait(1.5)
  950. Part.Anchored = false
  951. end), hit.Parent.Torso)
  952. game:GetService("Debris"):AddItem(BodPos, 3)
  953. game:GetService("Debris"):AddItem(BodGy, 3)
  954. end
  955. local debounce = Create("BoolValue"){
  956. Name = "DebounceHit",
  957. Parent = hit.Parent,
  958. Value = true,
  959. }
  960. if Delay > 0 then
  961. game:GetService("Debris"):AddItem(debounce, Delay)
  962. c = Create("ObjectValue"){
  963. Name = "creator",
  964. Value = Player,
  965. Parent = h,
  966. }
  967. end
  968. game:GetService("Debris"):AddItem(c, .5)
  969. end
  970. end
  971.  
  972. function ShowDamage(Pos, Text, Time, Color, Color2)
  973. local Rate = (1 / 45)
  974. local Pos = (Pos or Vector3.new(0, 0, 0))
  975. local Text = (Text or "")
  976. local Time = (Time or 2)
  977. local Color = (Color or Color3.new(1, 0, 1))
  978. local Color2 = (Color2 or Color3.new(1, 0, 1))
  979. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  980. EffectPart.Anchored = false
  981. EffectPart.CFrame = CFrame.new(Pos)
  982. EffectPart.Velocity = EffectPart.CFrame.upVector * math.random(60,70)
  983. local sizebit = 5
  984. local BillboardGui = Create("BillboardGui"){
  985. Size = UDim2.new(sizebit, 0, sizebit, 0),
  986. Adornee = EffectPart,
  987. Parent = EffectPart,
  988. }
  989. local TextLabel = Create("TextLabel"){
  990. BackgroundTransparency = 1,
  991. Size = UDim2.new(1, 0, 1, 0),
  992. Text = Text,
  993. Font = "Cartoon",
  994. TextColor3 = Color,
  995. TextStrokeColor3 = Color2,
  996. TextStrokeTransparency = 0,
  997. TextScaled = true,
  998. Parent = BillboardGui,
  999. }
  1000. game.Debris:AddItem(EffectPart, (Time))
  1001. EffectPart.Parent = game:GetService("Workspace")
  1002. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, 0, 0)
  1003. delay(0, function()
  1004. local Frames = (Time / Rate)
  1005. wait(.5)
  1006. EffectPart.Anchored = true
  1007. wait(.5)
  1008. for Frame = 1, Frames do
  1009. wait(Rate)
  1010. BillboardGui.Size = UDim2.new(sizebit, 0, sizebit, 0)
  1011. local Percent = (Frame / Frames)
  1012. TextLabel.TextTransparency = Percent
  1013. sizebit = sizebit - .4
  1014. end
  1015. if EffectPart and EffectPart.Parent then
  1016. EffectPart:Destroy()
  1017. end
  1018. end)
  1019. end
  1020.  
  1021. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitPitch)
  1022. for _, c in pairs(workspace:children()) do
  1023. local hum = c:findFirstChildOfClass("Humanoid")
  1024. if hum ~= nil then
  1025. local head = c:findFirstChild("Torso")
  1026. if head ~= nil then
  1027. local targ = head.Position - Part.Position
  1028. local mag = targ.magnitude
  1029. if mag <= Magnitude and c.Name ~= Player.Name then
  1030. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitPitch)
  1031. end
  1032. end
  1033. end
  1034. end
  1035. end
  1036.  
  1037. EffectModel = Create("Model"){
  1038. Parent = Character,
  1039. Name = "EffectModel",
  1040. }
  1041.  
  1042. Effects = {
  1043. Block = {
  1044. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1045. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1046. prt.Anchored = true
  1047. prt.CFrame = cframe
  1048. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1049. game:GetService("Debris"):AddItem(prt, 10)
  1050. if Type == 1 or Type == nil then
  1051. table.insert(Effects, {
  1052. prt,
  1053. "Block1",
  1054. delay,
  1055. x3,
  1056. y3,
  1057. z3,
  1058. msh
  1059. })
  1060. elseif Type == 2 then
  1061. table.insert(Effects, {
  1062. prt,
  1063. "Block2",
  1064. delay,
  1065. x3,
  1066. y3,
  1067. z3,
  1068. msh
  1069. })
  1070. end
  1071. end;
  1072. };
  1073.  
  1074. Cylinder = {
  1075. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1076. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  1077. prt.Anchored = true
  1078. prt.CFrame = cframe
  1079. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1080. game:GetService("Debris"):AddItem(prt, 2)
  1081. table.insert(Effects, {
  1082. prt,
  1083. "Cylinder",
  1084. delay,
  1085. x3,
  1086. y3,
  1087. z3,
  1088. msh
  1089. })
  1090. end;
  1091. };
  1092.  
  1093. Head = {
  1094. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1095. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1096. prt.Anchored = true
  1097. prt.CFrame = cframe
  1098. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1099. game:GetService("Debris"):AddItem(prt, 10)
  1100. table.insert(Effects, {
  1101. prt,
  1102. "Cylinder",
  1103. delay,
  1104. x3,
  1105. y3,
  1106. z3,
  1107. msh
  1108. })
  1109. end;
  1110. };
  1111.  
  1112. Sphere1 = {
  1113. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1114. local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new())
  1115. prt.Anchored = true
  1116. prt.CFrame = cframe
  1117. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1118. game:GetService("Debris"):AddItem(prt, 10)
  1119. table.insert(Effects, {
  1120. prt,
  1121. "Cylinder",
  1122. delay,
  1123. x3,
  1124. y3,
  1125. z3,
  1126. msh
  1127. })
  1128. end;
  1129. };
  1130.  
  1131. Sphere2 = {
  1132. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1133. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1134. prt.Anchored = true
  1135. prt.CFrame = cframe
  1136. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1137. game:GetService("Debris"):AddItem(prt, 10)
  1138. table.insert(Effects, {
  1139. prt,
  1140. "Cylinder",
  1141. delay,
  1142. x3,
  1143. y3,
  1144. z3,
  1145. msh
  1146. })
  1147. end;
  1148. };
  1149.  
  1150. InnerSphere = {
  1151. Create = function(brickcolor, cframe, size, shrinkspeed, appspeed)
  1152. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1153. prt.Anchored = true
  1154. prt.CFrame = cframe
  1155. prt.Transparency = 1
  1156. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(size, size, size))
  1157. game:GetService("Debris"):AddItem(prt, 10)
  1158. spawn(function()
  1159. while true do
  1160. if size ~= 0 then
  1161. swait()
  1162. msh.Scale = Vector3.new(size, size, size)
  1163. size = size - shrinkspeed or size - 1
  1164. prt.Transparency = prt.Transparency - appspeed
  1165. else prt:Destroy() break
  1166. end
  1167. end
  1168. end)
  1169. end;
  1170. };
  1171.  
  1172. Elect = {
  1173. Create = function(cff, x, y, z)
  1174. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new(maincol), "Part", Vector3.new(1, 1, 1))
  1175. prt.Anchored = true
  1176. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1177. prt.CFrame = CFrame.new(prt.Position)
  1178. game:GetService("Debris"):AddItem(prt, 2)
  1179. local xval = math.random() / 2
  1180. local yval = math.random() / 2
  1181. local zval = math.random() / 2
  1182. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1183. table.insert(Effects, {
  1184. prt,
  1185. "Elec",
  1186. 0.1,
  1187. x,
  1188. y,
  1189. z,
  1190. xval,
  1191. yval,
  1192. zval
  1193. })
  1194. end;
  1195.  
  1196. };
  1197.  
  1198. Ring = {
  1199. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1200. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1201. prt.Anchored = true
  1202. prt.CFrame = cframe
  1203. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1204. game:GetService("Debris"):AddItem(prt, 10)
  1205. table.insert(Effects, {
  1206. prt,
  1207. "Cylinder",
  1208. delay,
  1209. x3,
  1210. y3,
  1211. z3,
  1212. msh
  1213. })
  1214. end;
  1215. };
  1216.  
  1217.  
  1218. Wave = {
  1219. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1220. local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new())
  1221. prt.Anchored = true
  1222. prt.CFrame = cframe
  1223. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1224. game:GetService("Debris"):AddItem(prt, 10)
  1225. table.insert(Effects, {
  1226. prt,
  1227. "Cylinder",
  1228. delay,
  1229. x3,
  1230. y3,
  1231. z3,
  1232. msh
  1233. })
  1234. end;
  1235. };
  1236.  
  1237. Break = {
  1238. Create = function(brickcolor, cframe, x1, y1, z1)
  1239. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1240. prt.Anchored = true
  1241. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1242. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1243. local num = math.random(10, 50) / 1000
  1244. game:GetService("Debris"):AddItem(prt, 10)
  1245. table.insert(Effects, {
  1246. prt,
  1247. "Shatter",
  1248. num,
  1249. prt.CFrame,
  1250. math.random() - math.random(),
  1251. 0,
  1252. math.random(50, 100) / 100
  1253. })
  1254. end;
  1255. };
  1256.  
  1257. Fire = {
  1258. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1259. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1260. prt.Anchored = true
  1261. prt.CFrame = cframe
  1262. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1263. game:GetService("Debris"):AddItem(prt, 10)
  1264. table.insert(Effects, {
  1265. prt,
  1266. "Fire",
  1267. delay,
  1268. 1,
  1269. 1,
  1270. 1,
  1271. msh
  1272. })
  1273. end;
  1274. };
  1275.  
  1276. FireWave = {
  1277. Create = function(brickcolor, cframe, x1, y1, z1)
  1278. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1279. prt.Anchored = true
  1280. prt.CFrame = cframe
  1281. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1282. local d = Create("Decal"){
  1283. Parent = prt,
  1284. Texture = "rbxassetid://26356434",
  1285. Face = "Top",
  1286. }
  1287. local d = Create("Decal"){
  1288. Parent = prt,
  1289. Texture = "rbxassetid://26356434",
  1290. Face = "Bottom",
  1291. }
  1292. game:GetService("Debris"):AddItem(prt, 10)
  1293. table.insert(Effects, {
  1294. prt,
  1295. "FireWave",
  1296. 1,
  1297. 30,
  1298. math.random(400, 600) / 100,
  1299. msh
  1300. })
  1301. end;
  1302. };
  1303.  
  1304. Lightning = {
  1305. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1306. local magz = (p0 - p1).magnitude
  1307. local curpos = p0
  1308. local trz = {
  1309. -ofs,
  1310. ofs
  1311. }
  1312. for i = 1, tym do
  1313. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1314. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1315. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1316. li.Material = "Neon"
  1317. if tym == i then
  1318. local magz2 = (curpos - p1).magnitude
  1319. li.Size = Vector3.new(th, th, magz2)
  1320. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1321. table.insert(Effects, {
  1322. li,
  1323. "Disappear",
  1324. last
  1325. })
  1326. else
  1327. do
  1328. do
  1329. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1330. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1331. game.Debris:AddItem(li, 10)
  1332. table.insert(Effects, {
  1333. li,
  1334. "Disappear",
  1335. last
  1336. })
  1337. end
  1338. end
  1339. end
  1340. end
  1341. end
  1342. };
  1343.  
  1344. EffectTemplate = {
  1345.  
  1346. };
  1347. }
  1348.  
  1349. Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(2, 2, 2))
  1350. 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))
  1351. meh=CFuncs.Mesh.Create("SpecialMesh",Hat,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=2711178",Vector3.new(0, 0, 0),Vector3.new(2, 2, 2))
  1352. meh.TextureId = "http://www.roblox.com/asset/?id=32935396"
  1353.  
  1354.  
  1355.  
  1356. for _,v in pairs(m2:children()) do
  1357. if v:IsA("Part") and v.Name == "pand" then
  1358. v.Transparency = 1
  1359. end
  1360. end
  1361.  
  1362.  
  1363. --Start neccessary functions here
  1364.  
  1365. function Tween(obj,props,time,easing,direction,repeats,backwards)
  1366. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  1367. local tween = game:service'TweenService':Create(obj, info, props)
  1368.  
  1369. tween:Play()
  1370. end
  1371.  
  1372. function Trace()
  1373. for _,v in next, Character:GetChildren() do
  1374. if(v:IsA'Part') and v ~= RootPart then
  1375. local trace = Instance.new("Part")
  1376. trace.Parent = workspace
  1377. trace.Size = v.Size
  1378. trace.Material = Enum.Material.Neon
  1379. trace.Color = maincol
  1380. trace.Transparency = .3
  1381. trace.Anchored = true
  1382. trace.CanCollide = false
  1383. trace.CFrame = v.CFrame
  1384. Tween(trace,{Transparency=1},.5)
  1385. game:GetService("Debris"):AddItem(trace, 1)
  1386. if v.Name == "Head" then
  1387. local mehs = Instance.new("CylinderMesh",trace)
  1388. mehs.Scale = Vector3.new(1.25,1.25,1.25)
  1389. end
  1390. end
  1391. end
  1392. end
  1393.  
  1394.  
  1395. function ducks()
  1396. for i = 0, 3, 0.1 do
  1397. swait()
  1398. PlayAnimationFromTable({
  1399. 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),
  1400. 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),
  1401. 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),
  1402. 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),
  1403. 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),
  1404. 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),
  1405. }, .3, false)
  1406. end
  1407. for i = 1, 2 do
  1408. for i = 0, 1, 0.1 do
  1409. swait()
  1410. PlayAnimationFromTable({
  1411. 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),
  1412. 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),
  1413. 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),
  1414. 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),
  1415. 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),
  1416. 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),
  1417. }, .3, false)
  1418. end
  1419. for i = 0, 1, 0.1 do
  1420. swait()
  1421. PlayAnimationFromTable({
  1422. 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),
  1423. 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),
  1424. 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),
  1425. 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),
  1426. 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),
  1427. 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),
  1428. }, .3, false)
  1429. end
  1430. end
  1431. CFuncs.Sound.Create("270620358", Hat, 3, 1)
  1432. for i = 0, 3, 0.1 do
  1433. swait()
  1434. PlayAnimationFromTable({
  1435. 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),
  1436. 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),
  1437. 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),
  1438. 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),
  1439. 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),
  1440. 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),
  1441. }, .2, false)
  1442. end
  1443. qwek = Instance.new("Sound", Torso)
  1444. qwek.SoundId = "rbxassetid://271006579"
  1445. qwek.Looped = true
  1446. qwek.Volume = 5
  1447. qwek.Pitch = .8
  1448. qwek:Play()
  1449. qwek2 = Instance.new("Sound", Torso)
  1450. qwek2.SoundId = "rbxassetid://271006579"
  1451. qwek2.Looped = true
  1452. qwek2.Volume = 5
  1453. qwek2.Pitch = 1
  1454. qwek2:Play()
  1455. qwek3 = Instance.new("Sound", Torso)
  1456. qwek3.SoundId = "rbxassetid://271006579"
  1457. qwek3.Looped = true
  1458. qwek3.Volume = 5
  1459. qwek3.Pitch = 1.3
  1460. qwek3:Play()
  1461. for i = 0, 10, 0.1 do
  1462. swait()
  1463. PlayAnimationFromTable({
  1464. 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),
  1465. 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),
  1466. 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),
  1467. 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),
  1468. 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),
  1469. 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),
  1470. }, .3, false)
  1471. local duk=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Bright yellow","duk",Vector3.new(2, 2, 2))
  1472. 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))
  1473. duk.CFrame = Hat.CFrame
  1474. duk.CanCollide = false
  1475. duk.Velocity = Vector3.new(math.random(-20,20),math.random(-60,60),math.random(-20,20))
  1476. duk.Name = "duk"
  1477. table.insert(Effects, {duk,"Disappear",.01})
  1478. game:GetService("Debris"):AddItem(duk, 3)
  1479. moosh.TextureId = "http://www.roblox.com/asset/?id=9419827"
  1480. Torso.Velocity=RootPart.CFrame.upVector*100
  1481. local con = duk.Touched:connect(function(hit)
  1482. if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "duk" and hit ~= m then
  1483. MagnitudeDamage(duk, 5, 30, 30, 20, "Normal", " ", 1)
  1484. Effects.Sphere2.Create(BrickColor.new("Gold"), duk.CFrame, 1, 1, 1, 2, 2, 2, .05)
  1485. end
  1486. end)
  1487. end
  1488. qwek3:Destroy()
  1489. qwek2:Destroy()
  1490. qwek:Destroy()
  1491. end
  1492.  
  1493.  
  1494.  
  1495. function pocketpandora()
  1496. Humanoid.AutoRotate = true
  1497. local PocketPandora=CFuncs.Part.Create( workspace,Enum.Material.Plastic,0,1,"Medium stone grey","PocketPandora",Vector3.new(0.512000322, 0.652799785, 0.640000045))
  1498. 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))
  1499. local pand=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"Fossil","pand",Vector3.new(0.406399965, 0.419200003, 0.320000023))
  1500. 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))
  1501. 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))
  1502. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1503. 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))
  1504. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1505. 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))
  1506. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1507. 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))
  1508. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014))
  1509. 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))
  1510. local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.896000028, 0.896000028, 0.448000014))
  1511. 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))
  1512. local pand=CFuncs.Part.Create( workspace,Enum.Material.Fabric,0,1.400709148669e-08,"Institutional white","pand",Vector3.new(0.896000028, 0.448000014, 0.448000014))
  1513. 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))
  1514. CFuncs.Mesh.Create("SpecialMesh",pand,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(1.25, 1.25, 1.25))
  1515.  
  1516. for i = 0, 3, 0.1 do
  1517. swait()
  1518. PlayAnimationFromTable({
  1519. 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),
  1520. 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),
  1521. 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),
  1522. 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),
  1523. 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),
  1524. 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),
  1525. }, .3, false)
  1526. end
  1527. CFuncs.Sound.Create("525166232", pand, 10, 1.1)
  1528. for i = 0, 3, 0.1 do
  1529. swait()
  1530. PlayAnimationFromTable({
  1531. 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),
  1532. 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),
  1533. 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),
  1534. 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),
  1535. 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),
  1536. 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),
  1537. }, .3, false)
  1538. end
  1539. for i = 0, 2, 0.1 do
  1540. swait()
  1541. PlayAnimationFromTable({
  1542. 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),
  1543. 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),
  1544. 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),
  1545. 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),
  1546. 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),
  1547. 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),
  1548. }, .3, false)
  1549. end
  1550.  
  1551. for i = 0, .1, 0.1 do
  1552. swait()
  1553. PlayAnimationFromTable({
  1554. 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),
  1555. 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),
  1556. 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),
  1557. 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),
  1558. 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),
  1559. 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),
  1560. }, .3, false)
  1561. end
  1562. PocketPandoraWeld:Destroy()
  1563. CFuncs.Sound.Create("160718677", pand, 5, 1)
  1564. for _,v in pairs(workspace:children()) do
  1565. if v:IsA("Part") and v.Name == "PocketPandora" then
  1566. v.Anchored = false
  1567. v.CanCollide = true
  1568. v.Parent = workspace
  1569. v.CFrame = RootPart.CFrame * CFrame.new(2,5,-5)
  1570. v.Velocity=RootPart.CFrame.lookVector*200
  1571. local con = v.Touched:connect(function(hit)
  1572. if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "refpart" then
  1573. MagnitudeDamage(PocketPandora, 30, 100, 100, 50, "Normal", " ", 1)
  1574. Effects.Sphere2.Create(BrickColor.new("Smoky grey"), v.CFrame, .5, 2, .5, 3, 5, 3, .03)
  1575. Effects.Sphere2.Create(BrickColor.new(maincol), v.CFrame, .6, 3, .6, 4, 6, 4, .03)
  1576. CFuncs.Sound.Create("206049428", pand, 10, 1)
  1577. v:Destroy()
  1578. end
  1579. end)
  1580. end
  1581. end
  1582.  
  1583. for i = 0,5, 0.1 do
  1584. swait()
  1585. PlayAnimationFromTable({
  1586. 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),
  1587. 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),
  1588. 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),
  1589. 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),
  1590. 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),
  1591. 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),
  1592. }, .3, false)
  1593. end
  1594.  
  1595. end
  1596.  
  1597.  
  1598. function foryou()
  1599. Humanoid.AutoRotate = true
  1600.  
  1601. FHandle=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Institutional white","FHandle",Vector3.new(1, 2, 1))
  1602. 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))
  1603. 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))
  1604. Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Dusty Rose","Plant",Vector3.new(2, 0.400000006, 2))
  1605. 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))
  1606. 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))
  1607. Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Really red","Plant",Vector3.new(2, 0.400000006, 2))
  1608. 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))
  1609. 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))
  1610. Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1))
  1611. 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))
  1612. 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))
  1613. Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1))
  1614. 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))
  1615. 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))
  1616. fire=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Medium stone grey","fire",Vector3.new(1.4400003, 2.17999935, 2.24999976))
  1617. 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))
  1618. Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Salmon","Plant",Vector3.new(2, 0.400000006, 2))
  1619. 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))
  1620. 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))
  1621. Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1))
  1622. 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))
  1623. 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))
  1624. CFuncs.Sound.Create("1030472543", Torso, 10, 1)
  1625. for i = 0, 5, 0.1 do
  1626. swait()
  1627. PlayAnimationFromTable({
  1628. 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),
  1629. 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),
  1630. 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),
  1631. 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),
  1632. 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),
  1633. 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),
  1634. }, .3, false)
  1635. end
  1636. for i = 0, 6, 0.1 do
  1637. swait()
  1638. PlayAnimationFromTable({
  1639. 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),
  1640. 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),
  1641. 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),
  1642. 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),
  1643. 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),
  1644. 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),
  1645. }, .3, false)
  1646. end
  1647. CFuncs.Sound.Create("490241055", fire, 10, 1)
  1648. local PE1 = Instance.new("ParticleEmitter",fire)
  1649. PE1.LightEmission = NumberSequence.new(0.2)
  1650. PE1.Size = NumberSequence.new(3)
  1651. PE1.Texture = "http://www.roblox.com/asset/?id=242461088"
  1652. PE1.Lifetime = NumberRange.new(.75)
  1653. PE1.Rate = 50.000
  1654. PE1.Transparency = NumberSequence.new(0.2)
  1655. PE1.LightEmission = NumberSequence.new(1)
  1656. PE1.Rotation = NumberRange.new(0)
  1657. PE1.Speed = NumberRange.new(.1)
  1658. PE1.RotSpeed = NumberRange.new(0)
  1659. PE1.ZOffset = .2
  1660. for i = 0, 5, 0.1 do
  1661. swait()
  1662. PlayAnimationFromTable({
  1663. 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),
  1664. 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),
  1665. 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),
  1666. 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),
  1667. 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),
  1668. 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),
  1669. }, .3, false)
  1670. end
  1671. CFuncs.Sound.Create("172324194", Torso, 10, 1)
  1672. for i = 0, 6, 0.1 do
  1673. swait()
  1674. PlayAnimationFromTable({
  1675. 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),
  1676. 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),
  1677. 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),
  1678. 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),
  1679. 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),
  1680. 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),
  1681. }, .4, false)
  1682. end
  1683. FHandleWeld:Destroy()
  1684. for _,v in pairs(m2:children()) do
  1685. if v:IsA("Part") then
  1686. v.Parent = workspace
  1687. v.CanCollide = true
  1688. v.Velocity=RootPart.CFrame.upVector*0
  1689. table.insert(Effects, {v,"Disappear",.008})
  1690. game:GetService("Debris"):AddItem(v, 5)
  1691. end
  1692. end
  1693. end
  1694.  
  1695.  
  1696.  
  1697. function topwat()
  1698. Attack = true
  1699. Humanoid.WalkSpeed = 0
  1700. Humanoid.JumpPower = 0
  1701. Humanoid.AutoRotate = false
  1702.  
  1703. for i = 0, 8, 0.1 do
  1704. swait()
  1705. PlayAnimationFromTable({
  1706. 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),
  1707. 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),
  1708. 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),
  1709. 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),
  1710. 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),
  1711. 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),
  1712. }, .1, false)
  1713. end
  1714.  
  1715.  
  1716. local x = math.random(1,3)
  1717. if x == 1 then
  1718. pocketpandora()
  1719. elseif x == 2 then
  1720. ducks()
  1721. elseif x == 3 then
  1722. foryou()
  1723. end
  1724.  
  1725. Humanoid.WalkSpeed = 16
  1726. Humanoid.JumpPower = 50
  1727. Humanoid.AutoRotate = true
  1728. Attack = false
  1729. end
  1730.  
  1731. function hatsoff()
  1732. Attack = true
  1733. Humanoid.WalkSpeed = 0
  1734. Humanoid.JumpPower = 0
  1735. CFuncs.Sound.Create("1578720743", Torso, 5, 1)
  1736. 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)
  1737. for i = 0, 8, 0.1 do
  1738. swait()
  1739. PlayAnimationFromTable({
  1740. 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),
  1741. 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),
  1742. 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),
  1743. 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),
  1744. 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),
  1745. 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),
  1746. }, .2, false)
  1747. end
  1748. for i = 0, .5, 0.1 do
  1749. swait()
  1750. PlayAnimationFromTable({
  1751. 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),
  1752. 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),
  1753. 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),
  1754. 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),
  1755. 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),
  1756. 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),
  1757. }, .1, false)
  1758. end
  1759. Humanoid.WalkSpeed = 16
  1760. Humanoid.JumpPower = 50
  1761. Attack = false
  1762. end
  1763.  
  1764.  
  1765.  
  1766. function overthere()
  1767. Attack = true
  1768. local xy = 2
  1769. local hitt = Mouse.hit
  1770. Humanoid.WalkSpeed = 0
  1771. Humanoid.JumpPower = 0
  1772. CFuncs.Sound.Create("538558581", Hat, 5, 1)
  1773. for i = 0, 5, 0.1 do
  1774. swait()
  1775. xy = xy + .15
  1776. PlayAnimationFromTable({
  1777. 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),
  1778. 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),
  1779. 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),
  1780. 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),
  1781. 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),
  1782. 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),
  1783. }, .1, false)
  1784. meh.Scale = Vector3.new(xy, xy, xy)
  1785. end
  1786. CFuncs.Sound.Create("144507916", Torso, 5, 1)
  1787. Effects.Wave.Create(BrickColor.new("White"), Hat.CFrame*CFrame.new(0,-20,0), 4, 1, 4, 4, 1, 4, .05)
  1788. for i = 0, 1, 0.1 do
  1789. swait()
  1790. PlayAnimationFromTable({
  1791. 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),
  1792. 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),
  1793. 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),
  1794. 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),
  1795. 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),
  1796. 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),
  1797. }, .5, false)
  1798. end
  1799. RootPart.CFrame = hitt * CFrame.new(0,6,0)
  1800. for i = 0, 2, 0.1 do
  1801. swait()
  1802. PlayAnimationFromTable({
  1803. 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),
  1804. 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),
  1805. 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),
  1806. 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),
  1807. 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),
  1808. 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),
  1809. }, .3, false)
  1810. end
  1811. for i = 0, 1.5, 0.1 do
  1812. swait()
  1813. xy = xy - .5
  1814. PlayAnimationFromTable({
  1815. 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),
  1816. 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),
  1817. 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))),
  1818. 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))),
  1819. 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),
  1820. 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),
  1821. }, .1, false)
  1822. meh.Scale = Vector3.new(xy, xy, xy)
  1823. end
  1824. meh.Scale = Vector3.new(2, 2, 2)
  1825. Humanoid.WalkSpeed = 16
  1826. Humanoid.JumpPower = 50
  1827. Attack = false
  1828. end
  1829.  
  1830. function card()
  1831. Attack = true
  1832. Humanoid.WalkSpeed = 0
  1833. Humanoid.JumpPower = 0
  1834. for i = 0, 5, 0.1 do
  1835. swait()
  1836. PlayAnimationFromTable({
  1837. 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),
  1838. 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),
  1839. 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),
  1840. 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),
  1841. 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),
  1842. 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),
  1843. }, .2, false)
  1844. end
  1845. MysteryCard=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"White","MysteryCard",Vector3.new(0.880001426, 0.0500000007, 1.42000163))
  1846. 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))
  1847. local dec = Instance.new("Decal",MysteryCard)
  1848. dec.Texture = "rbxassetid://8644107"
  1849. dec.Face = "Bottom"
  1850. local e = math.random(1,4)
  1851. if e == 1 then
  1852. local dec2 = Instance.new("Decal",MysteryCard)
  1853. dec2.Texture = "rbxassetid://173448236"
  1854. dec2.Face = "Top"
  1855. elseif e == 2 then
  1856. local dec2 = Instance.new("Decal",MysteryCard)
  1857. dec2.Texture = "rbxassetid://1167119856"
  1858. dec2.Face = "Top"
  1859. CFuncs.Sound.Create("976606790", Torso, 3, 1)
  1860. elseif e == 3 then
  1861. local dec2 = Instance.new("Decal",MysteryCard)
  1862. dec2.Texture = "rbxassetid://342673258"
  1863. dec2.Face = "Top"
  1864. elseif e == 100 then
  1865. local dec2 = Instance.new("Decal",MysteryCard)
  1866. dec2.Texture = "rbxassetid://1403304829"
  1867. dec2.Face = "Top"
  1868. elseif e == 4 then
  1869. local dec2 = Instance.new("Decal",MysteryCard)
  1870. dec2.Texture = "rbxassetid://358190487"
  1871. dec2.Face = "Top"
  1872. end
  1873. for i = 0, .1, 0.1 do
  1874. swait()
  1875. PlayAnimationFromTable({
  1876. 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),
  1877. 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),
  1878. 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),
  1879. 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),
  1880. 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),
  1881. 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),
  1882. }, .1, false)
  1883. end
  1884. for i = 0, 5, 0.1 do
  1885. swait()
  1886. PlayAnimationFromTable({
  1887. 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),
  1888. 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),
  1889. 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),
  1890. 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),
  1891. 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),
  1892. 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),
  1893. }, .2, false)
  1894. end
  1895.  
  1896. for i = 0, 3, 0.1 do
  1897. swait()
  1898. PlayAnimationFromTable({
  1899. 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),
  1900. 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),
  1901. 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),
  1902. 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),
  1903. 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),
  1904. 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),
  1905. }, .2, false)
  1906. end
  1907. if e == 1 then
  1908. MagnitudeDamage(Torso, 70, 20, 20, 0, "Seizure", " ", 1)
  1909. Effects.Sphere2.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01)
  1910. Effects.InnerSphere.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 100, 2, .01)
  1911. CFuncs.Sound.Create("1751051242", Torso, 5, 1)
  1912. elseif e == 2 then
  1913. MagnitudeDamage(Torso, 70, 10, 10, 0, "Freeze", " ", 1)
  1914. Effects.Sphere2.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 2, 2, 2, 2, 2, 2, .01)
  1915. Effects.Sphere1.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01)
  1916. elseif e == 3 then
  1917. CFuncs.Sound.Create("157506631", Torso, 5, 1)
  1918. for i = 1,5 do
  1919. Effects.InnerSphere.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 100, 2, .01)
  1920. wait(.4)
  1921. end
  1922. wait(.8)
  1923. MagnitudeDamage(Torso, 70, 500, 500, 500, "Normal", " ", 1)
  1924. CFuncs.Sound.Create("1543847134", Torso, 5, 1)
  1925. Effects.Sphere2.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 2, 2, 2, 13, 13, 13, .01)
  1926. Effects.Sphere1.Create(BrickColor.new("Really red"), MysteryCard.CFrame, 1, 1, 1, 12, 12, 12, .01)
  1927. elseif e == 100 then
  1928. MagnitudeDamage(Torso, 70, 5, 5, 0, "Float", " ", 1)
  1929. Effects.Sphere2.Create(BrickColor.new("White"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01)
  1930. elseif e == 4 then
  1931. MagnitudeDamage(Torso, 70, 30, 30, 0, "Paralyze", " ", 1)
  1932. Effects.Sphere2.Create(BrickColor.new("Gold"), MysteryCard.CFrame, 1, 1, 1, 8, 8, 8, .05)
  1933. Effects.InnerSphere.Create(BrickColor.new("White"), MysteryCard.CFrame, 100, 2, .01)
  1934. end
  1935. table.insert(Effects, {MysteryCard,"Disappear",.01})
  1936. for i = 0, 5, 0.1 do
  1937. swait()
  1938. PlayAnimationFromTable({
  1939. 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),
  1940. 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),
  1941. 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),
  1942. 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),
  1943. 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),
  1944. 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),
  1945. }, .2, false)
  1946. end
  1947. Humanoid.WalkSpeed = 16
  1948. Humanoid.JumpPower = 50
  1949. Attack = false
  1950. MysteryCard:Destroy()
  1951. MysteryCardWeld:Destroy()
  1952. end
  1953.  
  1954.  
  1955.  
  1956.  
  1957. function unanchor()
  1958. g = Character:GetChildren()
  1959. for i = 1, #g do
  1960. if g[i].ClassName == "Part" then
  1961. g[i].Anchored = false
  1962. end
  1963. end
  1964. end
  1965.  
  1966.  
  1967. Mouse.KeyDown:connect(function(Key)
  1968. Key = Key:lower()
  1969. if Attack == false and Key == 'z' and Anim == "Idle" then
  1970. overthere()
  1971. elseif Attack == false and Key == 'x' and Anim == "Idle" then
  1972. topwat()
  1973. elseif Attack == false and Key == 'c' then
  1974. card()
  1975. elseif Attack == false and Key == 'v' then
  1976. print("too lazy to add this move lul")
  1977. elseif Attack == false and Key == 't' and Anim == "Idle" then
  1978. hatsoff()
  1979. end
  1980. end)
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986. while true do
  1987. swait()
  1988. unanchor()
  1989. for i, v in pairs(Character:GetChildren()) do
  1990. if v:IsA("Part") then
  1991. v.Material = "SmoothPlastic"
  1992. elseif v:IsA("Accessory") then
  1993. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1994. end
  1995. end
  1996. for i, v in pairs(Character:GetChildren()) do
  1997. if v:IsA'Model' then
  1998. for _, c in pairs(v:GetChildren()) do
  1999. if c:IsA'Part' then
  2000. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2001. end
  2002. end
  2003. end
  2004. end
  2005. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2006. Velocity = RootPart.Velocity.y
  2007. Sine = Sine + Change
  2008. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 7, Character)
  2009. if RootPart.Velocity.y > 1 and hit == nil then
  2010. Anim = "Jump"
  2011. if Attack == false then
  2012. Change = 1
  2013. PlayAnimationFromTable({
  2014. 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),
  2015. 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),
  2016. 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),
  2017. 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),
  2018. 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),
  2019. 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),
  2020. }, .04, false)
  2021. end
  2022. elseif RootPart.Velocity.y < -1 and hit == nil then
  2023. Anim = "Fall"
  2024. if Attack == false then
  2025. Change = 1
  2026. PlayAnimationFromTable({
  2027. 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),
  2028. 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),
  2029. 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),
  2030. 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),
  2031. 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),
  2032. 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),
  2033. }, .04, false)
  2034. end
  2035. elseif TorsoVelocity < 1 and hit ~= nil then
  2036. Anim = "Idle"
  2037. if Attack == false then
  2038. Change = 1
  2039. PlayAnimationFromTable({
  2040. 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),
  2041. 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),
  2042. 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))),
  2043. 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))),
  2044. 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),
  2045. 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),
  2046. }, .1, false)
  2047. end
  2048. elseif TorsoVelocity > 2 and hit ~= nil then
  2049. Anim = "Walk"
  2050. if Attack == false then
  2051. PlayAnimationFromTable({
  2052. 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)),
  2053. 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),
  2054. 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))),
  2055. 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))),
  2056. 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),
  2057. 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),
  2058. }, .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
  2059. end
  2060. end
  2061. if #Effects > 0 then
  2062. for e = 1, #Effects do
  2063. if Effects[e] ~= nil then
  2064. local Thing = Effects[e]
  2065. if Thing ~= nil then
  2066. local Part = Thing[1]
  2067. local Mode = Thing[2]
  2068. local Delay = Thing[3]
  2069. local IncX = Thing[4]
  2070. local IncY = Thing[5]
  2071. if Thing[1].Transparency <= 1 then
  2072. if Thing[2] == "Block1" then
  2073. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2074. Mesh = Thing[7]
  2075. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2076. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2077. elseif Thing[2] == "Ice" then
  2078. if Thing[6] <= Thing[5] then
  2079. Thing[6] = Thing[6] + .05
  2080. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  2081. else
  2082. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2083. end
  2084. elseif Thing[2] == "Shatter" then
  2085. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2086. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2087. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2088. Thing[6] = Thing[6] + Thing[5]
  2089. elseif Thing[2] == "Block2" then
  2090. Thing[1].CFrame = Thing[1].CFrame
  2091. Mesh = Thing[7]
  2092. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2093. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2094. elseif Thing[2] == "Block3" then
  2095. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2096. Mesh = Thing[7]
  2097. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2098. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2099. elseif Thing[2] == "Block4" then
  2100. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  2101. Mesh = Thing[7]
  2102. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2103. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2104. elseif Thing[2] == "Block2Fire" then
  2105. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2106. Mesh = Thing[7]
  2107. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2108. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2109. if Thing[1].Transparency >= .3 then
  2110. Thing[1].BrickColor = BrickColor.new("Bright red")
  2111. else
  2112. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  2113. end
  2114. elseif Thing[2] == "Cylinder" then
  2115. Mesh = Thing[7]
  2116. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2117. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2118. elseif Thing[2] == "Blood" then
  2119. Mesh = Thing[7]
  2120. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  2121. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2122. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2123. elseif Thing[2] == "Elec" then
  2124. Mesh = Thing[10]
  2125. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2126. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2127. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  2128. Thing[1].Rotation = Vector3.new(0, 0, 0)
  2129. elseif Thing[2] == "Disappear" then
  2130. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2131. end
  2132. else
  2133. Part.Parent = nil
  2134. table.remove(Effects, e)
  2135. end
  2136. end
  2137. end
  2138. end
  2139. end
  2140. if playlist.IsPlaying == false then
  2141. playlist:Destroy()
  2142. playlist=Instance.new("Sound", Torso)
  2143. playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
  2144. playlist.Volume = 3
  2145. playlist.Looped = false
  2146. playlist.Name = "aa"
  2147. warn(playlist.SoundId)
  2148. playlist:Play()
  2149. end
  2150. playlist.Volume = 3
  2151. playlist.Looped = false
  2152. --soundbork(workspace)
  2153. if true then
  2154. Humanoid.MaxHealth = 1e100
  2155. Humanoid.Health = 1e100
  2156. Humanoid.Name = math.random()*100
  2157. end
  2158. end
Advertisement
Add Comment
Please, Sign In to add comment