Hello there Im working on ProximityPrompt for a spawner but with my close button scirpt it dosent show the promt any more
This is the close button scirpt
game.ReplicatedStorage.MakeGuiAppear.OnClientEvent:Connect(function()
script.Parent.Enabled = true
end)
any help or info would be good
Recording Down Below
https://i.gyazo.com/07bf093ed9a52c7461d681cb7a07bd19.mp4
Hm… not sure what’s going on here. Try printing when you click the close button?
1 Like
Ok so I came up with an idea and try this hopefully this will work?
Script inside the Prompt:
local MakeGuiAppear = game.ReplicatedStorage:WaitForChild("MakeGuiAppear")
script.Parent.Triggered:Connect(function(player)
MakeGuiAppear:FireClient(player, true) -- Sending the player, prompt visibility, and gui visibilty
end)
And inside the LocalScript of the GUI:
local MakeGuiAppear = game.ReplicatedStorage:WaitForChild("MakeGuiAppear")
MakeGuiAppear.OnClientEvent:Connect(function(guiVisibility)
script.Parent.Enabled = guiVisibility
end)
script.Parent.CloseButton.MouseButton1Click:Connect(function() -- For an example
script.Parent.Enabled = false
end)
Really sorry for being late