Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Dec 2014 08:04 PM |
doesn't work please fix the table '_G.bombs' is positions of bombs
while true do wait() for i, v in pairs(_G.bombs) do if (game.Players.LocalPlayer.Character.Torso.Position - v).magnitude < 50 then script.Parent.Main.Blindness.Visible = true end end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Dec 2014 08:07 PM |
The _G.bombs table was set on that same client, correct? If you set it from the sever (non-local script) then only the server has access to it. |
|
|
| Report Abuse |
|
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Dec 2014 08:09 PM |
how can I set it by the client.
when everybody is placing bombs |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Dec 2014 08:10 PM |
| Just put all the bombs in some model like workspace.Bombs and read from that. |
|
|
| Report Abuse |
|
|
Cauz
|
  |
| Joined: 28 Oct 2014 |
| Total Posts: 85 |
|
|
| 08 Dec 2014 08:11 PM |
GlobalSettings.clientAdded:connect(function(client) client:AddToTheTableWhereStuffIs(table) end)) |
|
|
| Report Abuse |
|
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
| |
|
Cauz
|
  |
| Joined: 28 Oct 2014 |
| Total Posts: 85 |
|
| |
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Dec 2014 08:15 PM |
| unknown global 'globalsettings' |
|
|
| Report Abuse |
|
|
Cauz
|
  |
| Joined: 28 Oct 2014 |
| Total Posts: 85 |
|
|
| 08 Dec 2014 08:16 PM |
| make it GlobalSettings not globalsettings |
|
|
| Report Abuse |
|
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Dec 2014 08:16 PM |
what does 'AddToTheTableWhereStuffIs' do. Do i put the table here
I have never worked with global settings |
|
|
| Report Abuse |
|
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Dec 2014 08:17 PM |
It's been 'GlobalSettings' I should probably use proper grammar. |
|
|
| Report Abuse |
|
|
Cauz
|
  |
| Joined: 28 Oct 2014 |
| Total Posts: 85 |
|
|
| 08 Dec 2014 08:18 PM |
globalsettings is for advanced personal only it advanced k ad script
GlobalSettings:Load()
then the other one i say |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Cauz
|
  |
| Joined: 28 Oct 2014 |
| Total Posts: 85 |
|
|
| 08 Dec 2014 08:19 PM |
| i dont even live under bridge and not green u green noob |
|
|
| Report Abuse |
|
|
Gladii
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 1713 |
|
|
| 08 Dec 2014 08:19 PM |
I figured. Two non-existent in one script. |
|
|
| Report Abuse |
|
|