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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 27 |
|
|
| 28 Jul 2012 07:49 PM |
| who are the scripting helpers? |
|
|
| Report Abuse |
|
|
skylor033
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 27 |
|
| |
|
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 |
|
|
|
| 29 Jul 2012 12:51 AM |
"? what is the cannot plant error and how do i fix it"
Best. Quote. Ever. |
|
|
| Report Abuse |
|
|