Как создать игру-лабиринт в Roblox Studio №3

Published: 14 June 2024
on channel: Bloxy.school
271
8

Подписывайтесь на наш сервер в Discord:   / discord  

Скрипт для пола (отнимающий здоровье):
local floor = script.Parent
local function kill(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
hum.Health -= 5
end
end
floor.Touched:Connect(kill)

Скрипт в ClickDetector:
local click = script.Parent
local m = 0
local door = workspace.Door
local floor = game.Workspace.Maze.Floor

local function r()
m = math.random(1,2)
if m == 1 then
floor.Script.Enabled = true
wait(5)
floor.Script.Enabled = false
end

if m == 2 then
door.Transparency = 1
door.CanCollide = false
wait(10)
door.Transparency = 0
door.CanCollide = true
end
end
click.MouseClick:Connect(r)


Watch video Как создать игру-лабиринт в Roblox Studio №3 online, duration hours minute second in high quality that is uploaded to the channel Bloxy.school 14 June 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 271 times and liked it 8 visitors.