Advertisement
tomonaoboys

CFrame完全に理解できなかった

Sep 15th, 2018
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.22 KB | None | 0 0
  1. local p=game:service'Players'.LocalPlayer
  2. if not shared.AdvFunc then warn'Waiting for Advanced Function...'end
  3. local sw,rnd=shared.AdvFunc.swait,math.random
  4. function DO_IT()
  5.     local chr,not_doing=p.Character,1
  6.     local root=chr.HumanoidRootPart
  7.     for i=1,100 do
  8.         spawn(function()
  9.             local p,scl=Instance.new("Part",workspace),rnd(100,200)/100
  10.             p.Material,p.Color,p.Size="Neon",Color3.fromRGB(rnd(256),rnd(256),rnd(256)),Vector3.new(scl,scl,scl)p.Anchored=1 p.CanCollide=nil
  11.             p.CFrame=root.CFrame*CFrame.Angles(math.rad(rnd(360)),math.rad(rnd(360)),math.rad(rnd(360)))*CFrame.new(20,0,0)
  12.             local ang=CFrame.Angles(math.rad(rnd(-360,360)/100),math.rad(rnd(-360,360)/100),math.rad(rnd(-360,360)/100))
  13.             for i=1,300 do
  14.                 p.CFrame=p.CFrame*ang
  15.                 sw()
  16.             end
  17.             for i=1,100 do
  18.                 p.CFrame=p.CFrame*CFrame.new(0,0,.4)
  19.                 sw()
  20.             end
  21.             local cu=p.CFrame local ta=root.CFrame
  22.             local ca=CFrame.Angles(0,0,math.rad(rnd(-360,360)))
  23.             local tra=Instance.new('Trail',p)
  24.             local a0=Instance.new("Attachment",p)a0.Position=Vector3.new(0,scl,0)local a1=a0:Clone()a1.Parent=p a1.Position=-a0.Position
  25.             tra.Attachment1=a1 tra.Attachment0=a0
  26.             tra.Transparency=NumberSequence.new(0,1)tra.Lifetime=.5 tra.Color=ColorSequence.new(p.Color)
  27.             tra.FaceCamera=1 tra.Texture="rbxassetid://1251856844"
  28.             for i=1,30 do
  29.             p.CFrame=(cu*ca*CFrame.new(0,math.sin(i/30*math.pi+math.pi)*30,0)):lerp((ta*ca*CFrame.new(0,math.sin(i/30*math.pi+math.pi)*30,0)),i/30)
  30.             sw()
  31.             end
  32.             local e=Instance.new("Explosion",workspace)e.Position=p.CFrame.p e.BlastRadius=40 e.BlastPressure=1
  33.             p.Transparency=1 game:service'Debris':AddItem(p,5)
  34.         end)
  35.         sw()
  36.     end
  37.     wait(1)not_doing=nil
  38. end
  39. p.Chatted:connect(function(m)
  40.     if m=="#CFrame完全に理解した"then
  41.         local bc = BrickColor.new("White")
  42.         wait(1)
  43.         game.StarterGui:SetCore("ChatMakeSystemMessage", {
  44.         Text = "は?";
  45.         Font = Enum.Font.Cartoon;
  46.         Color = bc.Color;
  47.         FontSize = Enum.FontSize.Size96;  
  48.         })
  49.         DO_IT()
  50.     end
  51.     if m=="#Now_I_understand_CFrame"then
  52.         wait(1)
  53.         local bc = BrickColor.new("White")
  54.         game.StarterGui:SetCore("ChatMakeSystemMessage", {
  55.         Text = "what?";
  56.         Font = Enum.Font.Cartoon;
  57.         Color = bc.Color;
  58.         FontSize = 128;  
  59.         })
  60.         DO_IT()
  61.     end
  62. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement