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: How'd I do this

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 04:24 PM
Alright so I have an anchored model right? which means it doesen't have physics like falling down in mid air.

It has to fall down in mid air/ be CFramed down until it is not in mid air/hits a map/part.

How'd I do that?

For example an anchored brick, I believe I should be doing raycast and how would I do that? Like I need to detect if it's in mid air or not on the ground.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
23 Dec 2014 04:42 PM
for i=1,20 do
for _,i in pairs(model:GetChildren())do
if i:IsA"BasePart" then
i.CFrame=i.CFrame*CFrame.new(0,-i,0)
end
end
end
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 04:46 PM
Hah you're so funny
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
23 Dec 2014 04:48 PM
I'm not kidding..

put a wait() in front of the last end and it should move
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 04:48 PM
Go away.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
23 Dec 2014 04:50 PM
Okay fine, I will go away you ignorant and arrogant prick.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 04:51 PM
Listen buddy, I appreciate it but that was not at all what I asked for and I learnt what you did about 2 years ago. So I think you are being the ignorant one.
Report Abuse
BuriedBlock is not online. BuriedBlock
Joined: 14 Dec 2009
Total Posts: 3091
23 Dec 2014 04:55 PM
Fedora, he was trying to help, like you asked, and all you did was be rude. Make an attempt at the script, or get out.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
23 Dec 2014 04:55 PM
local hitPart,hitPos=workspaceFindPartOnRayWithIgnoreList(Ray.new(Vector3.new(part.CFrame.X,part.CFrame.Y - 1000,part.CFrame.Z),(part.CFrame.p,Vector3.new(part.CFrame.X,part.CFrame.Y - 1000,part.CFrame.Z)).Unit*999),{part})
local dis=(hitPos-part.CFrame).Magnitude
if dis<1 then
print('THERE IS A PART DIRECTLY BELOW IT')
end
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 05:03 PM
Buried you dumbass, you can't script or you are just his friend calling for "backup". I needed to learn about detecting a part under a model, not something as looping the model and CFraming it. That was the easy part.
Btw I was done with this forum, right now I am just here to argue with people acting dumb.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 05:03 PM
done with this thread*
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
23 Dec 2014 05:05 PM
Wow, you seriously are hard headed.

I also have no idea who that guy was, and he was actually the only reason why I helped you the second time.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 05:05 PM
Like seriously, you guys are in no position to argue with me, READ THE MAIN CONTENT. I SAID THIS

"Like I need to detect if it's in mid air or not on the ground."
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 Dec 2014 05:05 PM
Just create a value to represent velocity, and every time you run the function, add a little bit to the speed, and then move the model by the speed with SetPrimaryPartCFrame.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 Dec 2014 05:06 PM
Oh. Yeah, use raycasting. Or your own collision detection. Whatever works.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 05:06 PM
^ Yeah I was already done with this thread a long time ago, theres just these idiots arguing for no reason. Thanks anyway.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
23 Dec 2014 05:11 PM
We were just trying to help you and you suddenly started insulting us. Think of it like this.

Your at a store and ask someone how do I use this, than the person tells you something you already know.
Instead of being normal and just sitting though it or telling them nicely.

You start yelling at them and act someone just shot your first born in the face.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 05:13 PM
"Okay fine, I will go away you ignorant and arrogant prick."

Yes, I'm so terrible and of course I started first.

lol
Report Abuse
Merchanting is not online. Merchanting
Joined: 04 Aug 2014
Total Posts: 251
23 Dec 2014 05:17 PM
Heil!
Report Abuse
fireroo1 is not online. fireroo1
Joined: 23 Sep 2011
Total Posts: 5965
23 Dec 2014 05:18 PM
Calling yourself FedoraKid owning a free fedora.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Dec 2014 05:20 PM
^ dude its a dumb name I know, and this is like the only fedora NBCs can have
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