Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
- Frame.Position = UDim2.new(0.444331974, 0, 0.361671478, 0)
- Frame.Size = UDim2.new(0, 158, 0, 128)
- Frame.Active = true
- Frame.Draggable = true
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
- TextButton.Size = UDim2.new(0, 158, 0, 128)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Click me"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- TextButton.MouseButton1Down:connect(function()
- workspace.CurrentCamera.FieldOfView = 120
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement