|
| 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 |
|
|
| 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 |
|