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: Fake kill brick/Physics brick

Previous Thread :: Next Thread 
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
25 Nov 2014 05:37 PM
Guess what? I'm a complete noob to scripting and making games on here. Now that, that's out of the way. I am just trying out a few things but I want to make it so that if you walk into a brick it falls apart or like has physics applied to it like when you walk into a weak wall it just falls apart. searching through class files or the advanced objects, I couldn't seem to figure out on how to actually accomplish this. Please, need assistance.
Report Abuse
jasondee1 is not online. jasondee1
Joined: 26 Jul 2008
Total Posts: 8002
25 Nov 2014 05:39 PM
make the brick out of smaller bricks
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
26 Nov 2014 06:38 PM
Yeah, but I'm looking for an actually like touch effect or something.
Report Abuse
ImperialValor is not online. ImperialValor
Joined: 30 Aug 2014
Total Posts: 2323
26 Nov 2014 06:38 PM
:BreakJoints()
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
26 Nov 2014 06:44 PM
Now would this make the brick fall and let physics interact with it?
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
26 Nov 2014 06:58 PM
Imperial what comes before the semi colon? and where do i enter this?
Report Abuse
ImperialValor is not online. ImperialValor
Joined: 30 Aug 2014
Total Posts: 2323
26 Nov 2014 07:11 PM
function onTouch(hit)
local find = game.Workspace:FindFirstChild("ModelName")
find:BreakJoints()
end

Then call the function.
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
29 Nov 2014 10:27 AM
Alright, I'll try it. Now what does "Child" stand for in lua?
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
29 Nov 2014 10:43 AM
Also how exactly do you call a function?
Report Abuse
fret13103 is not online. fret13103
Joined: 15 Mar 2010
Total Posts: 881
29 Nov 2014 11:02 AM
... Just make the brick out of little bricks and unanchor them all. Make sure they don't have joints using a for loop in pairs to go through the children and delete joints if they have any.
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
29 Nov 2014 12:31 PM
Yeah, I could try...
Report Abuse
FEAR1201 is not online. FEAR1201
Joined: 29 Jun 2009
Total Posts: 18
30 Nov 2014 10:59 AM
Do I put the script in the workspace or the brick itself?
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