|
| 04 Oct 2015 04:47 PM |
local Gui = script.Parent.AdminGui
function GiveGui(player) if player.PlayerGui:FindFirstChild(Gui.Name)~=nil then return end Gui:Clone().Parent=player.PlayerGui end
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if player.Name == "BuriedBlock" then print(1) GiveGui(player) else print("2") end end) end)
yes ik it's confusing, i made it a long time ago and decided i had a use for it. it doesn't seem to work. output gives no errors, doesn't print anything. (testing in online and also testing on my profile) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 04 Oct 2015 04:57 PM |
not exactly sure. I don't work with GUIs that much but here's a start:
function onPlayerEntered(newPlayer) if Player.Name.BuriedBlock then -- Not exactly sure if that will work
end
game.Players.ChildAdded:connect(onPlayerEntered)
Then put whatever you need to into there. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 04 Oct 2015 07:02 PM |
make sure its in a localscript then ill look over it
BEEP BEEP HERE COMES THE MEME CREEP |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 07:03 PM |
| When you make it a local script, you can use localplayer |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 07:06 PM |
also where it says if player.Name == "BuriedBlock" then print(1)
you forgot the quotes around the 1 BEEP BEEP HERE COMES THE MEME CREEP |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Oct 2015 08:40 PM |
b16 tried using a local script already also print doesn't need quotes unless you are printing a string so print(1) is fine |
|
|
| Report Abuse |
|
|