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: Help please!

Previous Thread :: Next Thread 
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
17 Nov 2011 12:36 PM
This is part of my script, It should make the Captured visible = false if the BaseA and the player team color is the same but it only makes it true for some reason help please!

local Player = script.Parent.Parent.Parent
function Play3()
if game.Workspace.BaseA.BrickColor == Player.TeamColor.Color then
script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible=false
else
script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible=true
end
end
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:37 PM
local Player = script.Parent.Parent.Parent
function Play3()
if workspace.BaseA.BrickColor == Player.TeamColor then
script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = false
else
script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = true
end
end

--you don't call the event here?
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:39 PM
Lol what were I talking about, event?

I ment function :P
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
17 Nov 2011 12:40 PM
Thanks! and I just have a loop

while true do
wait()
Play3()
end
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:42 PM
Why don't you just replace the function defision with that loop?
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
17 Nov 2011 12:42 PM
Because I fail and dont know how :P
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:44 PM
local Player = script.Parent.Parent.Parent

while wait() do
if workspace.BaseA.BrickColor == Player.TeamColor then
script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = false
else
script.Parent.Frame.BackGround.Base.Class1.BaseButton.Captured.Visible = true
end
end


--That's all
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
17 Nov 2011 12:48 PM
Ohhh thats what you ment lol well if you didnt noitce the Play3()
I have a Play2() and Play1() I just loop them all with one while true do

while true do
wait()
Play1()
Play2()
Play3()
end
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
17 Nov 2011 12:49 PM
Still could be done in one loop =/
Report Abuse
Zlavaz is not online. Zlavaz
Joined: 23 Oct 2011
Total Posts: 2722
17 Nov 2011 12:50 PM
wait you don't know and you made battle of carentan? :P
Report Abuse
brayden99 is not online. brayden99
Joined: 30 Sep 2007
Total Posts: 1243
17 Nov 2011 12:52 PM
My friend flump and I are a team lol He does most of the scripting
Report Abuse
Zlavaz is not online. Zlavaz
Joined: 23 Oct 2011
Total Posts: 2722
17 Nov 2011 12:53 PM
lol I love that game :3
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