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: Will this code work?

Previous Thread :: Next Thread 
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
14 May 2014 03:46 PM
Will this work properly?

if game.Players:FindFirstChild("Billybobtijoseph"):FindFirstChild("Fighting") ~= nil then

^
I'm not sure if I should change it or not.
Report Abuse
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
14 May 2014 03:49 PM
yes.no?
Report Abuse
Phyclops is not online. Phyclops
Joined: 27 Sep 2012
Total Posts: 5895
14 May 2014 03:51 PM
Is that the full script?
Do you have any ends?
"if" requires an end
and I'm pretty sure that ("Billybobtijoseph") part is case-sensitive
uh
No idea what it's supposed to do.
Report Abuse
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
14 May 2014 03:55 PM
This is the script part:

function kingo()
print("Started Kingo")
local err = script.Parent.Parent.Parent.Parent.Er
if game.Workspace:FindFirstChild(script.Parent.Parent.Value):FindFirstChild("FightingForBlue") ~= nil and game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Green.Fighting.Value):FindFirstChild("FightingForGreen") ~= nil then
print("No one wins the tournament.")
--err.Value = 0
wait(2)
err.Value = 60
elseif game.Workspace:FindFirstChild(script.Parent.Parent.Value):FindFirstChild("FightingForBlue") ~= nil and game.Workspace:FindFirstChild(script.Parent.Parent.Parent.Parent.Green.Fighting.Value):FindFirstChild("FightingForGreen") then
print("Green Won!")
--err.Value = 0
wait(2)
err.Value = 20
end
end

But when I test it and all, when 1 person kills the other teams fighter and the winning person is still alive, it will say no one wins. BTW this script is in a bool value that is in a string value.
Report Abuse
billybobtijoseph is not online. billybobtijoseph
Joined: 09 Dec 2011
Total Posts: 2163
14 May 2014 03:58 PM
^
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