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
 

FindPartsInRegion3 Question

Previous Thread :: Next Thread 
SimulatorsX is not online. SimulatorsX
Joined: 23 Mar 2013
Total Posts: 11
11 Jan 2017 06:07 PM
Hi guys,
I'm currently working on a Train simulator and I've just started using FindPartsInRegion3.
I have a working piece of code for signals that change the light when something is detected inside the Region3:

while wait(1) do
for i,v in pairs(game.Workspace:FindPartsInRegion3(region,nil,100)) do
if v:findFirstChild("SignalValue") then
script.Parent.Signal1.LightPanels.Lights.Red.Visible = true
script.Parent.Signal1.LightPanels.Lights.Green.Visible = false
end
end
end

It changes light accordingly when a signal is detected within the Region3, my only problem is, how would I fire an event when the signal has left the Region3? I absolutely have no clue about this part. Can anyone help me out? :P
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
11 Jan 2017 06:08 PM
if there's no signal in the region 3, then they've left

there's no event as far as i know
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