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: Gui system wierd glitch.

Previous Thread :: Next Thread 
skylor033 is not online. skylor033
Joined: 04 Jun 2012
Total Posts: 27
27 Jul 2012 11:28 PM
I know just pasting the whole script is unlikely to get a response,but i am stumped. I am just beginning scripting and am making my first map. I got a class system gui on the catalog.

when i start the game in solo play it works almost perfectly. But when i play it in a regular server it does not show up. I have no clue what is wrong with it but i think the source of the problem lies in this particular script somewhere.

I have this particular script because it runs from the workspace instead of the starter gui. I cannot place it in the starter gui or the weapons that activate by local script will automaticly be placed in the inventory.

As of right now i am very confused because it works fine in solo play. i would be greatful if you would browse through this and see if there is somthing amiss. thankyou.


shared.classes=script.CLASSES:GetChildren()
script.Name="ClassGUI"
posx=0
posy=0
for a=1, #shared.classes do
button=script.chooser.Frame.Frame.Class:Clone()
button.Parent=script.chooser.Frame.Frame
button.Name=shared.classes[a].Name
button.Text=shared.classes[a].Name
button.Position=UDim2.new(0,5+100*posx,0,35+25*posy)
if posx==0 then
posx=1
else
posx=0
posy=posy+1
end
end
script.chooser.Frame.Frame.Class:Remove()

function respawn(plr)
if plr.class.Value~="none" then
tools=script.CLASSES:findFirstChild(plr.class.Value).TOOLS:GetChildren()
for q=1, #tools do
toop=tools[q]:Clone()
toop.Parent=plr.Backpack
end
plr.Character.Humanoid.MaxHealth=script.CLASSES:findFirstChild(plr.class.Value).MaxHealth.Value
plr.Character.Humanoid.Health=script.CLASSES:findFirstChild(plr.class.Value).MaxHealth.Value
end
but=script.button:Clone()
but.Parent=plr.PlayerGui
but.Script.Disabled=false
end


function oe(plr)
repeat wait() until plr
local mon=Instance.new("StringValue")
mon.Parent=plr
mon.Name="class"
mon.Value="none"

repeat wait() until plr:findFirstChild("PlayerGui")
choose=script.chooser:Clone()
choose.Parent=plr.PlayerGui
choose.Script.Disabled=false

but=script.button:Clone()
but.Parent=plr.PlayerGui
but.Script.Disabled=false

plr.CharacterAdded:connect(function() respawn(plr) end)
end

game.Players.PlayerAdded:connect(oe)
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
28 Jul 2012 12:01 AM
"posy=posy+1"

I got the old "Cannot add plants" error.
Report Abuse
skylor033 is not online. skylor033
Joined: 04 Jun 2012
Total Posts: 27
28 Jul 2012 12:14 AM
? what is the cannot add plants error. is there any way to fix it.
this is not the entire script just f,w,i only one of the three or four that work in tandom.
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
28 Jul 2012 10:44 AM
I laughed so hard. Consider asking Scripting HELPers though. And don't bring it here even if it seems like no one's helping. Continue to bump occasionally when it slips off the front page. You'll end up with an answer eventually.
Report Abuse
skylor033 is not online. skylor033
Joined: 04 Jun 2012
Total Posts: 27
28 Jul 2012 07:49 PM
who are the scripting helpers?
Report Abuse
skylor033 is not online. skylor033
Joined: 04 Jun 2012
Total Posts: 27
28 Jul 2012 07:55 PM
nvm
Report Abuse
BloxHound is not online. BloxHound
Joined: 30 Oct 2009
Total Posts: 403
28 Jul 2012 08:06 PM
@aboy5643

Hahaha I bet it was so funny it made your day huh?
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
29 Jul 2012 12:51 AM
"? what is the cannot plant error and how do i fix it"

Best. Quote. Ever.
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