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: ROBLOX broke this script? (Help)

Previous Thread :: Next Thread 
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
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
midnight_dreary is not online. midnight_dreary
Joined: 24 Feb 2016
Total Posts: 1200
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
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
10 Aug 2016 12:59 AM
@Midnight I forgot to mention no error pops up. And yes, I checked all that.
Report Abuse
PlasticRainbows is online. PlasticRainbows
Joined: 29 Apr 2012
Total Posts: 342
10 Aug 2016 01:54 AM
long time no see chandler : - ))





















































































































































































Report Abuse
kevini44 is online. 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 is not online. 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 is not online. 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
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
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 is not online. 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 is not online. 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
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
11 Aug 2016 02:37 PM
Oddly, these solutions work in studio but not in the actual game.
Report Abuse
Monadic is not online. 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 is not online. peIicans
Joined: 02 Nov 2013
Total Posts: 1148
11 Aug 2016 02:38 PM
haaa good one

sike


Report Abuse
Sub_Dev is not online. 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
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
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
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
15 Aug 2016 09:18 AM
ROBLOX breaks my menus 24/7 -_-
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
15 Aug 2016 09:21 AM
does the event fire? add a print statement to check
Report Abuse
freya02 is not online. 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 is not online. 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
chandler010 is not online. chandler010
Joined: 22 May 2011
Total Posts: 336
15 Aug 2016 12:43 PM
@Freya Still didn't work. And yes, it's a LocalScript.
Report Abuse
freya02 is not online. freya02
Joined: 04 Dec 2013
Total Posts: 272
02 Sep 2016 01:31 PM
FilteringEnabled ?


Report Abuse
freya02 is not online. freya02
Joined: 04 Dec 2013
Total Posts: 272
02 Sep 2016 01:32 PM
Try moving the item from ReplicatedStorage to lighting ?


Report Abuse
real_words is not online. real_words
Joined: 25 Feb 2016
Total Posts: 2184
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
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