|
| 30 Dec 2012 07:08 PM |
flood = game.Workspace.Flood coroutine.resume(coroutine.create(function() for i = 1,100,1 do flood.CFrame = flood.CFrame * CFrame.new(0,i,0) wait(1) end end)) for i,v in pairs(game.Workspace.Model:GetChildren()) do v.Touched:connect(function(hit) v.CanCollide = false print("CanCollide is set.") v.Velocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100)) end) end
The flood is directly below a building, which is Model in Workspace. When I CFrame it up, it's suppose to touch the parts in the Model and make them uncancollidable. It isn't doing this, which means that the flood isn't touching the parts in Model, even though the flood is being CFramed right into them. I've been trying to figure this out for hours, can someone tell me what's wrong with this?
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 07:19 PM |
bump
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 07:31 PM |
bump
please
someone
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 07:39 PM |
bump
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 07:52 PM |
The script only works when I touch the parts
Why?
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:03 PM |
Nobody?
..
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:08 PM |
| Maybe you are da flood. o.o |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:11 PM |
@Cody
Take it from my models, please, and try to fix it?
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:12 PM |
I can't qq My internet is being really stupid and I can't open studio without massive lag. I'm barely able to forum. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:13 PM |
Someone
please
I've been stuck on this for 5 hours
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:14 PM |
Try remaking it? I have the model already I'll try to fix it when my connection gets better. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:15 PM |
I tried that, it still failed
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 30 Dec 2012 08:28 PM |
| Try using region3 since CFraming will kind of confuse touched event. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 08:52 PM |
So I would check if v is in the Regoin3 of the flood?
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 30 Dec 2012 08:59 PM |
| CFraming an object into another will not fire the Touched event. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 09:00 PM |
@1Top
How else would I do it
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 30 Dec 2012 09:04 PM |
| Region3 returnns table, so all you do is move region3 together with water part, and remove everything with in that returned table except water it self. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 09:06 PM |
@zars
That is a bit confusing
How do I move the Region3 with the water part
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 30 Dec 2012 09:11 PM |
Basically set first region3 corner to parts corner, and same with oposite one.
So it would look like:
Region3.new(part.Position-part.Size/2,part.Position+part.Size/2) |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 09:25 PM |
FINALLY, SOMETHING WORKS.
THANK YOU SO MUCH ZARS
flood = game.Workspace.Flood coroutine.resume(coroutine.create(function() for i = 1,100,1 do flood.CFrame = flood.CFrame * CFrame.new(0,i,0) wait(1) end end)) local region = Region3.new(flood.Position - flood.Size/2,flood.Position + flood.Size/2) local v = game.Workspace:FindPartsInRegion3(region) for b,n in pairs(v) do if n.ClassName == "Part" then n.Touched:connect(function(hit) n.CanCollide = false print("CanCollide is set.") n.Velocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100)) end) end end
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 09:37 PM |
Wait, it only works when I enter the Region3.
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 30 Dec 2012 09:45 PM |
| Why do you need touched function in it anyway? |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2012 09:47 PM |
flood = game.Workspace.Flood coroutine.resume(coroutine.create(function() for i = 1,100,.1 do flood.CFrame = flood.CFrame * CFrame.new(0,i,0) wait(1) end end)) local region = Region3.new(flood.Position - flood.Size/2,flood.Position + flood.Size/2) coroutine.wrap(function() while wait() do local v = game.Workspace:FindPartsInRegion3(region) end end)) for b,n in pairs(v) do if n.ClassName == "Part" then n.CanCollide = false n:BreakJoints() if n.CanCollide == false then print("CanCollide is set.") end end end
Would this work?
Error 407:["Siggy.exe not found."] Please try again in a few moments. |
|
|
| Report Abuse |
|
|