Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Anyone know how to transfer GUI to a specific player? and stay their for the entire game

Hello! i'm currently developing a game it is been really good so far and i came up a problem that i can not solve by my own i'm planing to make like a Touch event and clone's the gui and transfer the parent it into the specific player that who touched it.

What i did is i transfer the GUI to the specific player to their PlayerGui and it Works! but the problem is when the player tries to reset their character the gui will be automatically deleted? and i don't want the brick to be touch constantly to get the Gui..

db = false

script.Parent.Touched:connect(function(player)
	if db == false then
		db = true
	local gui = script.Parent.ScreenGui:Clone()
	gui.Parent = game.Players:FindFirstChild(player.Parent.Name).PlayerGui
	wait(5)
	db = false
	end
end)

if anyone can describe it on how to do it? it would be really greatful! thanks!

~ Angie

2 answers

✓ Accepted answer

Under PlayerGui there is a property called "ResetPlayerGuiOnRespawn" set that to false and the Player will forever keep their Gui.

1 comment

0

Omg! Thank you for the help never knew of that! btw it was "Starter Gui" i was confused on that time.

This is not 'Scripting Requesters', we only help with code not working. We will not make a script for you, but we can fix scripts that don't work.

1 comment

0

Okay i will make an example script then, as soon as possible  I will re edit it after

This discussion is preserved as it was. New answers, comments, and votes are closed.