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: Raycast Module, anyone plz check?

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:07 PM
http://pastebin.com/UmY3tgD6
forgot to return the function XD
anyway, drop would be the Angle...
I also notice now how stupid I was that I missed one bit, but anyway, I think I should multiply the -.4 by Drop, right?

"My Life is going Good... but..."
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
24 May 2015 03:18 PM
That's not a ModuleScript.
Learn to code.



-𝒩 | Anticodist, Scripter
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:22 PM
that is! -_-
I even said, I forgot to return the function :P
that's how Modules work if ya didn't know :P

"My Life is going Good... but..."
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
24 May 2015 03:25 PM
No it's not. Learn to code.


local module = {}

function module.YoureAnIdiot(KapitanovasCantCode)
print(KapitanovasCantCode.." can't code")
end

return module





local m = require(module_script)
m.YoureAnIdiot("Kapitanovas")
> Kapitanovas can't code



-𝒩 | Anticodist, Scripter

Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 May 2015 03:26 PM
Anti you can return anything you want from a modulescript (more or less), so he makes a valid point.
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
24 May 2015 03:29 PM
This man, doesn't know how to code. He pulls code from FM's and then posts it here. He is notorious for this, but whatever, I have to go anyways.



-𝒩 | Anticodist, Scripter
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:29 PM
HA! IN UR FACE ANT!
Thnx for validating cnt! :D

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:30 PM
Ant, ur a noob, srsly!
I make my OWN code, and u start whining! WTF!??
I told u before, don't wanna help, or even have nothing good to say, then GTFO!

"My Life is going Good... but..."
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 May 2015 03:31 PM
Kap r u ok?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
24 May 2015 03:31 PM
Anti how long have you been out of the game for dude
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:32 PM
cnt, am fine, just feeling kinda aggressive towards some things today :/

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:41 PM
so, anyone plz help me here?
seems it doesn't always hit something :/

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:53 PM
im g ur .com /cANEIrs
just look at this :/
these Points represent startPos of each Raycast (the 1st 2 are startPos and targetPos)
and why is that last one away up, even though I did targetPos + Vector3.new() I did -.4 not .4 :/

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:55 PM
oops... Marker was my mistake, CFrame not Position needed XD

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 03:59 PM
hehe, I see the Bullet Drop now :D
http://gyazo.com/438c0c4b3522ff2f9adc8254d5b7dd29
but, the 1st shot though didn't register anything :/
http://gyazo.com/7e58de82af2f8bf45de14dc3a6fedc5a
(those 2 pics where taken after the 2nd shot)

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:03 PM
found the problem...
there are only 2 Rays made -_-
but how the hell though, ah well...

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:08 PM
damnit am stupid! XD
forgot that I only have to return if limbs[hit.Name] or hit.CanCollide but I just said limbs[hit.Name] else XD that's why!

"My Life is going Good... but..."
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
24 May 2015 04:15 PM
Kap I remember when you were just a noob and I told you to give up
Now you're pretty good
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:21 PM
thnx :D
I don't know if I can remember u, but lots of people told me to give up XD

guys, here: http://pastebin.com/wuUSktMC I tried printing 'hit' at the end the loop, and from that I see it only loops once :/ any help guys?

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:31 PM
stupid me XD
*facepalm
for the millionth time! I made a mistake... ah well... this IS a NEW TERRITORY I just walked in to XD (Bullet Drop with Raycasting and all that crazy stuff)
I had to do <= -100 not <= 100 XD

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:36 PM
so strange :/
everything goes fine, except when reaching 0
http://gyazo.com/d6e016afd72eb2374e7f74549b3ae813
it goes down to .3 and up to .4 and down, and up... wtf!!?
even though I made Ray targetPos -.4 Y Axis every Segment :/

"My Life is going Good... but..."
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:51 PM
got it fixed...
except, it takes AGES to make all those Raycasts and stuff, if Mouse.Hit.p is like more than say 50 Studs away from u :/

"My Life is going Good... but..."
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
24 May 2015 04:52 PM
Too bad you still can't script an efficient gun.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
24 May 2015 04:54 PM
nQ, jeez, plzzz stop whining/criticizing and point me in the right direction if ur so smart -_-

"My Life is going Good... but..."
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