|
| 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
|
  |
| Joined: 03 Aug 2016 |
| Total Posts: 731 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 4873 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 17 Aug 2016 07:48 PM |
bump
-R.B. Box (Regalius Boxikins Box) |
|
|
| Report Abuse |
|
|