generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Turn Gui Visible by Owning Gamepass??

Previous Thread :: Next Thread 
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 09:45 PM
I can't find any models like this and I can't seem to script it as I'm very new to this kind of thing. Please could anyone script me this up?

Thanks for reading, have a nice day!
Report Abuse
FinalSource is online. FinalSource
Joined: 26 Mar 2017
Total Posts: 45
11 Apr 2017 09:53 PM
I can help you, u willing to pay?
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 09:54 PM
I'm trying to build a badge hunt without badges because I'm poor. I don't think I could afford to pay you lol
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
11 Apr 2017 09:54 PM
nice name op


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 09:55 PM
Disillusins, thank you.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
11 Apr 2017 09:55 PM
"poor"
60k rap
get bc and sell limiteds


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 09:56 PM
Disillusions* Darn it, I'm too tired for this xD
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
11 Apr 2017 09:56 PM
local scripts
guiObject.Visible
wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 10:02 PM
This didn't work:


game.Players.PlayerAdded:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,708659542) then
game.StarterGui.Checklist.Frame2.VIPTARDIS.visible = true
end


What am I doing wrong?
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
11 Apr 2017 10:03 PM
use a local script to access localplayers startergui


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 10:05 PM
I have no clue how to begin with a local script. Please could you do it? =p
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
11 Apr 2017 10:06 PM
nope :)

local player:
game.Players.LocalPlayer

gui:
localplayer.PlayerGui.PathToGuiThing



capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 10:12 PM
Yeah, I don't think I'm doing well with this lol


game.Players.LocalPlayer.PlayerAdded:connect(function(plr)
end)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,708659542) then
game.localplayer.StarterGui.Checklist.Frame2.VIPTARDIS.Visible = true
end
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
11 Apr 2017 10:14 PM
nonono local player is a VARIABLE

print(game.Players.LocalPlayer.Name) would print the name of local player


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 10:15 PM
Yeah, still not getting it lol. It's 4:15AM for me right now, better get to ###### xD
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
11 Apr 2017 10:15 PM
B e d. Why is that censored? :/
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
11 Apr 2017 10:16 PM
That's dumb but it's no mystery why it's censored.
Report Abuse
romanaisawesome is online. romanaisawesome
Joined: 25 May 2013
Total Posts: 996
11 Apr 2017 11:54 PM
game.Players.LocalPlayer.PlayerAdded:connect(function(plr)

if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,708659542) then
plr.PlayerGui.Checklist.Frame2.VIPTARDIS.Visible = true
end
end)


This siggy is classified
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
12 Apr 2017 06:35 AM
Thanks, but it doesn't work:


game.Players.LocalPlayer.PlayerAdded:connect(function(plr)

if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,708659542) then
plr.PlayerGui.Checklist.Frame2.VIPTARDIS.Visible = true
end
end)


I can't figure out what the problem is, as usual.
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
12 Apr 2017 06:36 AM
LOCAL PLAYER IS A VARIABLE!!!!!!!!!
___________________________________


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
12 Apr 2017 06:41 AM
I'm afraid screaming words isn't gonna help... lol
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
12 Apr 2017 06:47 AM
--how to access the player gui in localscript

game.Players.LocalPlayer.PlayerGui

--MAKE SURE ITS PLAYERGUI, NOT STARTERGUI




capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
12 Apr 2017 06:53 AM
Am I getting closer?


game.Players.LocalPlayer.PlayerAdded:connect(function(plr)

if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,708659542) then
game.Players.LocalPlayer.PlayerGui.Checklist.Frame2.VIPTARDIS.Visible = true
end
end)
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
12 Apr 2017 07:22 AM
u don't need line 1 and and the last line


capitalist atheist
Report Abuse
Tracking is not online. Tracking
Joined: 11 Sep 2011
Total Posts: 1852
12 Apr 2017 07:32 AM
Still isn't working... :/


if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,708659542) then
game.Players.LocalPlayer.PlayerGui.Checklist.Frame2.VIPTARDIS.Visible = true
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image