iiKamii
|
  |
| Joined: 31 Dec 2012 |
| Total Posts: 48 |
|
| |
|
|
| 10 Sep 2014 02:32 PM |
playeradded event check if player has the gamepass clone gui from somewhere into player's startergui.
tada |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 02:33 PM |
game.Players.PlayerAdded:connect(function(plr) if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 1286847) then game.ServerStorage.Gui:Clone().Parent = plr.PlayerGui end end) put the id as the pass id and game.ServerStorage with the location of the gui. |
|
|
| Report Abuse |
|
|
iiKamii
|
  |
| Joined: 31 Dec 2012 |
| Total Posts: 48 |
|
|
| 10 Sep 2014 03:08 PM |
@Mod
Thank youu, it works. ~ <333
But the gui disappears once they player resets? How do i make it stay? |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 03:12 PM |
| clone it into their startergui and playergui. |
|
|
| Report Abuse |
|
|
iiKamii
|
  |
| Joined: 31 Dec 2012 |
| Total Posts: 48 |
|
|
| 10 Sep 2014 03:15 PM |
@VerifiedName
Like this? :
game.Players.PlayerAdded:connect(function(plr) if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 1286847) then game.ServerStorage.Gui:Clone().Parent = plr.PlayerGui game.ServerStorage.Gui:Clone().Parent = plr.StarterGui end end) |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 03:19 PM |
i just remembered that player's dont have starterguis so no actually lol, try this
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 1286847) then game.ServerStorage.Gui:Clone().Parent = plr.PlayerGui end end) end) |
|
|
| Report Abuse |
|
|
iiKamii
|
  |
| Joined: 31 Dec 2012 |
| Total Posts: 48 |
|
| |
|
|
| 10 Sep 2014 03:59 PM |
Just add a local script in the startergui and add:
player = game.Players.LocalPlayer if player.Name == "yourname" then player.PlayerGui.yourguiname.Visible = true end
Make sure you have the gui's visible set in false, this may be crappy but i use this for now since I don't know any other way yet lol. |
|
|
| Report Abuse |
|
|
iiKamii
|
  |
| Joined: 31 Dec 2012 |
| Total Posts: 48 |
|
|
| 10 Sep 2014 05:16 PM |
@Roblox
I want this to work on everyone who buys the game pass, not just me? |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 05:22 PM |
| OHHHHHHHHHHHHH, i read wrong. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 05:24 PM |
Just do what I did but put what ModDeathRally9s said.
StarterGui>LocalScript
player = game.Players.LocalPlayer if (what ModDeathRally9 said) then --what his post was but don't include the playeradded event end |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 05:26 PM |
plr = game.Players.LocalPlayer if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr, 1286847) then game.ServerStorage.Gui:Clone().Parent = plr.PlayerGui end
Try this |
|
|
| Report Abuse |
|
|
iiKamii
|
  |
| Joined: 31 Dec 2012 |
| Total Posts: 48 |
|
|
| 10 Sep 2014 05:57 PM |
@Roblox
Now it doesn't even give me the GUI. :/ |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2014 09:38 PM |
If it doesn't work then do something with "Game:GetService("GamePassService"):PlayerHasPass(player, id)" and replace it from the other one that finds the asset. I can't really help out that much since I have to sleep :/ hopefully someone can help out. Oh btw id = your id of the game pass of course :P so yeah |
|
|
| Report Abuse |
|
|