|
| 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 |
|
|
| |
|
|
| 03 Jan 2016 02:18 PM |
| Those position values are too exact. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 03 Jan 2016 02:25 PM |
Thx man and it works. Thank you a lot!
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 02:27 PM |
| no problem! I'm glad it works! |
|
|
| Report Abuse |
|
|