| |
|
|
| 08 Jul 2016 10:55 PM |
https://www.youtube.com/watch?v=E3r_lkZWaFg
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 09 Jul 2016 12:20 AM |
Recurring, please help me with a closing gui button script.
I have the script for when a player enters they see a welcome GUI, I don't know the script to the close button on the GUI.
This does not work.
local Box = script.Parent.Box local Button = script.Parent.OpenAndClose local Open = false
Button.MouseButton1Down:connect(function(open) if Open == false then Open = true Button.Text = "Close" Box.Visible = true Open = true elseif Open == true then Button.Text = "Close" if Open == true then Box.Visible = false Open = false end end end)
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:25 AM |
local Box = script.Parent:WaitForChild("Box") local Button = script.Parent:WaitForChild("OpenAndClose")
Button.MouseButton1Click:connect(function(open) Box.Visible = not Box.Visible if Box.Visible == true then Button.Text = "Close" else Button.Text = "Open" end end)
There you go.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:30 AM |
Here is what it looks like, but I can't get the gui to close. http://prntscr.com/bqnrts
It is a when entered GUI, but I would like the option for players to close it.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:31 AM |
Also, you're a very talented scripter/programmer.
Your skills are mad crazy, I watch your tutorials. :)
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:32 AM |
Your code was kinda confusing and I didn't read it all the way through, I thought you were trying to toggle visibility or something e.e
button.MouseButton1Click:connect(function() box:Destroy() end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jul 2016 12:36 AM |
It's not working.
Can I like give you the GUI and show you?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jul 2016 12:41 AM |
Added.
I hope you can help. :)
I'm also glad ROBLOX added the Team Create option.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:43 AM |
Fixed it. Yeah, TC is great.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:45 AM |
Thank you so much, appreciate it!
Mind if I friend you or is your friends list for people you know?
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:47 AM |
Yeah, I keep it limited. Sorry.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 12:50 AM |
No problem, same here. Just wanted to know.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 06:57 PM |
Recurring, whenever you reset, the GUI pops up again.
I would like it to be a one time thing - for when you first join the server.
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 07:02 PM |
That's because you have it in StarterGui. Put it in server storage. Server script in ServerScriptService:
game.Players.PlayerAdded:connect(function(player) game:GetService("ServerStorage"):WaitForChild("GUI"):Clone().Parent = player.PlayerGui end)
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 08:15 PM |
Thanks. :)
I really wish I could find a spot on your friends list.
|
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 09 Jul 2016 08:16 PM |
wait() pcall(function() local starterGui = game:GetService('StarterGui') starterGui:SetCore("TopbarEnabled", false) end)
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 08:16 PM |
If you want to interact/communicate with me more, join my group Nightmare Studios or PM me anytime.
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 08:20 PM |
Sure.
I added you to Team Create, so you could possibly fix it?
|
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 08:23 PM |
Fix what?
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2016 08:26 PM |
Whenever a player dies or resets, the GUI pops back up.
I couldn't find a way to fix it.
Keep in mind, I am a beginner scripter. ;/
|
|
|
| Report Abuse |
|
|