I feel like this is new or something but you can’t do Prompt.Triggered on LocalScripts.
I may be wrong.
But because of this, I’m having a RemoteEvent (RemoteEventComputer) fire to the Script so it can detect if the ProximityPrompt is being triggered. Then do (EX - EX.)
LocalScript:
local Text = game.Players.LocalPlayer.PlayerGui.HintGui.TextLabel
local Frame = game.Players.LocalPlayer.PlayerGui.HintGui.Frame
local PromptSwitch = game.Workspace.SwitchTest.ProximityPrompt
local PromptComputer = game.Workspace.monitor.ComputerPart.ProximityPrompt
local player = game.Players.LocalPlayer
game.ReplicatedStorage.RemoteEventComputer.OnClientEvent:Connect(function()
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait ()
local Camera = workspace.CurrentCamera
repeat wait ()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = game.Workspace.monitor.CameraPart.CFrame
player.Character:WaitForChild("HumanoidRootPart").Anchored = true
Text.Visible = true
Frame.Visible = true
-- I removed the text because it's not really needed for the post.
end)
Script:
local PromptSwitch = game.Workspace.SwitchTest.ProximityPrompt
local PromptComputer = game.Workspace.monitor.ComputerPart.ProximityPrompt
PromptSwitch.Triggered:Connect(function()
PromptComputer.Enabled = true
end)
PromptComputer.Triggered:Connect(function(player)
game.ReplicatedStorage.RemoteEventComputer:FireClient(player)
end)
That works and the text and frame becomes “visible” but not really. I’ve tried using game.StarterGui / game.Players.LocalPlayer.PlayerGui to define it but it doesn’t work.
I’ll try what your suggesting but i’m having play several pieces of text in intervals, that when i look at it in startergui i see it actively updating to change it.