Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to open a player's GUI from a serverscript when a part is touched?

Asked by 2 years ago
Edited 2 years ago

Hi. This script is meant to open a player's gui when they touch a part. It used to work but I changed something and the script is broken. No errors either. Can anyone help? I'm gonna rip my hair out soon.

script.Parent.Touched:Connect(function(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    player.PlayerGui.gameShop.Enabled = true
    player.PlayerGui.shop.Enabled = false
    player.PlayerGui.menus.Enabled = false
end)

All help is appreciated.

0
I think you should use a remote event to do this. echobloxia 21 — 2y
0
you could just clone the gui and then put it inside the playergui vendinY 5 — 2y

Answer this question