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 » Scripting Helpers
Home Search
 

Re: I think Studio has a bug, because this is not working

Previous Thread :: Next Thread 
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 09:53 AM
wait(1)
found = script.Parent.Parent.Parent.Character:FindFirstChild("In")
while true do
if found == nil then
game.Workspace.GamePlayManager.P1Out.Value = true
else
game.Workspace.GamePlayManager.P1Out.Value = false
end
wait()
end

Seriously? How is THIS not working .-.

Internet.ROBLOX.D3vel0per.Awesome = true
Report Abuse
xWOWZABOYx is not online. xWOWZABOYx
Joined: 05 Aug 2010
Total Posts: 2689
17 Jul 2014 10:01 AM
maybe your path to the character was wrong? Also, you need to set the vrialbe again for the new iteration:

while wait() do
found = script.Parent.Parent.Parent.Character:FindFirstChild("In")
if found == nil then
game.Workspace.GamePlayManager.P1Out.Value = true
else
game.Workspace.GamePlayManager.P1Out.Value = false
end
end

【◄[ϟ]〓☜✪ xWOWZABOYx; FCOM, SQN COM, Scientist, Veteran, Visionary ✪☞〓[ϟ]►】
Report Abuse
DeveloperBlue is not online. DeveloperBlue
Joined: 15 Apr 2009
Total Posts: 1344
17 Jul 2014 10:43 AM
Any output?
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 10:47 AM
@xWOW Didn't work :/ I seriously think this is a ROBLOX Studio bug :/

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 10:48 AM
@Dev There is no output.

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
17 Jul 2014 10:56 AM
Try using this script.

    local player = script.Parent.Parent
    local character

    repeat wait()
        character = player.Character
    until character

    local found
    local value = Workspace.GamePlayManager.P1Out
    while wait() do
        found = character:FindFirstChild"In"
        value.Value = not found
    end
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 11:03 AM
@Aaa Still did not work, your script seems correct, too.

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 11:24 AM
bump

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
dragonkeeper467 is not online. dragonkeeper467
Joined: 24 Jan 2011
Total Posts: 472
17 Jul 2014 11:28 AM
what is GamePlayManager... a service? is that working... try adding a few print statements
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 11:33 AM
GamePlayManager is a script

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 11:49 AM
bump :/

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 11:59 AM
COME ON GUYS .-.

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
D3vel0per is not online. D3vel0per
Joined: 16 Feb 2010
Total Posts: 5078
17 Jul 2014 12:07 PM
Seriously, no one? .-. UGH

~Internet.ROBLOX.D3vel0per.Awesome = true~
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
17 Jul 2014 12:14 PM
Is the script directly in StarterGui/StarterPack?
Also here is a script that might work:

repeat wait() until script.Parent.Parent.Parent.Character
while wait() do
if not script.Parent.Parent.Parent.Character:FindFirstChild("In") then
Workspace.GamePlayManager.P1Out.Value = true
else
Workspace.GamePlayManager.P1Out.Value = false
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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