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

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

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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

0
Omg! Thank you for the help never knew of that! btw it was "Starter Gui" i was confused on that time. iiAngelie123 40 — 8y
Ad
Log in to vote
0
Answered by
itsJooJoo 195
8 years ago

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.

0
Okay i will make an example script then, as soon as possible  I will re edit it after iiAngelie123 40 — 8y

Answer this question