TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 02:48 AM |
i found a sniper rifle in the catalog that claims to destroy objects but it doesnt seem to work. i placed it in my game, built a little wall real quick in the game with the stamper, then shot the wall with the sniper but the wall wasnt affected. can anyone tell me what is wrong with the bullet script or direct me to a sniper in the catalog that is already scripted to do what im wanting. i want a sniper that can disconnect blocks placed with the stamper. this is the bullet script to the sniper i found
ball = script.Parent local invelocity = ball.Velocity wait()
function onTouched(hit) if hit.Anchored == false then hit:BreakJoints() hit.Velocity = ball.Velocity end ball.Velocity = invelocity end
connection = script.Parent.Touched:connect(onTouched)
wait(2)
ball.Parent = nil
|
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
| |
|
|
| 06 Jul 2013 02:56 AM |
Is the wall anchored? If you want everything, even anchored objects, to break joints on contact with this magical bullet, then try this:
local ball = script.Parent local invelocity = ball.Velocity
script.Parent.Touched:connect(function(hit) hit:BreakJoints() hit.Velocity = ball.Velocity ball.Velocity = invelocity wait(2) ball.Parent = nil end)
|
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 02:59 AM |
| i dont want it to destroy objects that i placed in the game in the studio. i want it to only destroy blocks that other players placed with the stamper tool |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:04 AM |
| i went ahead and tried the script you posted but still it does not destroy objects |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2013 03:06 AM |
| How would you define "destroy"? Making it disappear or breaking it into pieces? You can't break a single part into pieces, just saying. |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:10 AM |
| no, i mean just make the blocks break apart. i only said destroy cause if you blow a few of the blocks off then its no longer a wall, its just a pile of blocks. i want it to make the blocks break lose and fall off. i tried your script and it didnt do it either |
|
|
| Report Abuse |
|
|
| |
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:16 AM |
| http://www.roblox.com/M82-Barret-50-cal-Anti-Material-Sniper-Rifle-item?id=87736210 |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2013 03:17 AM |
| The wall has to be made of many pieces in order for this to work. You can't break the joint on a one-piece wall. |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:18 AM |
| if you know of a sniper that already does what you make them do, let me know. i dontreally care what the gun looks like(obviously since that sniper looks like crap) but i need it to make the blocks disconnect |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:19 AM |
| dennis, i quickly made a small wall(about 15 to 20 blocks) but it still didnt affect them |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2013 03:29 AM |
| Make sure that the bricks for the wall are contained in a model. Then replace "hit:BreakJoints()" with "hit.Parent:BreakJoints()". |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:36 AM |
| no, i dont want it to break apart bricks that i placed into the game with the studio. i want it to ONLY break apart the bricks that other players in the game place with the stamper tool. i know there is a script for it cause i've seen it in a building game before. it was a sniper rifle that only broke apart blocks that were placed by players during gameplay, but it didnt break anything that the creator of the game placed in the game with roblox studio. thats the sniper i want. i cant remember the name though. i think it had a 4 and a K or H in the name. like K406 for example(not an actual gun name that i know of but it looked something like that) |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 03:42 AM |
| oh and i forgot to mention that the crosshairs would turn red when they were directly on someone indicating the shot would definitely hit them |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2013 04:02 AM |
Are you talking about fragmentation?
http://www.roblox.com/Fragmentation-System-Read-Desc-item?id=105979265
Try making that gun compatible with this. |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 04:03 AM |
i'll try that out and see if it does what mean. be back shortly with the answer
|
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
|
| 06 Jul 2013 04:08 AM |
| nvm i watch the video and that isnt what i mean. to be more specific, what i want is a bullet script that makes it so any block you shoot will disconnect from any other block its touching. so that if someone is hiding behind a wall, you can knock blocks off by shooting them so you can get to the person hiding behind them |
|
|
| Report Abuse |
|
|
TheShaun
|
  |
| Joined: 18 Apr 2013 |
| Total Posts: 746 |
|
| |
|