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: Radar help?

Previous Thread :: Next Thread 
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
17 Aug 2016 06:56 PM
for Index, Player in next, game.Players:GetPlayers() do
--snipped (iirelevant)
if (Player.Name ~= LocalPlayer.Name) then
local PlayerDot = Instance.new("Frame", Radar)
PlayerDot.Size = UDim2.new(0, 4, 0, 4)
PlayerDot.BorderColor3 = Color3.new(0, 0, 0)
PlayerDot.BorderSizePixel = 0
PlayerDot.Name = (Player.Name.."_Dot")
if (Player.TeamColor == LocalPlayer.TeamColor) then
PlayerDot.BackgroundColor3 = Color3.new(0.015, 0.686, 0.925)
else
PlayerDot.BackgroundColor3 = Color3.new(1, 0, 0)
end
end
--snipped (irrelevant
end

How do I position it? The radar frame is 100x100 pixels, the position can change (draggable).


-R.B. Box (Regalius Boxikins Box)
Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
17 Aug 2016 06:57 PM
This thread is a mistake
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
17 Aug 2016 06:59 PM
@Monadic
If your not helping please get out. I have every right to post this here.


-R.B. Box (Regalius Boxikins Box)
Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
17 Aug 2016 07:01 PM
And you have every right to wonder why you still exist.
Report Abuse
xshot23 is not online. xshot23
Joined: 17 Oct 2014
Total Posts: 4873
17 Aug 2016 07:02 PM
Woah mona calm the edge
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
17 Aug 2016 07:03 PM
You do realize you shouldn't talk that way to someone with chronic depression? Anyhow, help please @xlaser. :(


-R.B. Box (Regalius Boxikins Box)
Report Abuse
Monadic is not online. Monadic
Joined: 03 Aug 2016
Total Posts: 731
17 Aug 2016 07:04 PM
>depression

You let your feelings and thoughts takeover your lifestyle and how you act?
Seriously, why are you still here?
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
17 Aug 2016 07:04 PM
You can check out this tutorial here for a better way:

https://www.youtube.com/watch?v=6zXfdAa3bwA


Report Abuse
xshot23 is not online. xshot23
Joined: 17 Oct 2014
Total Posts: 4873
17 Aug 2016 07:05 PM
I cant help much

But i think u need magnitude to help with position
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
17 Aug 2016 07:20 PM
Okay now I have this

local LookVector = workspace.CurrentCamera.CFrame.lookVector
Radar.Rotation = (math.deg(math.atan2(LookVector.X, LookVector.Z)) + 180)
for Index, Player in next, game.Players:GetPlayers() do
if (Player.Name ~= LocalPlayer.Name) then
local PlayerDot = Instance.new("Frame", Radar)
PlayerDot.Size = UDim2.new(0, 6, 0, 6)
PlayerDot.BorderColor3 = Color3.new(0, 0, 0)
PlayerDot.BorderSizePixel = 0
PlayerDot.Name = (Player.Name.."_Dot")
if (Player.TeamColor == LocalPlayer.TeamColor) then
PlayerDot.BackgroundColor3 = Color3.new(0.015, 0.686, 0.925)
else
PlayerDot.BackgroundColor3 = Color3.new(1, 0, 0)
end
else
local PlayerDot = Instance.new("Frame", Radar)
PlayerDot.Size = UDim2.new(0, 6, 0, 6)
PlayerDot.BackgroundColor3 = Color3.new(0.015, 0.686, 0.925)
PlayerDot.BorderColor3 = Color3.new(0, 0, 0)
PlayerDot.BorderSizePixel = 0
PlayerDot.Position = UDim2.new(0.5, -3, 0.5, -3)
PlayerDot.Name = (LocalPlayer.Name.."_Dot")
end
end



I still need to know how to position dots though.


-R.B. Box (Regalius Boxikins Box)
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
17 Aug 2016 07:26 PM
People aren't answering because you're not providing enough information. Right now you are presenting us with a vague problem with no clear details. Do you want to position dots based on the direction of the camera or what? How many studs should be represented by one pixel on your gui?


Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
17 Aug 2016 07:29 PM
I just said. The radar is 100x100 pixels, and it's pretty obvious they should stay within that area. i didn't mention there just being a cut off, I don't think. It shouldn't be a constant amount of pixels; it should squeeze all the players (like scale the positions) to fit in the frame.


-R.B. Box (Regalius Boxikins Box)
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
17 Aug 2016 07:48 PM
bump


-R.B. Box (Regalius Boxikins Box)
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