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
 

Re: Taken a different approach with BoolValue

Previous Thread :: Next Thread 
kentpent1234 is not online. kentpent1234
Joined: 29 Dec 2010
Total Posts: 220
03 Jan 2016 01:56 PM
local bval = script.Parent
local bridge = game.Workspace.Bridge


while true do
wait()
if bridge.road.Position == Vector3.new(-242.934, 31.075, -173.985) then
bval.Value = true
end


if bridge.road.Position == Vector3.new(-242.934, 58.125, -173.985) then
bval.Value = false
end
end


The BoolValue still isn't changing value though.


Report Abuse
kentpent1234 is not online. kentpent1234
Joined: 29 Dec 2010
Total Posts: 220
03 Jan 2016 02:15 PM
Anyone???


Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
03 Jan 2016 02:18 PM
Those position values are too exact.
Report Abuse
kentpent1234 is not online. kentpent1234
Joined: 29 Dec 2010
Total Posts: 220
03 Jan 2016 02:20 PM
When I tested solo and double checked the part, it was in the exact position as them though.


Report Abuse
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
03 Jan 2016 02:24 PM
while true do
wait()
mag = (bridge.road.Position-Vector3.new(-242.934, 31.075, -173.985)).magnitude
if mag < 3 then -- it's within 3 stud radius
bval.Value = true
end
mag = (bridge.road.Position-Vector3.new(-242.934, 58.125, -173.985)).magnitude

if mag < 3 then -- it's within 3 stud radius
bval.Value = false
end
end

nice thinking to you for position!!
Report Abuse
kentpent1234 is not online. kentpent1234
Joined: 29 Dec 2010
Total Posts: 220
03 Jan 2016 02:25 PM
Thx man and it works. Thank you a lot!


Report Abuse
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
03 Jan 2016 02:27 PM
no problem! I'm glad it works!
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