vracto
(vracto)
September 6, 2022, 5:39pm
#1
IN my place I clone a surfaceGUI and make the adornee a part in the Workspace, and then put it into a ScreenGUI. This works fine, but when I reset all the Surface GUIs get deleted. I’ve disabled ResetOnSpawn, and it still disappears. How so I fix this?
Media
Video
Script
local claimUI = script.SurfaceGui
game:GetService("ReplicatedStorage").PlotSys.events.createClaimUI.OnClientEvent:Connect(function(part)
local clone = claimUI:Clone()
clone.Name = part.Parent.Name
clone.Adornee = part
clone.Parent = script.Parent.claimUI
end)
FurukanDev
(TheFurukanDev)
September 6, 2022, 5:45pm
#2
i did not find any good solution for this, just do what you do again when player dies.
Are you sure ResetOnRespawn is turned off on the ScreenGui and not only the SurfaceGui?
vracto
(vracto)
September 6, 2022, 5:56pm
#4
ResetOnSpawn is off on both. It still doesn’t work tho.
FurukanDev
(TheFurukanDev)
September 6, 2022, 5:57pm
#5
did you tried my answer ?
This text will be blurred
vracto
(vracto)
September 6, 2022, 5:58pm
#6
No not yet, just tried to see if it wasn’t working because it wasn’t replicated onto the server but it still doesn’t work. Will try yours soon.
Have you tried making sure ResetOnSpawn is false? You could add clone.ResetOnSpawn = false
inside the function
also by any chance is ResetOnSpawn turned off the clone (too)?
vracto
(vracto)
September 6, 2022, 6:16pm
#8
Yes, it’s off in the clone too.
try adding clone.ResetOnSpawn = false
and see if it works
vracto
(vracto)
September 6, 2022, 6:23pm
#10
Nope that doesn’t work. The problem still persists
If you want, you could disable respawning/resetting so it wont dissapear
vracto
(vracto)
September 6, 2022, 7:01pm
#12
That’s is not going to work in my use case.