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
 

How to CFrame Position with raycast?

Previous Thread :: Next Thread 
ArkhamDeluxe is not online. ArkhamDeluxe
Joined: 21 May 2016
Total Posts: 561
05 Feb 2017 12:20 PM
key = key:lower()
if string.byte(key) == 32 and spacing == false then

local ray = Ray.new(Torso.CFrame.p, (Torso.CFrame.p).unit * 10)
local part, position = workspace:FindPartOnRay(ray, Player.Character, false, true)
if part == nil then
spacing = true

else return end


end
end

First time raycasting. Trying to shoot a ray downwards from a players torso to detect if the player is near the ground or not but the ".unit*10" seems so vague its probably not right. Can anyone help me out on this? Thanks.
Report Abuse
ArkhamDeluxe is not online. ArkhamDeluxe
Joined: 21 May 2016
Total Posts: 561
05 Feb 2017 12:25 PM
Lool Clearly no one likes help with raycasting. Sounds amazing but also sounds like a nightmare to code lol
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