概要
robloxでassistant、やってみた。
練習問題やってみた。
練習問題
UIGradientを使え。
写真
サンプルコード
ReplicatedFirst.LocalScript
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local UIGradient = Instance.new("UIGradient")
local title = Instance.new("TextLabel")
local status = Instance.new("TextLabel")
local image = Instance.new("ImageLabel")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local Gui = Instance.new("ScreenGui")
Gui.Parent = PlayerGui
Frame.Parent = Gui
Frame.BackgroundColor3 = Color3.fromRGB(109, 109, 109)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.1, 0, 0.400000006, 0)
Frame.Size = UDim2.new(0, 300, 0, 150)
UIGradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 255)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))
})
UIGradient.Rotation = 30
UIGradient.Parent = Frame
title.Name = "title"
title.Parent = Frame
title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
title.BackgroundTransparency = 1.000
title.Size = UDim2.new(0, 300, 0, 32)
title.Font = Enum.Font.Gotham
title.Text = "Ohisama"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.TextSize = 22.000
status.Name = "status"
status.Parent = Frame
status.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
status.BackgroundTransparency = 1.000
status.Position = UDim2.new(0.283333331, 0, 0.486666679, 0)
status.Size = UDim2.new(0, 203, 0, 29)
status.Font = Enum.Font.Gotham
status.Text = "looking for game"
status.TextColor3 = Color3.fromRGB(255, 255, 255)
status.TextScaled = true
status.TextSize = 20.000
status.TextWrapped = true
以上。