The code below is what I have. It works in studio, but not in the game:
Server Script:
script.Parent.Parent.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == script.Parent.Name then
wait(1)
game.ReplicatedStorage.OpenCarGui:FireClient(player)
end
end)
LocalScript:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local openCarGui = ReplicatedStorage:WaitForChild("OpenCarGui")
local player = game:GetService("Players").LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local function onEventFired()
playerGui.Carshop.Enabled = true
end
openCarGui.OnClientEvent:Connect(onEventFired)

3 comments
I don't understand, are you trying to open the GUI only for one player or all players? Also, GUI's don't work using "ENABLED", it's Something.Something.Visible = true
No, Guis use enabled, not visible. So Carchop.Enabled = true is right.
Can't you do it the script way?