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 do I make a radar?

Previous Thread :: Next Thread 
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
06 Nov 2015 03:23 PM
I thought I had an idea, but I guess it doesn't work :/

local Radar = script.Parent:WaitForChild("Radar")

repeat wait() until #game.Players:GetPlayers() > 0

game:GetService("RunService").RenderStepped:connect(function()
local Children = game.Players:GetPlayers()
for i = 1, #Children do
if Children[i].Character then
local Torso = Children[i].Character:WaitForChild("Torso")
local Frame = Instance.new("Frame", Radar)
Frame.Position = UDim2.new(0, Torso.Position.X / 5, 0 ,Torso.Position.Z / 4)
Frame.Size = UDim2.new(0.005, 0, 0.005, 0)
Frame.BackgroundColor3 = Color3.new(1, 1, 1)
Frame.BorderColor3 = Color3.new(0, 0, 0)
end
end
end)


Currently developing a game with Scripters Interactive! Join the group to show support!
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
06 Nov 2015 03:25 PM
Couldn't help to notice...
Fishguy100 has a radar and is in Scripters Interactive..

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
06 Nov 2015 03:26 PM
I think the best way is using toObjectSpace on CFrames, so that you can get the relative position from wherever the origin of the map is, from whatever the orientation of the map is.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Nov 2015 03:27 PM
fishguy's "radar" belongs to everesty
Report Abuse
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
06 Nov 2015 03:29 PM
Yes, fishguy is in this project. However, I cannot ask him to devote his personal work to the project. He may if he wants, but I will not ask, as he might feel obligated.


Currently developing a game with Scripters Interactive! Join the group to show support!
Report Abuse
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
06 Nov 2015 03:30 PM
I may also mention that this is for my own game I am developing seperately and I will have no partners.


Currently developing a game with Scripters Interactive! Join the group to show support!
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
06 Nov 2015 03:32 PM
@cntkillme

How so? My best bet is that he got help while he was in the Slack team.

@Zax

You're siggy...

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Nov 2015 03:35 PM
Yes it was in slack, and "help" isn't the correct term but whatever.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
06 Nov 2015 03:46 PM
Radars are simple to make.

First decide where the 3D center of it will be be.

Then loop through all the objects it can find.

Check if the object is close enough to be displayed.

Get the direction the from the center to the object.

Create the blip.

Center the blip in the GUI.

Move the blip out from the center in the scaled direction of the 3D center to the object multiplied by the distance.
Report Abuse
Zaxerion is not online. Zaxerion
Joined: 09 Feb 2013
Total Posts: 2304
06 Nov 2015 05:41 PM
@Power

These are two seperate projects.


Currently developing a game with Scripters Interactive! Join the group to show support!
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