powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 27 Nov 2013 10:13 PM |
local localplayer = game.Players.LocalPlayer local db = false
function LOAD() --Stuff that the rest of the script does
end if db == false then localplayer:WaitForCharacterLoad() LOAD() end |
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 27 Nov 2013 10:55 PM |
if db == false then db = true
but I dont know about your question, what is your objective? |
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 27 Nov 2013 10:59 PM |
The question is, how would I wait for the character to finish loading before the gun script starts running?
The if statement is just there, similar to a function, except I don't need to call it, and db starts out as false. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 11:01 PM |
use this
player = blah
while (not player.Character.Head) do wait(0.1) end |
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 27 Nov 2013 11:06 PM |
| Didn't work. I still need to drop and pickup the gun. |
|
|
| Report Abuse |
|
|