I have it so when a localplayer clicks this block it gets destroyed and a gui pops up and after a few seconds the block gets destroyed . But when the player rejoins the block comes back. How do i make it so even tho the local player rejoins the block is still destroyed?
script.Parent.ClickDetector.MouseClick:Connect(function(mouse)
local clone = script.TalkingGui:Clone()
clone.Parent = mouse.PlayerGui
wait(4)
game.Workspace.SpinPart:Destroy()
end)
script.Parent.MouseButton1Down:Connect(function()
script.Parent.Parent.Visible = false
end)

3 comments
Can you make an attempt? See https://idownvotedbecau.se/NoAttempt for more information
Literally. Google. "save after leaving game roblox" or smt like that
You can solve this problem via DataStores (Here's a quick tutorial: https://www.youtube.com/watch?v=DkYupSBUpes)