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

How do you make a touch pad so the screen GUI will pop up?

Well i tried to write a script for a touch pad but it did not work and it did not pop up on my screen.

1 answer

Try this...

local part = script.Parent --The touchpad

--Detects if it's being touched
part.Touched:Connect(function(hit)
	--Checks if it's a player
	if hit.Parent:FindFirstChild("Humanoid") then
		--Gets the player
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
		
		player.PlayerGui:WaitForChild("SCREEN GUI NAME").Enabled = true
	end
end)

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