Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I reset a GUI while ResetPlayerGUIOnSpawn is on false?

Asked by 4 years ago
Edited 4 years ago

Ok some people have told me that there is no way to do this but is there any actual solution to do it though?

0
Bro just change it true bro ???????????? ankurbohra 681 — 4y
0
Uhh no sorry some of my guis need the property to be on false Simpletton 82 — 4y
0
what type of gui you have?? like a case opening gui or inventory or what? I'm thinking you could store the positions of the guiobjects and retrieve them . 123nabilben123 499 — 4y

1 answer

Log in to vote
0
Answered by
VitroxVox 884 Moderation Voter
4 years ago

this is a localscript in StarterGui

the code:

local player = game:GetService("Players").LocalPlayer
local character = workspace:WaitForChild(player.Name)

if character then
    print("Okay found ur user")
else
    print("something went wrong couldn't find u")
end

character:FindFirstChild("Humanoid").Died:Connect(function()

    print("died")

end)

make sure you have a cloned gui placed inside the client so then you can still get it.

0
I was going to accept this but what was I supposed to do with "make sure you have a cloned gui placed inside the client so then you can still get it"? Simpletton 82 — 4y
0
I mean like put the gui inside lightning gui and then when a user joins clone it to the user so the original UI won't be edited and you can use it how much you want. VitroxVox 884 — 4y
Ad

Answer this question