I watched various videos and even asked Neural Network to help me, but nothing works, NOTHING AT ALL, and I can't figure out what the problem is. I tried doing it the last time, as shown in the video I'll link to, because it's the closest to what I want to do. I did everything exactly as shown in the video, but it didn't work for me. Please help me, how to make a system that opens and closes a GUI window on the "e"
video : https://youtu.be/dVcydwOkQhE?si=H-eHjeVdMb1D9EWZ
LocalScript in ScreenGui :
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 in part:
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)
Script in part :
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)
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: https://www.youtube.com/playlist?list=PLBEb-LEvzmg8gGi6WiSTiGpXFJlLyIGqK
Local Script:
local RemoteEvent = game.ReplicatedStorage:WaitForChild("Opengui") --Variabl...
** You are now Level 5! **