I have a script it is supposed to refresh your character. I would like for it to be such as : "once u click the button it refreshes your character then it says a countdown from 2 minutes then after 2 mins is up you can use it again." heres the script so far:
plr = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
pcall(function()
local Pos = plr.Character:GetPrimaryPartCFrame()
plr:LoadCharacter()
plr.Character:SetPrimaryPartCFrame(Pos)
if plr.Character:FindFirstChild("ForceField") then
plr.Character["ForceField"]:Destroy()
end
end)
end)
I don't know if this is possible I tried so many things such as adding more functions but couldn't get it to work.

2 comments
but is there a way to change the text to countdown from 2 minutes?
Yea, you can use a for loop and a wait(1)