I have been trying to fix this for a few days, but it's no use. No matter how much I try, it won't fix. Here is my code:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.GettingCash.Value = true
if player.GettingCash.Value == true then
player.PlayerGui.lol123.Frame.Visible = true
end
end
end)
I checked in Studio and whenever I play the game in Studio, it has lol123 (ScreenGui) and works in studio. However in game, it won't work.

1 comment
Thank you! :D