I do not see the GUI when I used that. When I checked on the studio, I saw the position moving and it was visible when my mouse entered the area of the GUI, but it wasn’t showing on my screen.
I only put the code that runs that system. But I’ll do full code.
local button = script.Parent
local enabled = false
local cooldown = script.Parent.Cooldown
local savedata = game.ReplicatedStorage.SaveData
button.MouseButton1Click:Connect(function(player)
if enabled == false and cooldown.Value == 0 then
savedata:FireServer(player)
enabled = true
button.Text = "Saving your data, do not leave the game"
wait(0.2)
button.Text = "Saving your data, do not leave the game."
wait(0.2)
button.Text = "Saving your data, do not leave the game.."
wait(0.2)
button.Text = "Saving your data, do not leave the game..."
wait(0.2)
button.Text = "Saving your data, do not leave the game"
wait(0.2)
button.Text = "Saving your data, do not leave the game."
wait(0.2)
button.Text = "Saving your data, do not leave the game.."
wait(0.2)
button.Text = "Saving your data, do not leave the game..."
wait(0.2)
button.Text = "Saving your data, do not leave the game"
wait(0.2)
button.Text = "Saving your data, do not leave the game."
wait(0.2)
button.Text = "Saving your data, do not leave the game.."
wait(0.2)
button.Text = "Saving your data, do not leave the game..."
wait(0.2)
button.Text = "Saving your data, do not leave the game"
wait(0.2)
button.Text = "Saving your data, do not leave the game."
wait(0.2)
button.Text = "Saving your data, do not leave the game.."
wait(0.2)
button.Text = "Saving your data, do not leave the game..."
wait(0.2)
button.Text = "Saving your data, do not leave the game"
wait(0.2)
button.Text = "Saving your data, do not leave the game."
wait(0.2)
button.Text = "Saving your data, do not leave the game.."
wait(0.2)
button.Text = "Saving your data, do not leave the game..."
wait(0.2)
button.Text = "Saving your data, do not leave the game"
wait(0.2)
button.Text = "Saving your data, do not leave the game."
wait(0.2)
button.Text = "Saving your data, do not leave the game.."
wait(0.2)
button.Text = "Saving your data, do not leave the game..."
wait(0.2)
button.Text = "Data successfully saved!"
wait(1)
button.Text = "Manually Save Data"
enabled = false
cooldown.Value = 60
elseif cooldown.Value <= 60 and cooldown.Value > 1 and enabled == false then
enabled = true
button.Text = "You must wait "..cooldown.Value.." more seconds until you can save again!"
wait(1)
button.Text = "Manually Save Data"
enabled = false
end
end)
button.MouseEnter:Connect(function()
script.Parent.Parent.Hint.Visible = true
end)
button.MouseLeave:Connect(function()
script.Parent.Parent.Hint.Visible = false
end)
local mouse = game.Players.LocalPlayer:getMouse()
mouse.Move:Connect(function()
script.Parent.Parent.Hint.Position = UDim2.new(mouse.X, 0, mouse.Y, 0)
end)
The one called “Hint” is not showing up on screen. But when I check properties it’s visible but it just won’t show.
I would like to note that this isn’t my preferred way of doing this, because the mouse would be in the dead center of the TextLabel. I am going to further investigate this myself.