0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

robloxでassistant その188

Posted at

概要

robloxでassistant、やってみた。
練習問題やってみた。

練習問題

UIScaleを使え。

写真

image.png

サンプルコード

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



以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?