HOW TO MAKE A SITTABLE SEAT | Roblox Studio Tutorial
Автор: Itz_FloppyFish
Загружено: 2023-11-05
Просмотров: 23643
In todays video I show you how to make a sittable seat in Roblox Studio. In this video we go over 2 different ways on how you can make this work, the first system we went over was if the player walks over the seat they will be put into the seated position, We also went over another system where a player needs to trigger the Proximity Prompt to be able to sit.
I Hope you enjoyed the video, Have a lovely rest of your day! If you are a bit confused what to do, Feel free to create a ticket in my discord server and we can help you out!
Script:
local ProximityPrompt = script.Parent
local Seat = ProximityPrompt.Parent.Seat
local function HandleOccupancyChange()
ProximityPrompt.Enabled = not Seat.Occupant -- This will enable the prompt if there is no occupant, and disable it if there is one
end
Seat:GetPropertyChangedSignal("Occupant"):Connect(HandleOccupancyChange)
local function HandleProximityTrigger(player)
if player.Character and player.Character.Humanoid then -- This will checks if the player has a character and humanoid (These are needed to make the script function correctly.
Seat:Sit(player.Character.Humanoid)
end
end
ProximityPrompt.Triggered:Connect(HandleProximityTrigger)
-------------------------------------------------------
NEW! Floppys Obby Game : https://www.roblox.com/games/14917960...
Floppys Simulator Game: https://www.roblox.com/games/13963457...
FloppyFish Merch Store: https://itz-floppyfish.creator-spring...
If you would like to support me even more, Super Thanks and becoming a Member is also another way to show your appreciation!
🌟 Floppys Discord Server: / discord
🌟 Floppys Roblox Game : https://www.roblox.com/games/11301003...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: