|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
| |
|