🖥 Bước 1: Cài Roblox Studio
Vào roblox.com
Nhấn Create
Tải và cài Roblox Studio
🏗 Bước 2: Tạo game mới
Mở Roblox Studio
Chọn Baseplate
Nhấn Play ▶ để thử
Vào Home → Part → Block
Dùng Move để di chuyển
Dùng Scale để chỉnh to nhỏ
Tạo nhiều block để làm sàn nhảy (obby)
Chuột phải vào block
Chọn Insert Object → Script
Dán code:
local part = script.Parent
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = humanoid.Health - 20
end
end)
File → Publish to Roblox
Đặt tên → Create
Xong