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: how to check if a brick isn't touched?

Previous Thread :: Next Thread 
speedy250 is not online. speedy250
Joined: 16 May 2008
Total Posts: 4783
20 Jul 2011 02:24 PM
i can check if it's touched. sorry im a beginner
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
20 Jul 2011 02:25 PM
What do you want it to not be touched by?
Report Abuse
speedy250 is not online. speedy250
Joined: 16 May 2008
Total Posts: 4783
20 Jul 2011 02:30 PM
player
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
20 Jul 2011 02:33 PM
Brick not being touched:

local HasBeenTouched = false

function onPewPew(Pew)
HasBeenTouched = true
end


while true do
wait(0.04 - 0.01)
if (not HasBeenTouched) then
--------
else
break
end
end
Report Abuse
speedy250 is not online. speedy250
Joined: 16 May 2008
Total Posts: 4783
20 Jul 2011 02:34 PM
thanks! Now i do this
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
20 Jul 2011 02:34 PM
Oh I forgot the connect line....

local HasBeenTouched = false

function onPewPew(Pew)
HasBeenTouched = true
end

Part.Touched(onPewPew)

while true do
wait(0.04 - 0.01)
if (not HasBeenTouched) then
--------
else
break
end
end
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
20 Jul 2011 02:35 PM
Connection is all wrong. ^^
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