Как создать VIP-пропуск в Roblox Studio! (Полное руководство по настройке)
Автор: OrganicDev
Загружено: 2025-06-30
Просмотров: 13759
Описание:
В этом видео я покажу вам, как добавить VIP-пропуск в игру. Этот VIP-пропуск включает в себя дверь/зону, доступную только для VIP-персон, ускорение и специальную VIP-бирку. Ниже представлен скрипт:
local MarketplaceService = game:GetService("MarketplaceService")
local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService("Players")
local VIPGamepassId = 1290176301
local vipWall = workspace:WaitForChild("VIPDoor")
local function registerGroup(name)
local ok = pcall(function()
PhysicsService:CollisionGroupSetCollidable(name, name, true)
end)
if not ok then
PhysicsService:RegisterCollisionGroup(name)
end
end
registerGroup("VIP")
registerGroup("DefaultPlayers")
registerGroup("VIPWall")
PhysicsService:CollisionGroupSetCollidable("VIP", "VIPWall", false)
PhysicsService:CollisionGroupSetCollidable("DefaultPlayers", "VIPWall", true)
vipWall.CollisionGroup = "VIPWall"
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local successful, hasPass = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, VIPGamepassId)
end)
local group = hasPass and "VIP" or "DefaultPlayers"
for _, part in char:GetDescendants() do
if part:IsA("BasePart") then
part.CollisionGroup = group
end
end
end)
end)
--из длинного видео, дополнительное ускорение и тег имени ниже
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local function applyVIPPerks()
local success, hasPass = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, VIPGamepassId)
end)
if successful and hasPass then
print(player.Name .. "владеет VIP-пропуском!")
player.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
hum.WalkSpeed = 25
local tag = Instance.new("BillboardGui", char:WaitForChild("Head"))
tag.Name = "VIPTag"
tag.Size = UDim2.new(0, 100, 0, 30)
tag.StudsOffset = Vector3.new(0, 2, 0)
tag.AlwaysOnTop = true
local label = Instance.new("TextLabel", tag)
label.Size = UDim2.new(1, 0, 1, 0)
label.Text = "⭐ VIP"
label.BackgroundTransparency = 1
label.TextColor3 = Color3.new(1, 1, 0)
label.TextStrokeTransparency = 0.5
label.Font = Enum.Font.GothamBold
label.TextScaled = true
end)
else
print(player.Name .. " НЕ владеет VIP-пропуском.")
end
end
applyVIPPerks()
end)
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: