Im trying to make an information booth for my zoo game but I keep running into the same error. I have a GUI inside a model with a surfaceGui.
script.Parent.screen.SurfaceGui.TextButton.MouseButton1Click:Connect(function(player)
if not player:FindFirstChild("PlayerGui"):FindFirstChild("ElephantGUIC") then
local clonedGui = script.Parent.ElephantGUI:Clone()
clonedGui.Name = "ElephantGUIC"
clonedGui.Parent = player:FindFirstChild("PlayerGui")
end
end)

1 comment
What error are you running into?