Advertisement
Descaii

Asd

Aug 24th, 2014
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.10 KB | None | 0 0
  1. Angle = 0
  2. ypcall(function()
  3.     script.Parent = nil
  4.     Player = game.Players.LocalPlayer
  5.     Mouse = Player:GetMouse()
  6.     Player.Character = nil
  7.     wait(1)
  8.     P = Instance.new("Part",Workspace)
  9.     P.Anchored = true
  10.     P.FormFactor = "Custom"
  11.     P.Size = Vector3.new(3,3,3)
  12.     P.Transparency = 0.5
  13.     local PM = Instance.new("SpecialMesh",P)
  14.     PM.MeshType = "Sphere"
  15.     P.TopSurface = "Smooth"
  16.     P.BottomSurface = "Smooth"
  17.     P.CanCollide = false
  18.     local P1 = Instance.new("Part",P)
  19.     P1.Anchored = true
  20.     P1.Size = Vector3.new(3,3,3)
  21.     P1M = Instance.new("SpecialMesh",P1)
  22.     P1M.MeshId = "http://www.roblox.com/asset/?id=3270017"
  23.     P1M.Scale = Vector3.new(4,4,4)
  24.     P1.CanCollide = false
  25.     P2 = P1:clone()
  26.     P2.Parent = P
  27.     P3 = P:clone()
  28.     P3.Parent = P
  29.     P3.Size = P.Size-Vector3.new(1,1,1)
  30.     P3.BrickColor = BrickColor.new("Bright blue")
  31.     local Chats = {}
  32.     function Chat(cht)
  33.         local B = Instance.new("BillboardGui",P)
  34.         B.Size = UDim2.new(0,100,0,100)
  35.         B.StudsOffset = Vector3.new(0,4,0)
  36.         local T = Instance.new("TextLabel",B)
  37.         T.Size = UDim2.new(1,0,1,0)
  38.         T.Text = ""
  39.         T.FontSize = "Size18"
  40.         T.BackgroundTransparency = 1
  41.         T.BackgroundColor3 = Color3.new(0,0,0)
  42.         T.TextColor3 = Color3.new(1,1,1)
  43.         T.BorderSizePixel = 5
  44.         T.BorderColor3 = Color3.new(0.5,0.5,0.5)
  45.         for i,v in pairs(Chats) do
  46.             v.SizeOffset = v.SizeOffset +Vector2.new(0,1.5)
  47.         end
  48.         if #Chats > 4 then
  49.             local N = Chats[1]
  50.             if N then
  51.                 N:Destroy()
  52.                 table.remove(Chats,1)
  53.             end
  54.         end
  55.         table.insert(Chats,B)
  56.         Delay(0,function()
  57.             for i = 1,#cht do
  58.                 wait(0.05)
  59.                 T.BackgroundTransparency = 0.5
  60.                 T.Text = T.Text ..cht:sub(i,i)
  61.                 B.Size = UDim2.new(0,T.TextBounds.X+20,0,T.TextBounds.Y)
  62.             end
  63.         end)
  64.     end
  65.     local PTP = {}
  66.     game:GetService("RunService").RenderStepped:connect(function()
  67.         Angle = Angle +1
  68.         P.CFrame = Workspace.CurrentCamera.Focus
  69.         P1.CFrame = P.CFrame*CFrame.Angles(math.rad(Angle),math.rad(Angle),math.rad(Angle))
  70.         P2.CFrame = P.CFrame*CFrame.Angles(math.rad(-Angle),math.rad(-Angle),math.rad(-Angle))
  71.         P3.CFrame = P.CFrame
  72.         for i,v in pairs(PTP) do
  73.             v.CFrame = P.CFrame
  74.         end
  75.     end)
  76.     Player.Chatted:connect(function(chat)
  77.         Chat(chat)
  78.         --game:GetService("Chat"):Chat(P,chat,"Red")
  79.     end)
  80.     local MD = false
  81.     local LastTarget = nil
  82.     Mouse.Button1Down:connect(function()
  83.         MD = true
  84.         local LAS = Instance.new("Part",Workspace)
  85.         LAS.FormFactor = "Custom"
  86.         LAS.CanCollide = false
  87.         LAS.TopSurface = "Smooth"
  88.         LAS.BottomSurface = "Smooth"
  89.         LAS.Anchored = true
  90.         LAS.Transparency = 0.7
  91.         LAS.BrickColor = BrickColor.new("Bright blue")
  92.         local TAR = Mouse.Target
  93.         local B
  94.         local DIS
  95.         if TAR and TAR:IsA("BasePart") then
  96.             DIS = (Workspace.CurrentCamera.Focus.p-TAR.Position).magnitude
  97.             B = Instance.new("BodyPosition",TAR)
  98.             B.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  99.         else
  100.             LAS:Destroy()
  101.             return
  102.         end
  103.         LastTarget = TAR
  104.         repeat wait()
  105.             if B and TAR and DIS then
  106.                 local M = Mouse.Hit.p
  107.                 local C = CFrame.new(Workspace.CurrentCamera.Focus.p,M)*CFrame.new(0,0,-DIS)
  108.                 local XDis = (Workspace.CurrentCamera.Focus.p-TAR.Position).magnitude
  109.                 LAS.Size = Vector3.new(1,1,XDis)
  110.                 B.position = C.p
  111.                 LAS.CFrame = CFrame.new(Workspace.CurrentCamera.Focus.p,TAR.CFrame.p)*CFrame.new(0,0,-XDis/2)
  112.             end
  113.         until not MD
  114.         LAS:Destroy()
  115.         B:Destroy()
  116.     end)
  117.     Mouse.Button1Up:connect(function()
  118.         MD = false
  119.     end)
  120.     Mouse.KeyDown:connect(function(k)
  121.         if k == "b" then
  122.             if LastTarget and LastTarget:IsA("BasePart") then
  123.                 LastTarget:breakJoints()
  124.                 LastTarget.Anchored = false
  125.             end
  126.         end
  127.         if k == "j" then
  128.             P3.BrickColor = BrickColor.new("Bright red")
  129.             local FR = Instance.new("Fire",P3)
  130.             FR.Color = Color3.new(255,0,0)
  131.             FR.Size = 10
  132.             local N = P3:clone()
  133.             N.Parent = P
  134.             table.insert(PTP,N)
  135.             for i = 1,255 do
  136.                 wait()
  137.                 N.Size = N.Size +Vector3.new(math.sin(i)+0.5,math.sin(i)+0.5,math.sin(i)+0.5)
  138.                 N.Transparency = (i/255)
  139.                 game.Lighting.Ambient = Color3.new(i/1000,0,0)
  140.                 game.Lighting.OutdoorAmbient = Color3.new(i/1000,0,0)
  141.                 game.Lighting.Brightness = 1.5-(i/255)
  142.             end
  143.             N:Destroy()
  144.         end
  145.     end)
  146. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement