Возрастное ограничение 12+

Меню в роблокс студио / roblox studio

27.06.2025 03:02 Обучение

Описание

Мой магазин : https://playerok.com/profile/vombat1980/products
Скрипт :
local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera

local button = script.Parent
wait(0.1)
local cameraPart = workspace.cameraPart
wait(0.1)

player.Character:FindFirstChild("Humanoid").PlatformStand = true

camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = cameraPart.CFrame

button.Visible = true

function OnClick()
camera.CameraType = Enum.CameraType.Custom
camera.CFrame = player.Character.HumanoidRootPart.CFrame
button.Visible = false
player.Character:FindFirstChild("Humanoid").PlatformStand = false
end

button.MouseButton1Click:Connect(OnClick)

Автор

Sergo rbs
Sergo rbs