Script for gui not working

This does not do anything, doesnt even print the message. (Script is in a proximity prompt btw)
The heck is wrong?!?!


local proxy = script.Parent
local starterGui = game:GetService("StarterGui")
local Gui = game:GetService("StarterGui")
local GuiVender = Gui.Vender.MainFrame

proxy.Triggered:Connect(function()
	print("Help")
	GuiVender.Visible = true
end)

Is it a localscript or a script
LocalScripts dont work in the workspace, only scripts do,
Changing it from the screengui is a bad idea,
Try this:

local proxy = script.Parent

proxy.Triggered:Connect(function(plr)
	print("Help")
        
	plr.PlayerGui.Vender.MainFrame.Visible = true
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.