|
| 26 Jul 2015 11:09 AM |
| Ok so I am trying to make a script that points in the direction of your enemy. If they are on your screen a billboard gui of an arrow would be in the middle of you and your enemy. And the arrow image would point toward the enemy. If they are not on your screen (like behind you or something) it would come up as a gui on the corner of your screen still pointing in their direction, but this time not a billboard gui, a screen gui with the arrow pointing toward them. E.G. if they were not on your screen/camera and they were behind you the arrow would point downwards at the bottom of your screen basically telling you that they are either below or behind you, and the arrow follows the person's position aswell, as they move, the arrow points towards them. I have tried testing with the blood arc on the uncopylocked old call of robloxia 5 to see more understanding of this, I've tested with magnitude but that didn't really help you. I've tried the Welcome to ROBLOX Building uncopylocked version that had the arrows that point to your baseplate and guide you aka the guide arrows in which when you click or take out the stamper tool when your not on your baseplate the exact thing I want would appear, the arrows would come up as a screen gui if its not on your not facing its direction, if you are facing it's direction a billboard gui arrow would come up and point toward your baseplate. I tried converting this/taking it apart to work with humanoids but I had no luck doing so, after going through trial and error I came here to you know, get help. Is there any possible way to do this on ROBLOX? Well I know it's possible because those 2 games I mentioned already have it down to a science, but I specifically am lost when it comes to this. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Jul 2015 12:10 PM |
Try this script, made it myself.
if true function math.adan2 f == nil value xl
end
end debounce a = nil
math.adan ln.pi if workspace.game.(your gui name here) ki math.adan2
bex scregux |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 12:30 PM |
Ok. I'ma try it out- Skrillex. If it works im gonna study et and commend you. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 12:36 PM |
| By the way may I ask what this is supposed to do, cause it doesen't exactly look uhm, completed and I never studied math.adn2 before but it usually from my knowledge is number based like other 'math' stuff I usually use for BodyVelocity and such. |
|
|
| Report Abuse |
|
|
Luc599345
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 1169 |
|
| |
|
|
| 26 Jul 2015 12:38 PM |
| I'm also beginning to think your trying to troll me. That's not how a function is set up, and there are errors that I can easily spot out before even testing it out or going into studio alone. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2015 12:42 PM |
| I'm not stupid enough to believe that would work at all, I already know the majority of scripting but I've never touched camera based areas other than subjects coordinateframes and such. There is no then to that if statement, that's not a proper function and I know it has nothing to do with my problem considering it has nothing to do with guis or cameras, which was the main concern. And it's extremely obvious because you did workspace.game which made no sense... Stop trying to troll me just because my name is TrainingToTroll. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 01:03 PM |
| I'm a professional scripter |
|
|
| Report Abuse |
|
|
| |
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 26 Jul 2015 01:07 PM |
while true do spawn(wait())--is this gone yet? wait() --this means no crasher very safest way! local YOURGUI.Adornee = workspace.Enemy.Head for i, v in ipairs(workspace:GetChildren()) do if v:IsA("Part") then local b = v:Clone() v:remove() --good antilag cleanup removes infections for my places. end end end |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 01:12 PM |
| I thought I wouldn't use Adornee to put it on someone's head because my goal is to have it in the middle of me and my enemy when he's on my screen doe, I'm it out though. |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 26 Jul 2015 01:13 PM |
if its on he head, it will only draw when he on screen because it wont draw through walls unless you make it to.
if it draw through wall it only draw when onto scree nbecause gui.
this makes sense ... :| |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2015 01:18 PM |
fret is also trolling you lol.
They're trolling you because you came here asking for a full script along with the great wall of china. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 01:30 PM |
while true do spawn(wait())--is this gone yet? wait() --this means no crasher very safest way! local D = script.BillboardGui D.Adornee = game.Workspace["Frieza (Full Power)"].Head end
You're thing had a couple errors in it by the way. And I recognized the v:Destroy and the if statement checking if there is parts in workspace to destroy as a troll considering I use that type of thing all the time, just in different ways, nice try with that trying to clear my workspace of all its parts >_> I'm not stupid. As for the adornee it doesn't solve my goal much at all. If it was as simple as using Adornee I wouldn't have this problem, and I would just go with Adornee but this doesn't solve my problem, nice try I guess though |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 26 Jul 2015 01:35 PM |
Magnitude, math, and world to object stuff. Have fun
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 01:37 PM |
| I've been trying to do this for months, if it comes down to someone having to just guide me in the right direction i'll take that. As long as in the end I get something around what I hope to achieve. The only reason why I'm asking for a full script and not asking someone where I went wrong with something I pre-made is because I don't know where to begin when it comes to this specifically. So maybe a better question would be, is it possible to have a script sense if a person is on your screen/in your view. Aswell as if they are off your screen how would I make a screengui have arrows pointing toward them in the first place? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 01:43 PM |
| Ooh World To Object.. I'm gonna go check that out. That might help. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 01:57 PM |
| Crap can't find that on wiki. mor help pls. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 26 Jul 2015 02:01 PM |
http://wiki.roblox.com/index.php?title=Camera
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 02:07 PM |
| Ooh world to screen! That might help even more. Thank you kind sir. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2015 06:50 PM |
| ROBLOX Wiki doesen't go in depth on this. Crud. Gonna youtube or find a free model to study. |
|
|
| Report Abuse |
|
|