概要
robloxでassistant、やってみた。
練習問題やってみた。
練習問題
UIScaleを使え。
写真
サンプルコード
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(209, 109, 109)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.1, 0, 0.400000006, 0)
Frame.Size = UDim2.new(0, 150, 0, 150)
for size = 0.2, 1.5, 0.2 do
local image = Instance.new("ImageLabel")
image.Image = "rbxassetid://284402752"
image.Parent = Frame
image.Size = UDim2.new(0, 100, 0, 100)
Instance.new("UIScale", image).Scale = size
wait(1)
end
以上。