local button1 = workspace["Tycoon Map"]["Start Pad 1"]
local GUI = workspace.Parent.StarterGui["Type Menu GUI"]
local Start = function ()
if button1.Touched = true then
GUI.Enabled == true
end
end
✓ ANSWER ACCEPTED
How do i open a gui menu on a button touch?
1 answer
✓ Accepted answer
Solution:
--Place this script inside the "Start Pad 1" part.
script.Parent.Touched:Connect(function(hit) --function fires when part is touched, no need for an if statement
if not hit.Parent:FindFirstChild("Humanoid") then return end --making sure it's a human touching the part
local plr = game.Players:GetPlayerFromCharacter(hit.Parent) --getting the player
local GUI = plr.PlayerGui:WaitForChild("Type Menu GUI")--Your gui, we need to do plr.PlayerGUI instead of plr.StarterGui
GUI.Enabled = true
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
i dont think "Touched" is a property here.