Inserted in a serverscript inside the brick
script.Parent.Touched:connect(function(Hit) local H = Hit.Parent:FindFirstChild("Humanoid") if H then local Player = game.Players:GetPlayerFromCharacter(Hit.Parent) Player.PlayerGui.guiMain.frmBackground.Visible = true Player.PlayerGui.guiMain.frmPrelims.Visible = true Player.PlayerGui.guiMain.frmStep3.Visible = true end end)
(I got this from the forums 4 years ago)
This is how I would do your script I believe I did what you tried once and it didn't work but this might so try it.
local h = hit.Parent:FindFirstChild("Humanoid") if h then local Pllayer = game.Players[hit.Parent.Name] -- This will see who is touching the part Player.PlayerGui.guiMain.frmBackground.Visible = true Player.PlayerGui.guiMain.frmPrelims.Visible = true Player.PlayerGui.guiMain.frmStep3.Visible = true end end)
Try this.
script.Parent.Touched:connect(function(hit, player) local h = hit.Parent:FindFirstChild("Humanoid") if h then local PlayerGui = player.PlayerGui PlayerGui.guiMain.frmBackground.Visible = true PlayerGui.guiMain.frmPrelims.Visible = true PlayerGui.guiMain.frmStep3.Visible = true end end)