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: Weird problem.

Previous Thread :: Next Thread 
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
05 Nov 2011 03:14 PM
There isn't an error on the output and I had this script in a model:

for i, v in pairs(script.Parent:GetChildren()) do
if v:IsA("Part") then
v.Touched:connect(function(hit)
hit:BreakJoints()
end)
end
end

Any idea how it doesn't work?
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
05 Nov 2011 03:18 PM
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Part") then
v.Touched:connect(function(hit)
hit.Parent:BreakJoints()
end)
end
end

Report Abuse
Ganondude is not online. Ganondude
Joined: 22 Jun 2007
Total Posts: 1175
05 Nov 2011 03:20 PM
Are you sure there are objects of type "Part" in script.Parent? Remember that using just "Part" in IsA() doesn't include WedgeParts, CornerWedgeParts or TrussParts. If you want to include all types of parts use "BasePart".
Report Abuse
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
05 Nov 2011 03:20 PM
Nothing changed. What I'm basically trying to do is test these racers that go across this big path and end up falling into somethingand dying!
Report Abuse
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
05 Nov 2011 03:23 PM
Figured it out, it's the ROBLOX Studio test (not in solo mode, I just pressed the play button) mode that's buggy with the script...
Report Abuse
Lightmaster9 is not online. Lightmaster9
Joined: 14 May 2009
Total Posts: 8659
05 Nov 2011 03:24 PM
... and when I do play solo, the script WORKS.
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