Roblox How To | Press "E" to Open GUI/Frame
In this Roblox Studio Tutorial I show you guys how to use a Proximity Prompt to open a GUI/Frame in Roblox Studio!
Shop Serires/Playlist: • Working Shop Series
Local Script:
local RemoteEvent = game.ReplicatedStorage:WaitForChild("Opengui") --Variable for the Remote Event in Replicated Storage
RemoteEvent.OnClientEvent:Connect(function() --Code runs when the Remote Event is fired
script.Parent.Frame.Visible = true --Makes the frame visible
end)
Script:
local RemoteEvent = game.ReplicatedStorage:WaitForChild("Opengui") --Variable for Remote Event
local prox = script.Parent.ProximityPrompt --Variable for Proximity Prompt
prox.Triggered:Connect(function(player) --Code runs when the Player triggers the Proximity Prompt
RemoteEvent:FireClient(player) --Fires the Remote Event
end)
My Discord server: / discord
Make sure to like and subscribe if you enjoyed it or if this video helped :)
Music Used: (In Order):
Summer - Bensound
https://www.bensound.com/royalty-free...
Overworld Theme - New Super Mario Bros. Wii
• Overworld Theme - New Super Mario Bro...
Chapters:
0:00 Intro
0:13 Making the Block and Proximity Prompt
1:29 Remote Event
1:57 Gui (Make your own)
2:14 Local Script
3:26 Regular Script
4:26 Showcase
5:01 Outro
Tags: #onfirerobloxscripting #roblox #robloxstudio #tutorial