Advertisement
lotay

Untitled

Sep 30th, 2021
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.CoreGui
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  17. Frame.Position = UDim2.new(0.444331974, 0, 0.361671478, 0)
  18. Frame.Size = UDim2.new(0, 158, 0, 128)
  19. Frame.Active = true
  20. Frame.Draggable = true
  21.  
  22. TextButton.Parent = Frame
  23. TextButton.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  24. TextButton.Size = UDim2.new(0, 158, 0, 128)
  25. TextButton.Font = Enum.Font.SourceSans
  26. TextButton.Text = "Click me"
  27. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  28. TextButton.TextScaled = true
  29. TextButton.TextSize = 14.000
  30. TextButton.TextWrapped = true
  31. TextButton.MouseButton1Down:connect(function()
  32.     workspace.CurrentCamera.FieldOfView = 120
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement