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 » Scripters
Home Search
 

Help fix this

Previous Thread :: Next Thread 
SirIngenuity is not online. SirIngenuity
Joined: 06 Oct 2012
Total Posts: 3149
29 May 2015 07:27 PM
There are no errors. But it won't do whats after then.

if game.Workspace.AwayOffsides.Value == true and game.Workspace.PuckAwaySides.Value == true
then
game.Workspace.display.Value = "Offsides"
game.Workspace.ball:remove()
end
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
29 May 2015 07:29 PM
if will only fire if both values are true
Report Abuse
SirIngenuity is not online. SirIngenuity
Joined: 06 Oct 2012
Total Posts: 3149
29 May 2015 07:30 PM
I know the values are both true still it doesn't do any of part after then
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
29 May 2015 07:31 PM
It does if both values are true.

Another thing is :remove is deprecated; use :Destroy() instead.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
29 May 2015 07:37 PM
False they serve differint purposes,In fact destroy will probably be removed soon.
Report Abuse
SirIngenuity is not online. SirIngenuity
Joined: 06 Oct 2012
Total Posts: 3149
29 May 2015 07:38 PM
Ok I need help then the codes at the stop its completely by it self in its own script how it is. But this script only works if both values turn true at the exact same time I need the script to be able to work if one turns true before the other
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
29 May 2015 07:40 PM
local Away = game.Workspace:WaitForChild("AwayOffsides")
local Puck = game.Workspace:WaitForChild("PuckAwaySides")

Away.Changed:connect(function(property)
if Away.Value == true and Puck.Value == true
then
game.Workspace.display.Value = "Offsides"
game.Workspace.ball:remove()
end
end)

Try this, I haven't tested it so it might have errors.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
29 May 2015 07:41 PM
Oh wait you need something else now. Sorry.
Report Abuse
SirIngenuity is not online. SirIngenuity
Joined: 06 Oct 2012
Total Posts: 3149
29 May 2015 07:42 PM
YOU ARE THE MAN! It worked thank you!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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