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 » Scripters
Home Search
 

Re: So specifying a surface of a part is impossible???

Previous Thread :: Next Thread 
RenderingPixel is not online. RenderingPixel
Joined: 14 Feb 2016
Total Posts: 8
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 is not online. GearMechs
Joined: 01 Dec 2010
Total Posts: 1220
30 Dec 2016 04:21 PM
:SetPrimaryPartCFrame()


Project Leader for OKS - GearMechs
Report Abuse
RenderingPixel is not online. RenderingPixel
Joined: 14 Feb 2016
Total Posts: 8
30 Dec 2016 04:25 PM
So in the brackets do I put the surface e.g 'BottomSurface'??
Report Abuse
GearMechs is not online. 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
RenderingPixel is not online. RenderingPixel
Joined: 14 Feb 2016
Total Posts: 8
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
RenderingPixel is not online. RenderingPixel
Joined: 14 Feb 2016
Total Posts: 8
30 Dec 2016 04:36 PM
NVM I figured it out.

could you please give me an example line? thanks
Report Abuse
GearMechs is not online. 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
RenderingPixel is not online. RenderingPixel
Joined: 14 Feb 2016
Total Posts: 8
30 Dec 2016 04:41 PM
I got confused again lol, could you please give me a short example line?

Report Abuse
RenderingPixel is not online. RenderingPixel
Joined: 14 Feb 2016
Total Posts: 8
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 is not online. GearMechs
Joined: 01 Dec 2010
Total Posts: 1220
30 Dec 2016 04:54 PM
lol - No problem.


Project Leader for OKS - GearMechs
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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