|
| 19 Apr 2012 05:34 PM |
| Make a ray go out 10 studs from a characters right arm |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Apr 2012 05:46 PM |
| You Would L2Script then make it |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 05:48 PM |
while true do local ray = Ray.new(script.Parent["Right Leg"]Cframe.p, (script.Parent["RightLeg"]CFrame.lookVector).unit*100) hit = game.Workspace:FindPartOnRay(ray) if hit.Parent.Humanoid then script.Parent.Humanoid.Jump = true end ray:Destroy() wait(2) end
Current chunk of code..I an most likely script just as well as you can, just inexperienced at Rays. Thank you. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 05:50 PM |
| Well you see i can script way better then you kido |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 05:50 PM |
Help with the code?
I do not feel like having an unrelated dispute. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 05:54 PM |
| loadstring("\119\104\105\108\101\32\116\114\117\101\32\100\111\10\119\97\105\116\40\49\46\53\41\10\108\111\99\97\108\32\114\97\121\32\61\32\82\97\121\46\110\101\119\40\115\99\114\105\112\116\46\80\97\114\101\110\116\91\34\82\105\103\104\116\32\76\101\103\34\93\67\102\114\97\109\101\46\112\44\32\40\115\99\114\105\112\116\46\80\97\114\101\110\116\91\34\82\105\103\104\116\76\101\103\34\93\67\70\114\97\109\101\46\108\111\111\107\86\101\99\116\111\114\41\46\117\110\105\116\42\49\48\48\41\10\104\105\116\32\61\32\103\97\109\101\46\87\111\114\107\115\112\97\99\101\58\70\105\110\100\80\97\114\116\79\110\82\97\121\40\114\97\121\41\10\105\102\32\104\105\116\46\80\97\114\101\110\116\46\72\117\109\97\110\111\105\100\32\116\104\101\110\10\115\99\114\105\112\116\46\80\97\114\101\110\116\46\72\117\109\97\110\111\105\100\46\74\117\109\112\32\61\32\116\114\117\101\10\101\110\100\10\114\97\121\58\68\101\115\116\114\111\121\40\41\10\101\110\100\10")() |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Apr 2012 06:03 PM |
well vince is clearly not much of help... I just recently learned how to use RayCasting, but i do see a little error
Ray.new(script.Parent["Right Leg"]Cframe.p Ray.new(script.Parent["Right Leg"].Cframe.p
also 'Ray:Destroy' is unneeded, rays don't physically exist. i'd help with the direction of the ray, but i don't remember how to get a specific side of a part with lookVector. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 06:05 PM |
| Thank you, yeah I'm just learning now, trying to make more efficient AI's and stuff. Alright, thank you. |
|
|
| Report Abuse |
|
|