Advertisement
Christoffer07700Extr

FE Megumin

May 30th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.53 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. wait(1/60)
  146. print('Made by Slenercat5')-- yo m8 this is old but i figured why not re upload sense the old link broke
  147. print('Megumin')
  148. print('F for Hero Mode')
  149. print('Click to Use Explosion Magic')
  150.  
  151.  
  152. lerp = function(a, b, t)
  153.  
  154. return a + (b - a) * t
  155. end
  156. Lerp = function(c1, c2, al)
  157.  
  158. local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
  159. local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
  160. for i,v in pairs(com1) do
  161. com1[i] = v + (com2[i] - v) * al
  162. end
  163. return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
  164. end
  165.  
  166. sine=0
  167. change=0
  168.  
  169. -- this is my secound script using character animations based on lerping
  170. -- if you found this i hope you enjoy :)
  171. -- attacks
  172. --click[hold] for punching
  173. --q for teleport(within 100 studs)
  174. --f for super jump(Temporarily down)
  175. wait(1 / 60)
  176. local jklmaoR=0
  177. Effects = { }
  178. local Player = game.Players.localPlayer
  179. local Character = Player.Character
  180. local Humanoid = Character.Humanoid
  181. Humanoid.WalkSpeed = 30
  182. local Mouse = Player:GetMouse()
  183. local LeftArm = Character["Left Arm"]
  184. local RightArm = Character["Right Arm"]
  185. local LeftLeg = Character["Left Leg"]
  186. local RightLeg = Character["Right Leg"]
  187. local Head = Character.Head
  188. local Torso = Character.Torso
  189. local Camera = game.Workspace.CurrentCamera
  190. local RootPart = Character.HumanoidRootPart
  191. local RootJoint = RootPart.RootJoint
  192. local attack = false
  193. local Anim = 'Idle'
  194. local Create = LoadLibrary("RbxUtility").Create
  195. local velocity = RootPart.Velocity.y
  196. Character.Animate.Disabled=false
  197. local sine = 0
  198. local change = 1
  199. local ms=Player:GetMouse()
  200. local DORARA=false
  201. local sforce=false
  202. local fcount=0
  203.  
  204. Character.Humanoid.Health=10000000000000000000000000000000000000000000000000000000000000
  205.  
  206. torso=Character:findFirstChild('Torso')
  207. root=Character:FindFirstChild('HumanoidRootPart')
  208. function clerp(a, b, t)
  209. return a:lerp(b, t)
  210. end
  211.  
  212. Humanoid.Animator.Parent = nil
  213. Character.Animate.Parent = nil
  214.  
  215. local newMotor = function(part0, part1, c0, c1)
  216. local w = Create('Motor'){
  217. Parent = part0,
  218. Part0 = part0,
  219. Part1 = part1,
  220. C0 = c0,
  221. C1 = c1,
  222. }
  223. return w
  224. end
  225.  
  226.  
  227. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  228. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  229.  
  230. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  231. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  232. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  233. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  234. RootJoint.C1 = CFrame.new(0, 0, 0)
  235. RootJoint.C0 = CFrame.new(0, 0, 0)
  236. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  237. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  238.  
  239. local rarmc1 = RW.C1
  240. local larmc1 = LW.C1
  241. local rlegc1 = RH.C1
  242. local llegc1 = LH.C1
  243.  
  244. local resetc1 = false
  245.  
  246.  
  247.  
  248.  
  249.  
  250. function PlayAnimationFromTable(table, speed, bool)
  251. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  252. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  253. RW.C0 = clerp(RW.C0, table[3], speed)
  254. LW.C0 = clerp(LW.C0, table[4], speed)
  255. RH.C0 = clerp(RH.C0, table[5], speed)
  256. LH.C0 = clerp(LH.C0, table[6], speed)
  257. if bool == true then
  258. if resetc1 == false then
  259. resetc1 = true
  260. RootJoint.C1 = RootJoint.C1
  261. Torso.Neck.C1 = Torso.Neck.C1
  262. RW.C1 = rarmc1
  263. LW.C1 = larmc1
  264. RH.C1 = rlegc1
  265. LH.C1 = llegc1
  266. end
  267. end
  268. end
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277. ArtificialHB = Create("BindableEvent", script){
  278. Parent = script,
  279. Name = "Heartbeat",
  280. }
  281.  
  282. script:WaitForChild("Heartbeat")
  283.  
  284. frame = 1 / 35
  285. tf = 0
  286. allowframeloss = false
  287. tossremainder = false
  288. lastframe = tick()
  289. script.Heartbeat:Fire()
  290.  
  291.  
  292.  
  293.  
  294.  
  295. game:GetService("RunService").Heartbeat:connect(function(s, p)
  296. tf = tf + s
  297. if tf >= frame then
  298. if allowframeloss then
  299. script.Heartbeat:Fire()
  300. lastframe = tick()
  301. else
  302. for i = 1, math.floor(tf / frame) do
  303. script.Heartbeat:Fire()
  304. end
  305. lastframe = tick()
  306. end
  307. if tossremainder then
  308. tf = 0
  309. else
  310. tf = tf - frame * math.floor(tf / frame)
  311. end
  312. end
  313. end)
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320. function swait(num)
  321. if num == 0 or num == nil then
  322. ArtificialHB.Event:wait()
  323. else
  324. for i = 0, num do
  325. ArtificialHB.Event:wait()
  326. end
  327. end
  328. end
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. function RemoveOutlines(part)
  336. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  337. end
  338. function ShowDamage(Pos, Text, Time, Color)
  339. local Rate = (1 / 30)
  340. local Pos = (Pos or Vector3.new(0, 0, 0))
  341. local Text = (Text or "")
  342. local Time = (Time or 2)
  343. local Color = (Color or Color3.new(1, 0, 1))
  344. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  345. EffectPart.Anchored = true
  346. local BillboardGui = Create("BillboardGui"){
  347. Size = UDim2.new(3, 0, 3, 0),
  348. Adornee = EffectPart,
  349. Parent = EffectPart,
  350. }
  351. local TextLabel = Create("TextLabel"){
  352. BackgroundTransparency = 1,
  353. Size = UDim2.new(1, 0, 1, 0),
  354. Text = Text,
  355. Font = "SciFi",
  356. TextColor3 = Color,
  357. TextScaled = true,
  358. Parent = BillboardGui,
  359. }
  360. game.Debris:AddItem(EffectPart, (Time))
  361. EffectPart.Parent = game:GetService("Workspace")
  362. delay(0, function()
  363. local Frames = (Time / Rate)
  364. for Frame = 1, Frames do
  365. wait(Rate)
  366. local Percent = (Frame / Frames)
  367. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  368. TextLabel.TextTransparency = Percent
  369. end
  370. if EffectPart and EffectPart.Parent then
  371. EffectPart:Destroy()
  372. end
  373. end)
  374. end
  375. Sound=false
  376. function Damage(hit,Dag)
  377. if hit.Parent==Character or hit.Parent==workspace or hit.Parent.ClassName=='Asseccory' then
  378. return
  379. else
  380. wait(.1)
  381. local Hum=hit.Parent:FindFirstChild('Humanoid')
  382. wait(.1)
  383. if Hum~=nil then
  384. -- print(hit.Parent.name..' is getting hurt')
  385. if Nock==true then
  386. hit.Parent.Torso.Velocity=Character.HumanoidRootPart.CFrame.lookVector*100
  387. end
  388. ShowDamage(hit.Position,Dag)
  389. local DORA = CFuncs.Sound.Create("383548205", hit, 1, 1)
  390. Sound=true
  391. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-Dag
  392. wait(.1)
  393. else
  394. return
  395. end
  396.  
  397. end
  398. end
  399.  
  400. CFuncs = {
  401. Part = {
  402. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  403. local Part = Create("Part"){
  404. Parent = Parent,
  405. Reflectance = Reflectance,
  406. Transparency = Transparency,
  407. CanCollide = false,
  408. Locked = true,
  409. BrickColor = BrickColor.new(tostring(BColor)),
  410. Name = Name,
  411. Size = Size,
  412. Material = Material,
  413. }
  414. RemoveOutlines(Part)
  415. return Part
  416. end;
  417. };
  418.  
  419. Mesh = {
  420. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  421. local Msh = Create(Mesh){
  422. Parent = Part,
  423. Offset = OffSet,
  424. Scale = Scale,
  425. }
  426. if Mesh == "SpecialMesh" then
  427. Msh.MeshType = MeshType
  428. Msh.MeshId = MeshId
  429. end
  430. return Msh
  431. end;
  432. };
  433.  
  434. Weld = {
  435. Create = function(Parent, Part0, Part1, C0, C1)
  436. local Weld = Create("Weld"){
  437. Parent = Parent,
  438. Part0 = Part0,
  439. Part1 = Part1,
  440. C0 = C0,
  441. C1 = C1,
  442. }
  443. return Weld
  444. end;
  445. };
  446.  
  447. Sound = {
  448. Create = function(id, par, vol, pit)
  449. local Sound = Create("Sound"){
  450. Volume = vol,
  451. Pitch = pit or 1,
  452. SoundId = "rbxassetid://" .. id,
  453. Parent = par or workspace,
  454. }
  455. Sound:play()
  456. return Sound
  457. end;
  458. };
  459.  
  460. Decal = {
  461. Create = function(Color, Texture, Transparency, Name, Parent)
  462. local Decal = Create("Decal"){
  463. Color3 = Color,
  464. Texture = "rbxassetid://" .. Texture,
  465. Transparency = Transparency,
  466. Name = Name,
  467. Parent = Parent,
  468. }
  469. return Decal
  470. end;
  471. };
  472.  
  473. BillboardGui = {
  474. Create = function(Parent, Image, Position, Size)
  475. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  476. BillPar.CFrame = CFrame.new(Position)
  477. local Bill = Create("BillboardGui"){
  478. Parent = BillPar,
  479. Adornee = BillPar,
  480. Size = UDim2.new(1, 0, 1, 0),
  481. SizeOffset = Vector2.new(Size, Size),
  482. }
  483. local d = Create("ImageLabel", Bill){
  484. Parent = Bill,
  485. BackgroundTransparency = 1,
  486. Size = UDim2.new(1, 0, 1, 0),
  487. Image = "rbxassetid://" .. Image,
  488. }
  489. return BillPar
  490. end
  491. };
  492.  
  493. ParticleEmitter = {
  494. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  495. local Particle = Create("ParticleEmitter"){
  496. Parent = Parent,
  497. Color = ColorSequence.new(Color1, Color2),
  498. LightEmission = LightEmission,
  499. Size = Size,
  500. Texture = Texture,
  501. Transparency = Transparency,
  502. ZOffset = ZOffset,
  503. Acceleration = Accel,
  504. Drag = Drag,
  505. LockedToPart = LockedToPart,
  506. VelocityInheritance = VelocityInheritance,
  507. EmissionDirection = EmissionDirection,
  508. Enabled = Enabled,
  509. Lifetime = LifeTime,
  510. Rate = Rate,
  511. Rotation = Rotation,
  512. RotSpeed = RotSpeed,
  513. Speed = Speed,
  514. VelocitySpread = VelocitySpread,
  515. }
  516. return Particle
  517. end;
  518.  
  519.  
  520.  
  521.  
  522.  
  523. };
  524.  
  525. CreateTemplate = {
  526.  
  527. };
  528. }
  529.  
  530. lp=Player
  531.  
  532.  
  533. for _,v in pairs(lp.Character:GetChildren()) do
  534. if v.className=='Shirt' or v.className=='Pants' or v.className=='Accessory' then
  535. v:remove()
  536. end
  537. if v.className=='Part' then
  538. v.BrickColor=BrickColor.new('Pastel brown')
  539. end
  540. end
  541. function AutoWeld(Foop, OOF)
  542. local W = Instance.new("Weld")
  543. W.Part0 = Foop
  544. W.Part1 = OOF
  545. local CJ = CFrame.new(Foop.Position)
  546. local C0 = Foop.CFrame:inverse()*CJ
  547. local C1 = OOF.CFrame:inverse()*CJ
  548. W.C0 = C0
  549. W.C1 = C1
  550. W.Name='o0o'
  551. W.Parent = Foop
  552. end
  553.  
  554.  
  555. Shirt=Instance.new("Shirt",lp.Character)
  556. Shirt.ShirtTemplate='rbxassetid://692946861'
  557. Pants=Instance.new("Pants",lp.Character)
  558. Pants.PantsTemplate='rbxassetid://692946962'
  559.  
  560. lp.Character.Head.face.Texture='http://www.roblox.com/asset/?id=1190881618'
  561. D2=Instance.new('Decal',lp.Character.Head)
  562. D2.Texture='http://www.roblox.com/asset/?id=26926115'
  563.  
  564. mec=Instance.new('CharacterMesh',lp.Character)
  565. mec.BodyPart='Torso'
  566. mec.MeshId='48112070'
  567.  
  568.  
  569.  
  570.  
  571. h2=Instance.new('Part',lp.Character)
  572. h2.CanCollide=false
  573. h2.BrickColor=BrickColor.new('Dark stone grey')
  574. h2.CFrame=lp.Character.Head.CFrame*CFrame.new(0,-.3,0.1)
  575. m3=Instance.new('SpecialMesh',h2)
  576. m3.MeshId='http://www.roblox.com/asset/?id=283714534'
  577. m3.TextureId='http://www.roblox.com/asset/?id=398616339'
  578.  
  579.  
  580.  
  581. hb=Instance.new('Part',lp.Character)
  582. hb.CFrame=lp.Character.Head.CFrame*CFrame.new(0,0.3,-0.1)
  583. hb.CanCollide=false
  584. mb=Instance.new('SpecialMesh',hb)
  585. mb.MeshId='rbxassetid://74969506'
  586. mb.TextureId='rbxassetid://74226311'
  587.  
  588. h5=Instance.new('Part',lp.Character)
  589. h5.CFrame=lp.Character.Head.CFrame*CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0)
  590. h5.CanCollide=false
  591. m6=Instance.new('SpecialMesh',h5)
  592. m6.Scale=Vector3.new(1.2,1.2,1.2)
  593. m6.MeshId='rbxassetid://110214262'
  594. m6.TextureId='http://www.roblox.com/asset/?id=110212521'
  595.  
  596.  
  597. AutoWeld(hb,lp.Character.Head)
  598.  
  599. AutoWeld(h2,lp.Character.Head)
  600. AutoWeld(h5,lp.Character.Head)
  601.  
  602. base = Instance.new("ScreenGui",Player.PlayerGui)
  603. bbg = Instance.new("BillboardGui",Player.Character.Head)
  604. bbg.Size = UDim2.new(0,200,0,50)
  605. bbg.StudsOffset = Vector3.new(0,3,0)
  606.  
  607. bbgTl = Instance.new("TextLabel",bbg)
  608. bbgTl.BackgroundTransparency = 1
  609. bbgTl.Size = UDim2.new(10,0,1,0)
  610. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  611. bbgTl.Font = "Code"
  612. bbgTl.Text = " "
  613. bbgTl.TextSize = 25
  614. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  615. bbgTl.TextColor3 = Color3.new(0,0,0)
  616. bbgTl.TextStrokeTransparency = 0
  617. bbgTl.TextWrapped = true
  618.  
  619. function Chat(msg)
  620. bbgTl.Text = msg
  621. wait(1)
  622. if bbgTl.Text == msg then
  623. bbgTl.Text = " "
  624. end
  625. end
  626. Chat('Megumin by slenercat5')
  627.  
  628.  
  629. KML=CFuncs.Sound.Create(167135038,Character.Head,1,1)-- secret-->1108274211
  630. KML.Looped=true
  631. KML:stop()
  632. Explosion=CFuncs.Sound.Create(762570073,Character.Head,1,1)
  633. Explosion:stop()
  634. reload=false
  635. scoobis=false
  636. scoobismesh='rbxassetid://1107996700'
  637. scoobistexture='rbxassetid://1107996710'
  638. Nock=true
  639. ms.KeyDown:connect(function(k)
  640. k=k:lower()
  641. if k=='f' then
  642. if scoobis==false and reload==false and taunt==false and attack==false then
  643. scoobis=true
  644. KML:Play()
  645. hb.Transparency=1
  646. for _,v in pairs(Staff) do
  647. v.Transparency=0
  648. end
  649. reload=true
  650. wait(1)
  651. reload=false
  652. elseif scoobis==true and reload==false then
  653. KML:stop()
  654. hb.Transparency=0
  655. for _,v in pairs(Staff) do
  656. v.Transparency=1
  657. end
  658. scoobis=false
  659. Character.Head.Mesh.MeshType='Head'
  660. Character.Head.Mesh.Scale=Vector3.new(1.25, 1.25, 1.25)
  661.  
  662. reload=true
  663. wait(1)
  664. reload=false
  665.  
  666. end
  667. elseif k=='g' then
  668. if scoobis==false then
  669. if attack==false then
  670. if taunt then
  671. taunt=false
  672. TauntS:Stop()
  673. else
  674. taunt=true
  675. TauntS:Play()
  676. end
  677. print(taunt)
  678. end
  679. end
  680. end
  681.  
  682.  
  683. end)
  684.  
  685. --Particles--
  686.  
  687.  
  688.  
  689.  
  690. ----------
  691.  
  692.  
  693.  
  694.  
  695.  
  696. TauntS=Instance.new('Sound',Character.Head)
  697. TauntS.SoundId='rbxassetid://665015838'
  698. TauntS.Looped=true
  699. KML.Volume=.3
  700. Lead=CFuncs.Sound.Create(530138502,Character.Head,1,1)
  701. Lead:Stop()
  702. function Attack()
  703. Lead:Play()
  704. KML:Stop()
  705.  
  706. Dip=Instance.new('Part',Character)
  707. Dip.Transparency=1
  708. Dip.Size=Vector3.new(20,1,20)
  709. Dip.Anchored=true
  710. deo=Instance.new('Decal',Dip)
  711. deo.Texture='http://www.roblox.com/asset/?id=352764483'
  712. deo.Transparency=0
  713. deo.Face='Top'
  714. Dip.CFrame=Character.HumanoidRootPart.CFrame*CFrame.new(0,-2,0)
  715. Bp=Instance.new('Part',Dip)
  716. Bp.Name='BP'
  717. Bp.Anchored=true
  718. Bp.Transparency=1
  719. Bp.CFrame=Dip.CFrame*CFrame.new(-10,0,0)
  720. Bp2=Instance.new('Part',Dip)
  721. Bp2.Anchored=true
  722. Bp2.Name='BP2'
  723. Bp2.Transparency=1
  724. Bp2.CFrame=Dip.CFrame*CFrame.new(10,0,0)
  725. ac=Instance.new('Attachment',Bp)
  726. ac2=Instance.new('Attachment',Bp2)
  727.  
  728. local keypoints = {}
  729.  
  730. for i = 0,1,0.1 do
  731. local color = Color3.fromHSV(i,1,1)
  732. local keypoint = ColorSequenceKeypoint.new(i,color)
  733. table.insert(keypoints,keypoint)
  734. end
  735.  
  736. local particle = Instance.new('Beam',Bp)
  737. particle.Color = ColorSequence.new(keypoints)
  738. particle.Texture='rbxassetid://1135136643'
  739. particle.Attachment0=ac
  740. particle.Attachment1=AC
  741. particle.Width0=6
  742. particle.Width1=9
  743. particle.CurveSize0=-10
  744. particle.CurveSize1=10
  745. particle.LightEmission=1
  746.  
  747. local particle2 = Instance.new('Beam',Bp2)
  748. particle2.Color = ColorSequence.new(keypoints)
  749. particle2.LightEmission=1
  750. particle2.Texture='rbxassetid://1135136643'
  751. particle2.Attachment0=ac2
  752. particle2.Attachment1=AC
  753. particle2.CurveSize0=10
  754. particle2.CurveSize1=10
  755. particle2.Width0=6
  756. particle2.Width1=9
  757.  
  758. particle3=Instance.new('ParticleEmitter',Dip)
  759. particle3.Color = ColorSequence.new(keypoints)
  760. particle3.LightEmission=1
  761. particle3.Texture='rbxassetid://187012669'
  762. particle3.Size=NumberSequence.new(.2)
  763. particle3.Acceleration=Vector3.new(0,10,0)
  764. particle3.EmissionDirection='Bottom'
  765. particle3.SpreadAngle=Vector2.new(90,90)
  766. HK=Instance.new('Part',Character)
  767. HK.CanCollide=false
  768. HK.Shape='Ball'
  769. HK.Size=Vector3.new(2,2,2)
  770. HK.Material='Neon'
  771. HK.BrickColor=BrickColor.new('Gold')
  772. HK.Transparency=.5
  773. HK.CFrame=Character['Left Arm'].CFrame*CFrame.new(0,-1,-2)
  774. AutoWeld(HK,Character['Left Arm'])
  775. attack = true
  776. -- RootPart.CFrame = clerp(RootPart.CFrame,stand.HumanoidRootPart.CFrame*CFrame.new(0,0,-5), .1)
  777. StageTime=0
  778. Stage=1
  779. chatfunc('I am Megumin,Controller of the finest power Crimson Demons posses,')
  780. while Stage==1 do
  781. for i = 0, 1, 0.7 do
  782. swait()
  783. PlayAnimationFromTable({
  784. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
  785. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
  786. CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  787. CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(20, -.5, 0),
  788. CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  789. CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  790. },.5,false)
  791. StageTime=StageTime+.02
  792. if StageTime>3.5 then
  793. Stage=Stage+1
  794. end
  795. end
  796. end
  797. Stage=2
  798. -- wait(4)
  799. StageTime=0
  800. chatfunc(', and I command explosion magic!')
  801.  
  802.  
  803. while Stage==2 do
  804. for i = 0, 1, 0.7 do
  805. swait()
  806. PlayAnimationFromTable({
  807. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
  808. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(-.5, 0.5, 0),
  809. CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  810. CFrame.new(-1.5, 0, -0) * CFrame.new(0, .5, 0) * CFrame.Angles(20.5, -.5, 0),
  811. CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  812. CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  813. },.5,false)
  814. StageTime=StageTime+.02
  815. if StageTime>3.5 then
  816. Stage=Stage+1
  817. end
  818. if StageTime>1 and StageTime<1.1 then
  819. chatfunc('The Devil King fancies himself superior to us and dares call himself "strongest"!')
  820. end
  821. end
  822. end
  823.  
  824.  
  825. chatfunc('I shall obliterate his vile presence with our strongest of magics!')
  826.  
  827. StageTime=0
  828. Stage=3
  829. while Stage==3 do
  830. for i = 0, 1, 0.7 do
  831. swait()
  832. PlayAnimationFromTable({
  833. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
  834. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
  835. CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  836. CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(20, -.5, 0),
  837. CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  838. CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  839. },.5,false)
  840. end
  841. StageTime=StageTime+.03
  842. if StageTime>1.7 then
  843. Stage=Stage+1
  844. end
  845. end
  846.  
  847. StageTime=0
  848. for i = 0, 1, 0.7 do
  849. swait()
  850. PlayAnimationFromTable({
  851. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
  852. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
  853. CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  854. CFrame.new(-1.5, 0, -0) * CFrame.new(0, 1, 0) * CFrame.Angles(21, -.5, 0),
  855. CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  856. CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  857. },.5,false)
  858. end
  859. chatfunc('Explosion!')
  860. wait()
  861. Explosion:Play()
  862. HK:Remove()
  863. G=Instance.new('Part',Character)
  864. G.Size=Vector3.new(20,20,20)
  865. G.CanCollide=false
  866. G.Shape='Ball'
  867. G.Position=ms.Hit.p
  868. G.Transparency=.4
  869. G.Material='Neon'
  870. G.Anchored=true
  871. GEK=Instance.new('Explosion',G)
  872. GEK.BlastRadius=20
  873. GEK.BlastPressure=2
  874. GEK.DestroyJointRadiusPercent=2
  875. FF=Instance.new('ForceField',Character)
  876. FF.Visible=false
  877. Beam=Instance.new('Part',Character)
  878. Beam.BrickColor=BrickColor.new('Gold')
  879. Beam.Transparency=.5
  880. Beam.Anchored=true
  881. Beam.Material='Neon'
  882. local distance = (G.Position - Dis.Position).magnitude
  883. Beam.Size = Vector3.new(2, distance, 2)
  884. Beam.CFrame = CFrame.new(Dis.Position) * CFrame.new(0, -distance/2, 0)
  885.  
  886. GEK.Hit:connect(function(h)
  887. if h.Parent~=Character then
  888. h.Velocity=Vector3.new(math.random(-30,30),20,math.random(-30,30))
  889. end
  890. end)
  891. GEK.ExplosionType=Enum.ExplosionType.NoCraters
  892. GEK.Position=G.Position
  893. CFuncs.Sound.Create(539294959,G,1,1)
  894.  
  895. G.BrickColor=BrickColor.new('Gold')
  896. con1=G.Touched:connect(function(h)
  897. if h.Parent~=Character then
  898. h:remove()
  899. end
  900. end)
  901. K=Instance.new('BodyGyro',G)
  902. K.P=Vector3.new(0,100,0)
  903. wait(1)
  904. FF:remove()
  905. Dip:Remove()
  906. wait(1)
  907. G:remove()
  908. Beam:remove()
  909. bbgTl.Text=" "
  910. attack = false
  911. collapse=true
  912. end
  913.  
  914. reload2=false
  915.  
  916. collapse=false
  917. taunt=false
  918. Mouse.Button1Down:connect(function()
  919. if scoobis==true and reload2==false and taunt==false then
  920. reload2=true
  921. Attack()
  922. scoobis=false
  923. KML:stop()
  924. for _,v in pairs(Staff) do
  925. v.Transparency=1
  926. end
  927. hb.Transparency=0
  928. wait(5)
  929. collapse=false
  930. reload2=false
  931.  
  932.  
  933. end
  934. end)
  935. Staff={
  936.  
  937. }
  938.  
  939. Part=Instance.new("Part",Character)
  940. Part.Size= Vector3.new(
  941. 1, 2, 1
  942. )
  943. Part.Shape=
  944. Enum.PartType.Block
  945. Part.Name="Base"
  946. Part.Transparency=1
  947. Part.BrickColor= BrickColor.new("Medium stone grey")
  948. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  949. 0, 0, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0
  950. )
  951. AutoWeld(Part,Character["Left Arm"])
  952. Part.CanCollide=false
  953. Part.Material=
  954. Enum.Material.SmoothPlastic
  955.  
  956. -------------------------------------------------------------
  957. Part=Instance.new("Part",Character)
  958. Part.Size= Vector3.new(
  959. 4.88999748, 0.270000011, 0.38500011
  960. )
  961. Part.Shape=
  962. Enum.PartType.Block
  963. Part.Name="Stick"
  964. Part.BrickColor= BrickColor.new("Burnt Sienna")
  965. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  966. 0.0716470033, -1.0380317, 0.778614879, 0, 0, -1, 0, -1, -0, -1, 0, -0
  967. )
  968. AutoWeld(Part,Character["Left Arm"])
  969. Part.CanCollide=false
  970. Part.Material=
  971. Enum.Material.SmoothPlastic
  972. table.insert(Staff,Part)
  973.  
  974. -------------------------------------------------------------
  975. Part=Instance.new("Part",Character)
  976. Part.Size= Vector3.new(
  977. 0.910000563, 0.289999932, 0.38500011
  978. )
  979. Part.Shape=
  980. Enum.PartType.Block
  981. Part.Name="Stick"
  982. Part.BrickColor= BrickColor.new("Burnt Sienna")
  983. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  984. -0.188353002, -1.0380317, -1.88138556, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
  985. )
  986. AutoWeld(Part,Character["Left Arm"])
  987. Part.CanCollide=false
  988. Part.Material=
  989. Enum.Material.SmoothPlastic
  990. table.insert(Staff,Part)
  991.  
  992. -------------------------------------------------------------
  993. Part=Instance.new("Part",Character)
  994. Part.Size= Vector3.new(
  995. 0.910000563, 0.289999902, 0.38500011
  996. )
  997. Part.Shape=
  998. Enum.PartType.Block
  999. Part.Name="Stick"
  1000. Part.BrickColor= BrickColor.new("Burnt Sienna")
  1001. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1002. -0.448352933, -1.0380317, -2.52138495, 0.0150980018, 0, -0.999886096, 0, -1, 0, -0.999886096, 0, -0.0150980027
  1003. )
  1004. AutoWeld(Part,Character["Left Arm"])
  1005. Part.CanCollide=false
  1006. Part.Material=
  1007. Enum.Material.SmoothPlastic
  1008. table.insert(Staff,Part)
  1009.  
  1010. -------------------------------------------------------------
  1011. Part=Instance.new("Part",Character)
  1012. Part.Size= Vector3.new(
  1013. 0.640000582, 0.269999981, 0.38500011
  1014. )
  1015. Part.Shape=
  1016. Enum.PartType.Block
  1017. Part.Name="Stick"
  1018. Part.BrickColor= BrickColor.new("Burnt Sienna")
  1019. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1020. -0.277138978, -1.02803171, -3.09968996, -0.657677054, 0, -0.75330013, 0, 1, 0, 0.75330013, 0, -0.657677054
  1021. )
  1022. AutoWeld(Part,Character["Left Arm"])
  1023. Part.CanCollide=false
  1024. Part.Material=
  1025. Enum.Material.SmoothPlastic
  1026. table.insert(Staff,Part)
  1027.  
  1028. -------------------------------------------------------------
  1029. Part=Instance.new("Part",Character)
  1030. Part.Size= Vector3.new(
  1031. 0.840000451, 0.229999989, 0.38500011
  1032. )
  1033. Part.Shape=
  1034. Enum.PartType.Block
  1035. Part.Name="Stick"
  1036. Part.BrickColor= BrickColor.new("Burnt Sienna")
  1037. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1038. 0.15343301, -1.02803171, -3.08046007, -0.91565901, 0, -0.401955992, 0, -1, 0, -0.401955992, 0, 0.91565901
  1039. )
  1040. AutoWeld(Part,Character["Left Arm"])
  1041. Part.CanCollide=false
  1042. Part.Material=
  1043. Enum.Material.SmoothPlastic
  1044. table.insert(Staff,Part)
  1045.  
  1046. -------------------------------------------------------------
  1047. Part=Instance.new("Part",Character)
  1048. Part.Size= Vector3.new(
  1049. 0.470000386, 0.209999919, 0.935000181
  1050. )
  1051. Part.Shape=
  1052. Enum.PartType.Block
  1053. Part.Name="Stick"
  1054. Part.BrickColor= BrickColor.new("Burnt Sienna")
  1055. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1056. 0.433368087, -1.02803171, -3.25790405, -0.91565901, 0, -0.401955992, 0, -1, 0, -0.401955992, 0, 0.91565901
  1057. )
  1058. AutoWeld(Part,Character["Left Arm"])
  1059. Part.CanCollide=false
  1060. Part.Material=
  1061. Enum.Material.SmoothPlastic
  1062. table.insert(Staff,Part)
  1063.  
  1064. -------------------------------------------------------------
  1065. Part=Instance.new("Part",Character)
  1066. Part.Size= Vector3.new(
  1067. 0.470000386, 0.189999968, 0.535000205
  1068. )
  1069. Part.Shape=
  1070. Enum.PartType.Block
  1071. Part.Name="Stick"
  1072. Part.BrickColor= BrickColor.new("Burnt Sienna")
  1073. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1074. 0.588867128, -1.02803171, -3.81795764, -0.99974674, 0, -0.0225039944, 0, -1, 0, -0.0225039944, 0, 0.99974674
  1075. )
  1076. AutoWeld(Part,Character["Left Arm"])
  1077. Part.CanCollide=false
  1078. Part.Material=
  1079. Enum.Material.SmoothPlastic
  1080. table.insert(Staff,Part)
  1081.  
  1082. -------------------------------------------------------------
  1083. Part=Instance.new("Part",Character)
  1084. Part.Size= Vector3.new(
  1085. 0.22999993, 0.578461468, 0.473846316
  1086. )
  1087. Part.Shape=
  1088. Enum.PartType.Block
  1089. Part.Name="Ring"
  1090. Part.BrickColor= BrickColor.new("Br. yellowish orange")
  1091. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1092. -0.298082978, -1.0380317, -2.00398445, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
  1093. )
  1094. AutoWeld(Part,Character["Left Arm"])
  1095. Part.CanCollide=false
  1096. Part.Material=
  1097. Enum.Material.Glass
  1098. table.insert(Staff,Part)
  1099.  
  1100. -------------------------------------------------------------
  1101. Part=Instance.new("Part",Character)
  1102. Part.Size= Vector3.new(
  1103. 0.22999993, 0.578461468, 0.473846316
  1104. )
  1105. Part.Shape=
  1106. Enum.PartType.Block
  1107. Part.Name="Ring"
  1108. Part.BrickColor= BrickColor.new("Br. yellowish orange")
  1109. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1110. -0.118083, -1.0380317, -1.77398527, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
  1111. )
  1112. AutoWeld(Part,Character["Left Arm"])
  1113. Part.CanCollide=false
  1114. Part.Material=
  1115. Enum.Material.Glass
  1116. table.insert(Staff,Part)
  1117.  
  1118. -------------------------------------------------------------
  1119. Part=Instance.new("Part",Character)
  1120. Part.Size= Vector3.new(
  1121. 2.91999722, 0.340163469, 0.458857328
  1122. )
  1123. Part.Shape=
  1124. Enum.PartType.Block
  1125. Part.Name="Bandage"
  1126. Part.BrickColor= BrickColor.new("Lily white")
  1127. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1128. 0.0716470033, -1.0380317, 0.543615103, 0, 0, -1, 0, -1, -0, -1, 0, -0
  1129. )
  1130. AutoWeld(Part,Character["Left Arm"])
  1131. Part.CanCollide=false
  1132. Part.Material=
  1133. Enum.Material.SmoothPlastic
  1134. table.insert(Staff,Part)
  1135.  
  1136. -------------------------------------------------------------
  1137. Part=Instance.new("Part",Character)
  1138. Part.Size= Vector3.new(
  1139. 0.669999778, 0.669999778, 0.669999778
  1140. )
  1141. Part.Shape=
  1142. Enum.PartType.Ball
  1143. Part.Name="Ball"
  1144. Part.BrickColor= BrickColor.new("Really red")
  1145. Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
  1146. 0.141646966, -1.0380317, -2.46138406, 0, 0, -1, 0, -1, -0, -1, 0, -0
  1147. )
  1148. AutoWeld(Part,Character["Left Arm"])
  1149. Part.CanCollide=false
  1150. Part.Material=
  1151. Enum.Material.Glass
  1152. table.insert(Staff,Part)
  1153. -------------------------------------------------------------
  1154. for _,v in pairs(Staff) do
  1155. v.Transparency=1
  1156. end
  1157.  
  1158. function rayCast(Position, Direction, Range, Ignore)
  1159. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1160. end
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  1168. sref.Anchored = true
  1169.  
  1170. local m = Create("Model"){
  1171. Parent = Character,
  1172. Name = "WeaponModel",
  1173. }
  1174. local shield=false
  1175.  
  1176. function chatfunc(text)
  1177. local chat = coroutine.wrap(function()
  1178. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1179. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1180. end
  1181. local naeeym2 = Instance.new("BillboardGui",Character)
  1182. naeeym2.Size = UDim2.new(0,100,0,40)
  1183. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1184. naeeym2.Adornee = Character.Head
  1185. naeeym2.Name = "TalkingBillBoard"
  1186. local tecks2 = Instance.new("TextLabel",naeeym2)
  1187. tecks2.BackgroundTransparency = 1
  1188. tecks2.BorderSizePixel = 0
  1189. tecks2.Text = ""
  1190. tecks2.Font = "Fantasy"
  1191. tecks2.FontSize = "Size32"
  1192. tecks2.TextStrokeTransparency = 0
  1193. tecks2.TextColor3 = Color3.new(.6,0,0)
  1194. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1195. tecks2.Size = UDim2.new(1,0,0.5,0)
  1196. local shk = coroutine.wrap(function()
  1197. while tecks2 ~= nil do
  1198. wait(.05)
  1199. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  1200. end
  1201. end)
  1202. shk()
  1203. for i = 1,string.len(text),1 do
  1204. tecks2.Text = string.sub(text,1,i)
  1205. wait(0.01)
  1206. end
  1207. wait(1)
  1208. for i = 1, 5 do
  1209. wait(.01)
  1210. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1211. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1212. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1213. end
  1214. naeeym2:Destroy()
  1215. end)
  1216. chat()
  1217. end
  1218.  
  1219. Player.Chatted:connect(function(msg)
  1220. if attack==false then
  1221. chatfunc(msg)
  1222. end
  1223. end)
  1224.  
  1225.  
  1226.  
  1227. Dis=Instance.new('Part',Character)
  1228. Dis.Transparency=1
  1229. Dis.Size=Vector3.new(20,1,20)
  1230. Dis.Anchored=true
  1231. Dis.CanCollide=false
  1232. dek=Instance.new('Decal',Dis)
  1233. dek.Face='Bottom'
  1234. dek.Texture='http://www.roblox.com/asset/?id=352764483'
  1235. dek.Transparency=1
  1236. AC=Instance.new('Attachment',Dis)
  1237. Dis.Name='Dis'
  1238. light=Instance.new('SurfaceLight',Character.Torso)
  1239. lightp=0
  1240. light.Face='Top'
  1241. while true do
  1242. light.Color=Color3.new(lightp,lightp,lightp)
  1243.  
  1244. if taunt==true then
  1245. lightp=TauntS.PlaybackLoudness/500
  1246. light.Enabled=true
  1247. else
  1248. lightp=0
  1249. light.Enabled=false
  1250. end
  1251. if attack==false then
  1252. dek.Transparency=1
  1253. else
  1254. dek.Transparency=0
  1255. end
  1256. Dis.CFrame=CFrame.new(ms.Hit.p.X,ms.Hit.p.Y,ms.Hit.p.Z)*CFrame.new(0,20,0)*CFrame.Angles(0,sine/2,0)
  1257. swait()
  1258. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1259. Character['Left Arm'].LocalTransparencyModifier=0
  1260. Character['Right Arm'].LocalTransparencyModifier=0
  1261. Character['Right Leg'].LocalTransparencyModifier=0
  1262. Character['Left Leg'].LocalTransparencyModifier=0
  1263. Character['Torso'].LocalTransparencyModifier=0
  1264.  
  1265. wait()
  1266. sine=sine+change
  1267. change=.1
  1268. if taunt==true and collapse==false then
  1269. if attack == false then
  1270. change = 2
  1271. PlayAnimationFromTable({
  1272. CFrame.new(-0, -0.331043243, -0.246173918) * CFrame.new(0,0+ math.cos(sine/2)*3, 0) * CFrame.Angles(0, math.rad(15 * math.cos(sine / 4)), 0),
  1273. CFrame.new(0, 1.4999913, 6.55651093e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(15 * math.cos(sine/4)), 0),
  1274. CFrame.new(1.5 , 0 + .2 * math.cos(sine / 4 ) / 2, 0 - 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 4)), math.rad(3), math.rad(0)),
  1275. CFrame.new(-1.5 , 0 - .2 * math.cos(sine / 4) / 2, 0 + 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 4)), math.rad(-3), math.rad(0)),
  1276. CFrame.new(.5 , -1.64 - 1 * math.cos(sine / 4) / 2, 0 + 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 4)), math.rad(-3), math.rad(0)),
  1277. CFrame.new(-.5 , -1.64 + 1 * math.cos(sine / 4 ) / 2, 0 - 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 4)), math.rad(3), math.rad(0)),
  1278. ---root.RotVelocity.Y /20
  1279. }, .2, false)
  1280.  
  1281. end
  1282. end
  1283. if collapse==false then
  1284. if taunt==false then
  1285. Character.Humanoid.WalkSpeed=20
  1286. local speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
  1287.  
  1288.  
  1289. local TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1290. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1291. velocity = RootPart.Velocity.y
  1292. sine = sine + change
  1293. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1294. if RootPart.Velocity.y > 1 and hit == nil then
  1295. Anim = "Jump"
  1296. if attack == false then
  1297. PlayAnimationFromTable({
  1298. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1299. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1300. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1301. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1302. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1303. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1304. }, .3, false)
  1305. end
  1306. elseif RootPart.Velocity.y < -1 and hit == nil then
  1307. Anim = "Fall"
  1308. if attack == false then
  1309. PlayAnimationFromTable({
  1310. CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1311. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1312. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1313. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1314. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1315. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1316. }, .3, false)
  1317. end
  1318. elseif Torsovelocity < 1 and hit ~= nil then
  1319. Anim = "Idle"
  1320. if attack == false then
  1321. change = 1
  1322. PlayAnimationFromTable({
  1323. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, .5, 0),
  1324. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0),
  1325. CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1326. CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1327. CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1328. CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1329. }, .3, false)
  1330. end
  1331. elseif Torsovelocity > 2 and hit ~= nil then
  1332. Anim = "Walk"
  1333. if attack == false then
  1334. change = 2
  1335. PlayAnimationFromTable({
  1336. CFrame.new(-0, -0.331043243, -0.246173918) * CFrame.new(0, .1, 0) * CFrame.Angles(-.2, math.rad(-15 * math.cos(sine / 8)), 0+root.RotVelocity.Y/15),
  1337. CFrame.new(0, 1.4999913, 6.55651093e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(.2, math.rad(15 * math.cos(sine / 8)), 0),
  1338. CFrame.new(1.5 , 0 + .2 * math.cos(sine / 8 ) / 2, 0 - 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  1339. CFrame.new(-1.5 , 0 - .2 * math.cos(sine / 8) / 2, 0 + 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1340. CFrame.new(.5 , -1.64 - 1 * math.cos(sine / 8) / 2, 0 + 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1341. CFrame.new(-.5 , -1.64 + 1 * math.cos(sine / 8 ) / 2, 0 - 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  1342. ---root.RotVelocity.Y /20
  1343. }, .2, false)
  1344. end
  1345. end
  1346. end
  1347. elseif collapse==true then
  1348. Character.Humanoid.WalkSpeed=0
  1349. PlayAnimationFromTable({
  1350. CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, -3, 0) * CFrame.Angles(-1.5, 0, 0),
  1351. CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1352. CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.5),
  1353. CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -.5),
  1354. CFrame.new(0.5,-1.8, 0) * CFrame.new(0.4, 0, 0) * CFrame.Angles(0, 0, .5),
  1355. CFrame.new(-0.5,-1.8 ,0) * CFrame.new(-0.4, 0, 0) * CFrame.Angles(0, 0, -.5),
  1356. }, .2, false)
  1357. elseif attack==true then
  1358. Character.Humanoid.WalkSpeed=0
  1359.  
  1360. end
  1361. end
  1362. --https://www.hastebin.com/raw/fahamuqecu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement