BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 21 Jun 2014 12:43 AM |
game.Players.BladeXE.PlayerGui.Gui.SelectTeams.Frame.ImageButton.LocalScript:2: attempt to index a nil value
lp = game.Players.LocalPlayer locations = game.Workspace.MAP[script.Parent.Parent:findFirstChild("Value").Value]:getChildren() script.Parent.MouseButton1Click:connect(function() lp.Character:MoveTo(game.Workspace.BluSniperButton.Position) wait(3) sniper = game.Lighting.Sniper:clone() sniper.Parent = lp.Backpack lp.CameraMode = "LockFirstPerson" lp.Character.Humanoid.WalkSpeed = 17 wait(3) loc = locations[math.random(1,#locations)] lp.Character:MoveTo(loc.Position) script.Parent.Parent.Parent.Visible = false lp.PlayerGui.ScreenGuiA.Info.Visible = true lp.CharacterAdded:connect(function() repeat wait() until lp.PlayerGui.ScreenGuiA.Info lp.PlayerGui.ScreenGuiA.Info.Visible = true end) end) |
|
|
| Report Abuse |
|
|
|
| 21 Jun 2014 12:49 AM |
| You shouldn't be using a localscript to teleport the character. That isn't the issue here though. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
| |
|
|
| 21 Jun 2014 12:52 AM |
LocalScripts sometimes load the player does. Just add
repeat wait(1) until game.Players.LocalPlayer
to the top |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 21 Jun 2014 12:52 AM |
| I'll do my best to figure it out myself. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 21 Jun 2014 12:58 AM |
fixed myself I now have a working TF2 game as soon as I sort out the team glitch :P |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
| |
|
jasondee1
|
  |
| Joined: 26 Jul 2008 |
| Total Posts: 8002 |
|
|
| 21 Jun 2014 01:00 AM |
Ooooh.
That sounds extraordinaire (mimic spy voice) |
|
|
| Report Abuse |
|
|
jasondee1
|
  |
| Joined: 26 Jul 2008 |
| Total Posts: 8002 |
|
| |
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 21 Jun 2014 01:10 AM |
Cool! Can you build or script? If you can build, try making a map like 5Gorge if you can script, I have a shop GUI that needs work. |
|
|
| Report Abuse |
|
|