local objList = Workspace:GetChildList() --์ค๋ธ์ ํธ์ ์์ ์ค๋ธ์ ํธ๋ฅผ ๋ฆฌ์คํธ๋ก ๋ฐํํด์.
for i = 1, #objList do --๋ฆฌ์คํธ์์ #์ ๋ถ์ฌ ๋ฆฌ์คํธ์ ๊ธธ์ด๋ฅผ ๊ฐ์ ธ์ฌ ์ ์์ด์.
print(objList[i].Name)
end
bool IsCharacter()
์บ๋ฆญํฐ์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsCharacter() == true then --์ค๋ธ์ ํธ๊ฐ Character๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Character")
end
bool IsStaticMesh()
์คํ ํฑ ๋ฉ์์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsStaticMesh() == true then --์ค๋ธ์ ํธ๊ฐ StaticMesh๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is StaticMesh")
end
bool IsFX()
FX์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsFX() == true then --์ค๋ธ์ ํธ๊ฐ FX๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is FX")
end
bool IsSound()
Sound์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsSound() == true then --์ค๋ธ์ ํธ๊ฐ Sound๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Sound")
end
bool IsPointLight()
ํฌ์ธํธ ๋ผ์ดํธ์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsPointLight() == true then --์ค๋ธ์ ํธ๊ฐ PointLight๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is PointLight")
end
bool IsSpotLight()
์คํฌํธ ๋ผ์ดํธ์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsSpotLight() == true then --์ค๋ธ์ ํธ๊ฐ SpotLight๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is SpotLight")
end
bool IsSurfaceUI()
์ํผ์ค UI์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsSurfaceUI() == true then --์ค๋ธ์ ํธ๊ฐ SurfaceUI๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is SurfaceUI")
end
bool IsScreenUI()
์คํฌ๋ฆฐ UI์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsScreenUI() == true then --์ค๋ธ์ ํธ๊ฐ ScreenUI๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is ScreenUI")
end
bool IsTouchUI()
ํฐ์น UI์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsTouchUI() == true then --์ค๋ธ์ ํธ๊ฐ TouchUI๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is TouchUI")
end
bool IsItem()
์์ดํ ์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsItem() == true then --์ค๋ธ์ ํธ๊ฐ Item๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Item")
end
bool IsNPC()
NPC์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsNPC() == true then --์ค๋ธ์ ํธ๊ฐ NPC๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is NPC")
end
bool IsScript()
์คํธ๋ฆฝํธ์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsScript() == true then --์ค๋ธ์ ํธ๊ฐ Script๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Script")
end
bool IsCollider()
Collider์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsCollider() == true then --์ค๋ธ์ ํธ๊ฐ Collider๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Collider")
end
bool IsWidget()
Widget์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsWidget() == true then --์ค๋ธ์ ํธ๊ฐ Widget๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Widget")
end
bool IsCamera()
Camera์ธ์ง ํ์ธํ ์ ์์ด์.
-- ์ํ --
local cube = Workspace.Cube
if cube:IsCamera() == true then --์ค๋ธ์ ํธ๊ฐ Camera๋ฉด true๋ฅผ ๋ฐํํด์.
print(cube.Name .. " Is Camera")
end
local checkObject = Workspace.Floor
local checkValue = "Cube"
if checkObject:IsValidValue(checkValue) == false then
print(checkObject, " Have No ", checkValue)
else
print(checkObject, ".", checkObject[checkValue])
end
void AddReplicateValue(string ValueName, Vector Data, ReplicateType Type, number Time)