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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how to do parts under ur feet

Previous Thread :: Next Thread 
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:06 PM
even if the part has a rotation

am harambe
Report Abuse
llaserx is not online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
28 Aug 2016 09:07 PM
What
Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:08 PM
i step how do i put a part that just barely pops out of the floor im on

even if its uneven

am harambe
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
28 Aug 2016 09:09 PM
what the hell dude how could someone possibly understand what u mean by this lol

Formerly ToxicDominator - add 17,509 posts
Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:14 PM
aIRSTRIKER

am harambe
Report Abuse
superpants2020 is not online. superpants2020
Joined: 10 Feb 2013
Total Posts: 804
28 Aug 2016 09:16 PM
do you mean Air Treks?


i like ducks bro. deal wit it.
Report Abuse
VineyardVine is not online. VineyardVine
Joined: 20 Nov 2010
Total Posts: 904
28 Aug 2016 09:19 PM


local character = game.Players.LocalPlayer.Character

function spawnpart()
local part = Instance.new("Part",game.Workspace)
part.CFrame = character.Torso.CFrame * CFrame.new(0,-3,0)
end
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
28 Aug 2016 09:19 PM
Error English.exe has stopped responding


Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:21 PM
if i make a ray
and it hits a part
how do i make my part
angled flush with the part it hits

am harambe
Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
28 Aug 2016 09:22 PM
I think he wants something like a platform that appears under your player, or else visible footsteps.

Every 0.1 seconds or so you could loop and create a new part 3? studs below the player's Torso.

If you wanted to make the part created have the same slant as the ground below you, it would take a lot more logic than I care to write right now.
If you feel like experimenting though, you could try raycasting or something to get the rotation of the ground part below the player, and use that rotation in the part created, but that wouldn't work on smooth terrain (I'm not sure how you'd get the surface normal of smooth terrain), and I'm not sure how you'd make that ignore the parts already created, and I'm not sure how that'd look once the slanted floor ended lol.


Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
28 Aug 2016 09:23 PM
Okay I have no idea he seems to have changed what he wants.


Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:25 PM
ANOTHER EXAMPLE:
i shoot a gun
the bullet hits a obj
i want the bullet to be angled the same and flush with the side it hits

IT MAKES SENSE PEPOLE OMG

am harambe
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
28 Aug 2016 09:26 PM
Loved_WhenPeopleCouldActuallyExplainThings

Formerly ToxicDominator - add 17,509 posts
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
28 Aug 2016 09:26 PM
Remember kids, Never skip english.


Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:29 PM
#######################################################
Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:29 PM
####################################################################################
Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
28 Aug 2016 09:31 PM
Is the bullet a symmetrical shape (cube, sphere)? If so, you can just take the CFrame rotation of the object it hits and apply it to the bullet.


Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:31 PM
##########################################################
Report Abuse
qqtt991 is not online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
28 Aug 2016 09:33 PM
You may want to raycast to find the position of the surface it would hit.


Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:34 PM
this is my code:
(c is player's character)

local Direction = (c.Torso.Position - Vector3.new(0, 500, 0))
local ray = Ray.new(c.Torso.Position, Direction.unit * 500)
local Part, pos = workspace:FindPartOnRayWithIgnoreList(ray, c:GetChildren())
if Part then
local newPart = Instance.new('Part', workspace)
newPart.Anchored = true;
newPart.CFrame = CFrame.new(pos, Part.CFrame.lookVector)
end

am harambe
Report Abuse
SuchNameWow1 is not online. SuchNameWow1
Joined: 30 Jun 2014
Total Posts: 17
28 Aug 2016 09:35 PM
hello friend!
Report Abuse
Loved_Harambe is not online. Loved_Harambe
Joined: 07 Jul 2011
Total Posts: 6611
28 Aug 2016 09:46 PM
boomp

am harambe
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
28 Aug 2016 09:47 PM
cant you just cast from 4 corners of it and make a cframe using the hit points
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