شرح صنع وجهة المستخدم في ربلوكس ستوديو #robloxstudio
Astro_coding
0:00 / 0:00
شرح صنع وجهة المستخدم في ربلوكس ستوديو #robloxstudio
147 просмотров · 1 мес. назад
Astro_coding
40 подписчиков
147 просмотров · 1 мес. назад
شكرا علي المشاهدة 😊
بعد نسخ الكواد اقراء ما في الاسفل ⚠️
***
الاكواد 🧑💻
***
الكود 1)
اخفاء و اضهار الائحة
****************
local button = script.Parent
local phoneFrame = button.Parent:WaitForChild("Frame")
button.MouseButton1Click:Connect(function()
phoneFrame.Visible = not phoneFrame.Visible
end)
****************
الكود 2)
اخفاء و اضهار الزر
****************
local button = script.Parent
local otherButton = button.Parent:WaitForChild("OtherButton")
button.MouseButton1Click:Connect(function()
otherButton.Visible = not otherButton.Visible
end)
****************
الكود 3)
نقل الاعب الي البلوك
****************
local button = script.Parent
local workspace = game:GetService("Workspace")
local players = game:GetService("Players")
local targetPart = workspace:WaitForChild("1")
button.MouseButton1Click:Connect(function()
local player = players.LocalPlayer
if player and player.Character then
local humanoidRootPart = player.Character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart and targetPart then
humanoidRootPart.CFrame = targetPart.CFrame + Vector3.new(0, 3, 0)
end
end
end)
****************
وشكرا ❤️
اشترك في القناة 🎈