|
| 26 Jun 2012 11:35 AM |
script.Parent.Touched:connect(function(hit)
if hit.ClassName == "Part" then print("CORN") end
end)
It doesn't print anything, not CORN or any errors. |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:36 AM |
Try this:
script.Parent.Touched:connect(function(hit)
if hit:IsA("Part") then print("CORN") end
end)
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:37 AM |
script.Parent.Touched:connect(function(hit) if (hit.ClassName == "Part") then print("IS A PART") else print("NOT A PART") end end) |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:39 AM |
@swim @thecaptain
Still won't print anything :I |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:40 AM |
Is the script disabled?
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:41 AM |
| No, It's inside of a part in Workspace. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 26 Jun 2012 11:41 AM |
Odd? Maybe...
basePart.Touched:connect(function(hit) if hit:IsA("BasePart") then --Part, wedge etc... print("Hit by a "..hit.ClassName) end end) |
|
|
| Report Abuse |
|
|
heIlo
|
  |
| Joined: 29 Dec 2009 |
| Total Posts: 139 |
|
|
| 26 Jun 2012 11:41 AM |
| How are you using the script? What is touching what? |
|
|
| Report Abuse |
|
|
heIlo
|
  |
| Joined: 29 Dec 2009 |
| Total Posts: 139 |
|
|
| 26 Jun 2012 11:42 AM |
| Also is it a local script, or just a regular script? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:42 AM |
| Make sure that Studio isn't Paused? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:43 AM |
| A normal part with a Cylinder mesh is falling down to the default Base plate. It's a regular script. |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:44 AM |
@thecaptain
I'm using the Pause and Play buttons in Studio. |
|
|
| Report Abuse |
|
|
heIlo
|
  |
| Joined: 29 Dec 2009 |
| Total Posts: 139 |
|
|
| 26 Jun 2012 11:45 AM |
| Try disabling the script and then re-enabling? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2012 11:46 AM |
| Finally got it to work, it wouldn't work until I opened up Play Solo. |
|
|
| Report Abuse |
|
|
heIlo
|
  |
| Joined: 29 Dec 2009 |
| Total Posts: 139 |
|
|
| 26 Jun 2012 11:48 AM |
| Ya, Roblox studio is a pain sometimes. |
|
|
| Report Abuse |
|
|
Shobobo99
|
  |
| Joined: 30 Dec 2008 |
| Total Posts: 5754 |
|
|
| 26 Jun 2012 12:35 PM |
| You really shouldn't test much things like those with pause and play, that's why you have test solo. |
|
|
| Report Abuse |
|
|