HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Roblox Tutorial - Press Key to Interact (Proximity Prompt)

64,562 views October 30, 2020 3:24

Watch on YouTube
ChannelEppobot

Description from the creator

In this video, I will show you how to use the new ProximityPrompt feature, which allows you to easily make objects that interact with a press of a key or button. For example: "Press E to open a door" or "Press F to use". I'll show you a simple example and all the important things you need to know to get started! Proximity Prompt is super cool indeed! :)

My Door Model: roblox.com/library/5897110730/
More info: devforum.roblox.com/t/proximity-prompt-studio-b…
-----------------------------------------------------------------------------------------------------------------------------------
SCRIPT:
local ProximityPrompt = script.Parent
local Door = script.Parent.Parent

ProximityPrompt.Triggered:Connect(function()
if ProximityPrompt.ActionText == "Open" then
Door.Transparency = .5
Door.CanCollide = false
ProximityPrompt.ActionText = "Close"
else
Door.Transparency = 0
Door.CanCollide = true
ProximityPrompt.ActionText = "Open"
end
end)
-----------------------------------------------------------------------------------------------------------------------------------
Make sure to Like, Subscribe and turn Post Notifications ON 🔔 Thanks! 🦋

▸ Twitter: twitter.com/eppobotdev
▸ Roblox: roblox.com/users/26716940/profile

#RobloxStudio #Roblox #Tutorial

About this tutorial

Eppobot published this 3:24 video tutorial on October 30, 2020. It has been watched 64,562 times on YouTube.

Channel
Eppobot
Category
Gaming
Duration
3:24
Published
October 30, 2020
Views
64,562
Likes
1,993

Tags

Share

This tutorial in other languages