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: RankGui Hiding trouble

Previous Thread :: Next Thread 
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 06:20 PM
Debounce = true
Toggled = false--Screen = script.Parent.Parent.Parent
Char = script.Parent.Parent.Parent.Parent.Parent.Character
function onButtonClicked()
if (Debounce == true) then
if Toggled ~= true then
select()
Debounce = false
Toggled = true
print("work")
Char.Head.Rank.Frame.Visible = false
script.Parent.Text = "SHOW"
wait(.65)
Debounce = true
else
select()
Debounce = false
Char.Head.Rank.Frame.Visible = true
Toggled = false
script.Parent.Text = "HIDE"
wait(.65)
Debounce = true
end
end
end
script.Parent.MouseButton1Click:connect(onButtonClicked)


All the values are correct.. yet the GUI does not hide? Its a RankGui located in ReplicatedStorage > GuiFiles and is cloned to the Character whenever the player arrives.
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 09:26 PM
.
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 09:47 PM
\
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
23 Jan 2015 10:01 PM
try using a local script
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
23 Jan 2015 10:06 PM

script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.PlayerGui.GUINAME.Text = "SHOW"
game.Players.LocalPlayer.Character.Head.GUI.Visible = true
script.Parent.Text = "HIDE"
else
game.Players.LocalPlayer.Character.Head.GUI.Visible = false
script.Parent.Text = "SHOW"
end
end)







probably not the best way but heh it works
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 10:09 PM
^ actually it doesn't work.
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
23 Jan 2015 10:11 PM
did you change the gui name
and add the GUINAME to the billboard gui
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 10:21 PM
script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.PlayerGui.PoliceGui.Menus.NoTitle.Text = "SHOW"
game.Players.LocalPlayer.Character.Head.Rank.Frame.Visible = true
script.Parent.Text = "HIDE"
else
game.Players.LocalPlayer.Character.Head.Rank.Frame.Visible = false
script.Parent.Text = "SHOW"
end
end)


