Город МОСКОВСКИЙ
00:02:42

Как сделать парт при касании которого будет появляться ваша надпись в роблокс студио!

Аватар
Atremn
Просмотры:
185
Дата загрузки:
11.07.2025 13:54
Длительность:
00:02:42
Категория:
Обучение

Описание

скрипт:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
if not plr.PlayerGui:FindFirstChild("GUIClonedfromtouchblock") then
local clonedgui = script.Parent:FindFirstChildOfClass("ScreenGui"):Clone()
clonedgui.Name = "podpiskagui" -- Название TextLabel
clonedgui.Parent = plr.PlayerGui
script.Parent.TouchEnded:Connect(function(hit2)
if hit == hit2 then
game.Debris:AddItem(clonedgui,0)
end
end)
end
end
end
end)

Рекомендуемые видео