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
Use a localscript insteed of a script then this will work.
local player = game.Players.LocalPlayer local RefreshTime = script.Parent.Refresh.Value script.Parent.ClickDetector.MouseClick:Connect(function() 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