Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Click Part And Make Frame Visible - Not Working?

local players = game:GetService("Players")

game.Workspace:WaitForChild("SpacePod").Teleport.ClickDetector.mouseClick:Connect(function(player)
local frame = player.PlayerGui:WaitForChild("SpacePod").Frame
frame.Visible = true
end)

1 answer

✓ Accepted answer

First of all, you might want to organize your code a bit more, or else you'll be hitting yourself with a hammer later on.

Also, I'm fairly sure that you can't directly modify a player's GUI server-side (someone correct me if I'm wrong), so you would need some sort of Server -> Client communication (probably through RemoteEvents) to notify the client that someone clicked and to change the UI.

This discussion is preserved as it was. New answers, comments, and votes are closed.