|
| 10 Aug 2016 12:53 AM |
So, when I went to test my WIP game, the menu gui was broke. I tried multiple times to fix it and revert versions to see if it would work. Keep in mind, it worked a few days ago and I think there was a update recently
Script:
function onClick() game.Players.LocalPlayer.PlayerGui.LocalScript.Disabled = false game.ReplicatedStorage.IntroGUI.Parent = game.Players.LocalPlayer.PlayerGui script.Parent.Parent:Destroy() end
script.Parent.MouseButton1Down:connect(onClick) |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 12:56 AM |
Can you post the error that comes up, if any? Without it you're leaving us to just guess what could be wrong. So far what I'm seeing is the "script.Parent" part. Did you move the script? Are you sure script.Parent is still a button?
|
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 12:59 AM |
| @Midnight I forgot to mention no error pops up. And yes, I checked all that. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 01:54 AM |
long time no see chandler : - ))
|
|
|
| Report Abuse |
|
|
kevini44
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 129 |
|
|
| 10 Aug 2016 02:00 AM |
Just insert a char loader like (in thr fist line od ur code): While gane.Players.localplayer.Character==nil do wait (2) end |
|
|
| Report Abuse |
|
|
pullman45
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 2891 |
|
|
| 10 Aug 2016 03:12 AM |
| Oh hey chandler, how much has been done after open beta? |
|
|
| Report Abuse |
|
|
Poine
|
  |
| Joined: 14 Aug 2011 |
| Total Posts: 391 |
|
|
| 10 Aug 2016 03:16 AM |
Put a 2 or 3 sec wait in the beginning
|
|
|
| Report Abuse |
|
|
|
| 10 Aug 2016 10:08 PM |
@kevini44 Sadly, it didn't work. @Pull Not much. @Pione Didn't work either.
I'm pretty sure it has something to do with all the updates. But, not sure. |
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
|
| 10 Aug 2016 10:11 PM |
might wanna clone then parent unless u want one player to have this gui
game.ReplicatedStorage.IntroGUI.Parent = game.Players.LocalPlayer.PlayerGui
correct:
game.ReplicatedStorage.IntroGUI:Clone().Parent = game.Players.LocalPlayer.PlayerGui
|
|
|
| Report Abuse |
|
|
DevVince
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 9245 |
|
|
| 10 Aug 2016 10:15 PM |
--Might help to check for eveything? p = game.Players.LocalPlayer rs = game.ReplicatedStorage pg = p.PlayerGui ls = pg:WaitForChild'LocalScript' gui = rs:WaitForChild'IntroGUI' print'Everything found, button should work now?'
script.Parent.MouseButton1Down:connect(function() ls.Disabled = false gui:Clone().Parent = pg script.Parent.Parent:Destroy() end) |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2016 02:37 PM |
| Oddly, these solutions work in studio but not in the actual game. |
|
|
| Report Abuse |
|
|
Monadic
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
|
| 11 Aug 2016 02:37 PM |
Or maybe... YOU'RE the one that's broken. |
|
|
| Report Abuse |
|
|
peIicans
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1148 |
|
| |
|
Sub_Dev
|
  |
| Joined: 16 Jun 2013 |
| Total Posts: 553 |
|
|
| 11 Aug 2016 02:41 PM |
As DevVince said.
p = game.Players.LocalPlayer rs = game.ReplicatedStorage pg = p.PlayerGui ls = pg:WaitForChild("LocalScript") gui = rs:WaitForChild("IntroGUI") print'Everything found, button should work now?'
script.Parent.MouseButton1Down:connect(function() ls.Disabled = false gui:Clone().Parent = pg script.Parent.Parent:Destroy() end)
It's only working on your client - correct. You sure it's in a localscript?
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 10:43 PM |
| @Dev Yes. If it wasn't coded correctly, it wouldn't have worked about a week ago. |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2016 09:18 AM |
| ROBLOX breaks my menus 24/7 -_- |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2016 09:21 AM |
| does the event fire? add a print statement to check |
|
|
| Report Abuse |
|
|
freya02
|
  |
| Joined: 04 Dec 2013 |
| Total Posts: 272 |
|
|
| 15 Aug 2016 09:59 AM |
pcall(script.Parent.MouseButton1Down:connect(function() game.Players.LocalPlayer:WaitForChild("PlayerGui").LocalScript.Disabled = false game.ReplicatedStorage.IntroGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") script.Parent.Parent:Destroy() end))
--If this doesn't work, tell me if : Where is located the script ? (StarterGui ? ReplicatedFirst ?)
--And is it a loading screen ?
|
|
|
| Report Abuse |
|
|
freya02
|
  |
| Joined: 04 Dec 2013 |
| Total Posts: 272 |
|
|
| 15 Aug 2016 10:00 AM |
Oh and yeah, is it a localscript ?! LocalPlayer only works on LocalScript which executes on player computer.
|
|
|
| Report Abuse |
|
|
|
| 15 Aug 2016 12:43 PM |
| @Freya Still didn't work. And yes, it's a LocalScript. |
|
|
| Report Abuse |
|
|
freya02
|
  |
| Joined: 04 Dec 2013 |
| Total Posts: 272 |
|
| |
|
freya02
|
  |
| Joined: 04 Dec 2013 |
| Total Posts: 272 |
|
|
| 02 Sep 2016 01:32 PM |
Try moving the item from ReplicatedStorage to lighting ?
|
|
|
| Report Abuse |
|
|
|
| 02 Sep 2016 01:58 PM |
repeat wait() until game.Players.LocalPlayer local p = game.Players.LocalPlayer local c = p.Character or p.CharacterAdded
function wfc(parent,object) return parent,object end
ls = wfc(c,'LocalScript')
script.Parent.MouseButton1Down:connect(function() ls.Disabled = false gui:Clone().Parent = p.PlayerGui script.Parent.Parent:Destroy() end)
|
|
|
| Report Abuse |
|
|