Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1.  
  2. local function CreateInstance(cls,props)
  3. local inst = Instance.new(cls)
  4. for i,v in pairs(props) do
  5. inst[i] = v
  6. end
  7. return inst
  8. end
  9.  
  10. local UnstableX = CreateInstance('ScreenGui',{DisplayOrder=0,Enabled=true,ResetOnSpawn=true,Name='UnstableX', Parent=game.CoreGui})
  11. local Main = CreateInstance('Frame',{Style=Enum.FrameStyle.Custom,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0.0941177, 0.0941177, 0.0941177),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=0,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.353456676, 0, 0.327806115, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 420, 0, 269),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name = 'Main',Parent = UnstableX})
  12. local LoginBtn = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='Login',TextColor3=Color3.new(0, 0, 0),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=0,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.307142884, 0, 0.799256504, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 162, 0, 34),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=false,ZIndex=1,Name='LoginBtn',Parent = Main})
  13. local UnstableXTitle = CreateInstance('TextLabel',{Font=Enum.Font.ArialBold,FontSize=Enum.FontSize.Size24,Text='Unstable X',TextColor3=Color3.new(1, 1, 1),TextScaled=false,TextSize=21,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=1,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.261904776, 0, 0.16356878, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 200, 0, 50),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=false,ZIndex=1,Name='UnstableXTitle',Parent = Main})
  14. local LoginTxt = CreateInstance('TextBox',{ClearTextOnFocus=true,Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,MultiLine=false,Text='Key / Code / Password',TextColor3=Color3.new(0, 0, 0), PlaceholderText='', PlaceholderColor3=Color3.new(0.7, 0.7, 0.7),TextScaled=false,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.0547619052, 0, 0.438661724, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 376, 0, 26),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=false,ZIndex=1,Name='LoginTxt',Parent = Main})
  15.  
  16. function CLICKFX(BTN, x, y)
  17. local RS = game:GetService("RunService").RenderStepped
  18. local FX = Instance.new("ImageLabel",BTN)
  19. BTN.ClipsDescendants = true
  20. FX.Size = UDim2.new(0, 0, 0, 0);
  21. FX.Position = UDim2.new(0, x - 0, 0, y - 35) - UDim2.new(0, BTN.AbsolutePosition.X, 0, BTN.AbsolutePosition.Y);
  22. FX.Image = 'http://www.roblox.com/asset/?id=200182847';
  23. FX.BackgroundTransparency = 1;
  24. FX.ZIndex = BTN.ZIndex;
  25. FX.Name = 'ClickAnim';
  26. FX:TweenSizeAndPosition(UDim2.new(0, 500, 0, 500), FX.Position - UDim2.new(0, 250, 0, 250), 'Out', 'Quart', 1, true)
  27. for i=0, 1, .05 do
  28. FX.ImageTransparency = i
  29. RS:wait()
  30. end
  31. FX:Destroy()
  32. end
  33.  
  34. LoginBtn.MouseButton1Down:connect(function(x, y)
  35. CLICKFX(Main.LoginBtn, x, y)
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement