|
| 30 Dec 2016 04:11 PM |
'm trying to do something in which if the bottom side of a part gets hit it doesnt reset. But if any other side touches the table it does.
game.Workspace.WB.Union.BottomSurface.Touched:connect(function(hit) local found = hit.Parent.FindFirstChild("Tabletop") if found ==nil then ~reset code~ else ~nothing happens~ end end
ive tried welding a part to the bottom to fix the problem. However the welded part does not rotate with the primary part - so that is out the window.
The 'BottomSurface' is causing the error, mabye I am specifying it wrong?
Any help would be appreciated :D
|
|
|
| Report Abuse |
|
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
|
| 30 Dec 2016 04:21 PM |
:SetPrimaryPartCFrame()
Project Leader for OKS - GearMechs |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 04:25 PM |
| So in the brackets do I put the surface e.g 'BottomSurface'?? |
|
|
| Report Abuse |
|
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
|
| 30 Dec 2016 04:27 PM |
No, sorry for being unclear - You said you tried the primary part thing - If you group them, set the primary part as your main part, and try to rotate it using that method, it will work.
Project Leader for OKS - GearMechs |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 04:32 PM |
| Oh, sorry for the confusion. It's just how I worded the problem. The 'primary part' as I worded it was just the part I was trying to rotate. So how would I do the 'primary part thing'. My apologies - I just started scripting 5 days ago :P |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 04:36 PM |
NVM I figured it out.
could you please give me an example line? thanks |
|
|
| Report Abuse |
|
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
|
| 30 Dec 2016 04:37 PM |
Awesome. Gl with your game.
Project Leader for OKS - GearMechs |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 04:41 PM |
I got confused again lol, could you please give me a short example line?
|
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 04:51 PM |
OMG IT WORKS
THANK YOU SOOO MUCH YOU DON'T UNDERSTAND HOW LONG IT TOOK FOR ANYONE TO HELP ME!!!!
Have a wonderful rest of your life sir!
(might be a slight exaggeration, but oh well IM SO HAPPY RIGHT NOW!!!)
:D |
|
|
| Report Abuse |
|
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
|
| 30 Dec 2016 04:54 PM |
lol - No problem.
Project Leader for OKS - GearMechs |
|
|
| Report Abuse |
|
|