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.
COMMUNITY QUESTION
How do you make a touch pad so the screen GUI will pop up?
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.
