heres the code i dont know why it wont refresh
local RefreshTime = script.Parent.Refresh.Value
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local Textlabelforthingy = player.PlayerGui.ScreenGui.TextLabel
Textlabelforthingy.Text = "the part has been clicked"
end)
local function RefreshText()
local Textlabelforthingy = player.PlayerGui.ScreenGui.TextLabel
Textlabelforthingy.Text = "."
end
while true do
wait(RefreshTime)
RefreshText()
end

6 comments
Are you using a localscript or a script?
i dont know
script
if you use a localscript it would be a lot easier then at the top of the localscript you can add local player = game.Players.LocalPlayer
Always use a LOCALSCRIPT for Gui's. Don't use server scripts as it will happen for the rest of the players.
Is this in StarterGui?