red line under = for if game.Players.LocalPlayer.PlayerGui.PoliceGui.Menus.NoTitle.Text = "SHOW"


Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
23 Jan 2015 10:24 PM
post output?
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 10:29 PM
Can't, I get "Debugger can be attached to a script or a module script" and it doesnt load (test in studio)
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
23 Jan 2015 10:30 PM
go to settings and uncheck lua debugger
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 10:32 PM
23:31:47.531 - Use the new http api: no
QPaint Started
23:32:07.342 - DataModel Loading http://www.roblox.com/asset/?id=193725581
//AntiVirus V3.0.2 Loaded//
-----------------------
-- Accessing other items...
Done.
-----------------------
TRIANGLE WORKSHOP: GETTING EXISTING VALUES
VALUES GATHERED
Ro-Defender has removed a total of 2743 viruses and junk items from your games!
23:32:07.620 - httpGet http://www.roblox.com/asset/?id= failed. Trying again. Error: HTTP 400 (Input string was not in a correct format.). Elapsed time: 1.06613
23:32:07.622 - Content failed for http://www.roblox.com/asset/?id= because HTTP 400 (Input string was not in a correct format.)
23:32:07.622 - Content failed because HTTP 400 (Input string was not in a correct format.)
23:32:11.779 - Auto-Saving...
QPaint Started
//AntiVirus V3.0.2 Loaded//
-----------------------
-- Accessing other items...
Done.
-----------------------
23:32:12.703 - Plugin attempting to show toolbar that does not exist - 62
Ro-Defender has removed a total of 2743 viruses and junk items from your games!
23:32:14.420 - Touched is not a valid member of Model
23:32:14.421 - Script 'Workspace.Forcefield.Manager', Line 13
23:32:14.422 - Stack End
23:32:14.423 - Texture is not a valid member of Part
23:32:14.423 - Script 'Workspace.Door.Script', Line 2
23:32:14.424 - Stack End
23:32:14.424 - Texture2 is not a valid member of Part
23:32:14.425 - Script 'Workspace.Door.Script', Line 2
23:32:14.425 - Stack End
23:32:14.426 - Texture is not a valid member of Part
23:32:14.426 - Script 'Workspace.Door.Script', Line 2
23:32:14.427 - Stack End
23:32:14.427 - Texture2 is not a valid member of Part
23:32:14.428 - Script 'Workspace.Door.Script', Line 2
23:32:14.428 - Stack End
23:32:14.431 - Texture is not a valid member of Part
23:32:14.431 - Script 'Workspace.Door.Script', Line 2
23:32:14.431 - Stack End
23:32:14.432 - Texture2 is not a valid member of Part
23:32:14.432 - Script 'Workspace.Door.Script', Line 2
23:32:14.432 - Stack End
23:32:14.488 - Attempt to connect failed: Passed value is not a function
23:32:14.489 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver', Line 11
23:32:14.489 - Stack End
23:32:14.490 - CommChannels is not a valid member of Workspace
23:32:14.490 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.Command', Line 5
23:32:14.491 - Stack End
23:32:14.492 - CommChannels is not a valid member of Workspace
23:32:14.492 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.Positio', Line 5
23:32:14.493 - Stack End
23:32:14.494 - CommChannels is not a valid member of Workspace
23:32:14.494 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.Positio', Line 5
23:32:14.495 - Stack End
23:32:14.495 - CommChannels is not a valid member of Workspace
23:32:14.496 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.Positio', Line 5
23:32:14.496 - Stack End
23:32:14.497 - Frame is not a valid member of ScreenGui
23:32:14.497 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.Script', Line 2
23:32:14.497 - Stack End
23:32:14.498 - Character is not a valid member of ScreenGui
23:32:14.498 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.HEALTH.', Line 1
23:32:14.499 - Stack End
23:32:14.501 - CommChannels is not a valid member of Workspace
23:32:14.501 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.HUD.COMM.Sc', Line 5
23:32:14.502 - Stack End
23:32:14.503 - GetRankInGroup is not a valid member of Script
23:32:14.503 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 5
23:32:14.503 - Stack End
23:32:14.504 - GetRankInGroup is not a valid member of Script
23:32:14.505 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.505 - Stack End
23:32:14.506 - IsInGroup is not a valid member of Script
23:32:14.506 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.507 - Stack End
23:32:14.508 - IsInGroup is not a valid member of Script
23:32:14.508 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.509 - Stack End
23:32:14.510 - IsInGroup is not a valid member of Script
23:32:14.510 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.511 - Stack End
23:32:14.512 - IsInGroup is not a valid member of Script
23:32:14.512 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 7
23:32:14.512 - Stack End
23:32:14.513 - GetRankInGroup is not a valid member of Script
23:32:14.514 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.514 - Stack End
23:32:14.515 - GetRankInGroup is not a valid member of Script
23:32:14.516 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 5
23:32:14.516 - Stack End
23:32:14.517 - GetRankInGroup is not a valid member of Script
23:32:14.517 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.517 - Stack End
23:32:14.518 - GetRankInGroup is not a valid member of Script
23:32:14.518 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.519 - Stack End
23:32:14.520 - GetRankInGroup is not a valid member of Script
23:32:14.520 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 6
23:32:14.520 - Stack End
23:32:14.521 - GetRankInGroup is not a valid member of Script
23:32:14.521 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Init', Line 5
23:32:14.522 - Stack End
23:32:14.525 - IsInGroup is not a valid member of Script
23:32:14.526 - Script 'ServerScriptService.EmpireWorksMain.HelmetGiver.Choose.Atta', Line 8
23:32:14.526 - Stack End
23:32:14.529 - Medkit is not a valid member of ServerStorage
23:32:14.529 - Script 'ServerScriptService.Group Tools', Line 7
23:32:14.529 - Stack End
23:32:14.633 - Http requests are not enabled
23:32:14.634 - Script 'ServerScriptService.AdministratorSettings', Line 332 - global runtrelloupdater
23:32:14.636 - Script 'ServerScriptService.AdministratorSettings', Line 365
23:32:14.638 - Stack End
TRIANGLE WORKSHOP: GETTING EXISTING VALUES
VALUES GATHERED
Current version: 547 | Found version: 547
23:32:15.670 - Place has to be opened with Edit button to access DataStores
23:32:15.671 - ReplicatedStorage.Leaderboards.RichPeople.Script:5: attempt to index upvalue 'ods' (a nil value)
23:32:15.671 - Stack Begin
23:32:15.673 - Script 'ReplicatedStorage.Leaderboards.RichPeople.Script', Line 5 - global UpdateLeaderboards
23:32:15.674 - Script 'ReplicatedStorage.Leaderboards.RichPeople.Script', Line 24
23:32:15.675 - Stack End
23:32:15.676 - Place has to be opened with Edit button to access DataStores
23:32:15.676 - ReplicatedStorage.Leaderboards.MostCrime.Script:5: attempt to index upvalue 'ods' (a nil value)
23:32:15.676 - Stack Begin
23:32:15.677 - Script 'ReplicatedStorage.Leaderboards.MostCrime.Script', Line 5 - global UpdateLeaderboards
23:32:15.677 - Script 'ReplicatedStorage.Leaderboards.MostCrime.Script', Line 24
23:32:15.678 - Stack End
LinkedLeaderboard script version 5.00 loaded
Epix Inc. Server Suite - Running Plugin: Server: Example Plugin
Hello World from inside an example plugin!
Epix Inc. Server Suite - ~= Epix Inc. Not Everything is so Black and White. This script was made by Sceleratis. Scripth is Kohltastrophe. =~
Epix Inc. Server Suite -
Epix Inc. Server Suite - "Your time is limited, so don't waste it living someone else's life." - Steve Jobs
Epix Inc. Server Suite -
23:32:18.958 - Place has to be opened with Edit button to access DataStores
23:32:18.966 - httpGet http://www.roblox.com/asset/?id= failed. Trying again. Error: HTTP 400 (Input string was not in a correct format.). Elapsed time: 0.556992
23:32:19.071 - Content failed for http://www.roblox.com/asset/?id= because HTTP 400 (Input string was not in a correct format.)
23:32:19.072 - Content failed because HTTP 400 (Input string was not in a correct format.)
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
23 Jan 2015 10:35 PM
oh I feel stupid

add another = sign where the error is
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
23 Jan 2015 10:39 PM
Still wont work :/

script.Parent.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.PlayerGui.PoliceGui.Menus.NoTitle.Text == "SHOW" then
game.Players.LocalPlayer.Character.Head.Rank.Frame.Visible = true
script.Parent.Text = "HIDE"
else
game.Players.LocalPlayer.Character.Head.Rank.Frame.Visible = false
script.Parent.Text = "SHOW"
end
end)
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
24 Jan 2015 07:28 AM
//
Report Abuse
EliteDerper is not online. EliteDerper
Joined: 05 Feb 2012
Total Posts: 2288
24 Jan 2015 07:39 AM
Is it a local script in Starterpack / gui ?
Report Abuse
TiberSeptims is not online. TiberSeptims
Joined: 14 Dec 2012
Total Posts: 911
24 Jan 2015 07:41 AM
Its a local script inside the button to click
Report Abuse
EliteDerper is not online. EliteDerper
Joined: 05 Feb 2012
Total Posts: 2288
24 Jan 2015 07:52 AM
Try adding a wait() or a wait(1) at the beginning of your script?
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
24 Jan 2015 10:38 AM
uhh, I don't think localscripts work in workspace


R$3,055
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