The Gui does not Show Up When The ProximityPrompt Is Triggered
it only popup with the UI In Studio
local Trig = game.Workspace:WaitForChild(“Quest1Box”).ProximityPrompt
local Value = game.Workspace:WaitForChild(“Quest1”).Chests
Trig.Triggered:Connect(function()
script.Parent.Parent.Enabled = true
if Value.Value == 3 then
script.Parent.Parent.Gradient.TextLabel.Text = "Thank You So Much! For Returning My Treasures"
wait(3)
script.Parent.Parent.Gradient.TextLabel.Text = "I Have A Reward For You Take This DogeCoin!"
wait(0.2)
game.Players.LocalPlayer.leaderstats.DogeCoin.Value = game.Players.LocalPlayer.leaderstats.DogeCoin.Value + 6000
wait(1)
game.Workspace.Quest1.Parent = game.ReplicatedStorage
else
script.Parent.Gradient.TextLabel.Text = "No You Dont You Liar 😡"
script.Parent.NoButton.Visible = false
script.Parent.YesButton.TextLabel.Text = "Im Sorry 😭"
end
local Trig = game.Workspace:WaitForChild("Quest1Box").ProximityPrompt
local Value = game.Workspace:WaitForChild("Quest1").Chests
local GUI = script.Parent.Parent
Trig.Triggered:Connect(function()
GUI.Enabled = true
if Value.Value == 3 then
GUI.Gradient.TextLabel.Text = "Thank You So Much! For Returning My Treasures"
wait(3)
GUI.Gradient.TextLabel.Text = "I Have A Reward For You Take This DogeCoin!"
wait(0.2)
game.Players.LocalPlayer.leaderstats.DogeCoin.Value = game.Players.LocalPlayer.leaderstats.DogeCoin.Value + 6000
wait(1)
game.Workspace.Quest1.Parent = game.ReplicatedStorage
else
GUI.Gradient.TextLabel.Text = "No You Dont You Liar 😡"
GUI.NoButton.Visible = false
GUI.YesButton.TextLabel.Text = "Im Sorry 😭"
end
end)
But my question is specific. Where is the GUI, and its parents, and its children? It’d really help if you posted a screenshot of its location including the Workspace at the top, the items in the workspace that lead down to the GUI as well as the script.
It lets us know if the location of the GUI and script are the cause of the problem.
In Studio testing alll the scripting is handled by your computer.
In game all of the local stuff is handled by your computer. All the Server sided stuff (scripts) are handled by the Server computer.
I understood from your first post that the problem is the GUI isn’t showing up. I’m trying to get information that tells us the details about what may cause the issue.
This seems very odd. You move a copy (clone) of the chest to the workspace, then delete it when done. I’ve never saw a case where you move anything back to ReplicatedStorage or to it from the workspace. Not even sure a local script can do that …
I just tried a simple reformat without really testing or looking at it that deeply till now.