Как в роблокс студио сделать блок при котором когда на него встаёт игрок блок падает

  Рет қаралды 27

Krislay33

Krislay33

27 күн бұрын

скрипт:
local part = script.Parent -- Reference to the part this script is attached to
-- Function to make the part fall
local function makePartFall()
part.Anchored = false -- Unanchor the part to allow it to fall
part.CanCollide = false -- Optional: Prevent the part from colliding with other objects as it falls
end
-- Connect the function to the Touched event of the part
part.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
-- Check if the object that touched the part has a Humanoid, indicating it's a player
if humanoid then
makePartFall()
end
end)
#robloxstudio

Пікірлер: 1
@Krislay33
@Krislay33 25 күн бұрын
local part = script.Parent -- Reference to the part this script is attached to -- Function to make the part fall local function makePartFall() part.Anchored = false -- Unanchor the part to allow it to fall part.CanCollide = false -- Optional: Prevent the part from colliding with other objects as it falls end -- Connect the function to the Touched event of the part part.Touched:Connect(function(hit) local character = hit.Parent local humanoid = character:FindFirstChildOfClass("Humanoid") -- Check if the object that touched the part has a Humanoid, indicating it's a player if humanoid then makePartFall() end end)
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 33 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 154 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
Кто начал Холодную Войну?
11:45
Мистер Сферический
Рет қаралды 230 М.
I BOUGHT 50 BANNED PARCELS FROM CHINA! BANNED ON AliExpress!!!
22:40
Бен в нашем доме
18:59
переписки.
Рет қаралды 12 МЛН
Майнкрафт, Но Я СДЕЛАЛ НЕВЕРОЯТНОЕ!
4:11
Акбаржон
Рет қаралды 6 М.
Animation vs. Geometry
9:17
Alan Becker
Рет қаралды 6 МЛН