Nightcore400

magic tricks

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