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

Hello! So I got this Gui to work for a shop, but it is glitching. Please help ?

Asked by 3 years ago

Ok so the gui flicks on the screen a few times and dissapears. Here is the scripting II used for it

game.ReplicatedStorage.ShowGUI.onClientEvent:Connect(function()
    script.Parent.Frame.Visible = not script.Parent.Frame.Visible
end)

This is to seperate the scripts

game.workspace.Shop.Touched:Connect(function(hit)
    if game.Players:GetPlayerFromCharacter(hit.Parent) then
        game.ReplicatedStorage.ShowGUI:FireClient (game.Players:GetPlayerFromCharacter(hit.Parent))
    end
end)

Answer this question