Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
|
| 12 Oct 2016 09:34 AM |
Does anyone have any idea how they did this? https://www.roblox.com/games/398104353/Run-Gun-Jetpack-Sim
The health and ammo are bricks that must be local to the player and strapped onto the player somehow I figure. Does anyone have any idea or know how they did this? |
|
|
| Report Abuse |
|
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 12 Oct 2016 10:07 AM |
They probably use the camera's CFrame and use a while loop to place the GUI elements.
|
|
|
| Report Abuse |
|
|
Naco88
|
  |
| Joined: 30 Oct 2009 |
| Total Posts: 665 |
|
|
| 12 Oct 2016 10:22 AM |
It seems kind of unnecessary.
You could just have an image of the 3D health bar in it's different stages maybe? |
|
|
| Report Abuse |
|
|
Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
|
| 12 Oct 2016 11:06 PM |
ok I have this, now my question is how would I adjust its position to adjust with the size of the computer screen so that it is not always in 1 spot
local player = game.Players.LocalPlayer local camera=workspace.CurrentCamera local part= game.Workspace.Union--Instance.new("Part",camera) -- local parts part.Parent = camera part.Anchored = true
camera.Changed:connect(function() part.CFrame=camera.CFrame *CFrame.new(-4,-3,-6) *CFrame.Angles(-.1,.6,-0.1) end)
|
|
|
| Report Abuse |
|
|
Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
| |
|
KreoBox
|
  |
| Joined: 24 Aug 2016 |
| Total Posts: 356 |
|
| |
|
Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
|
| 13 Oct 2016 11:35 AM |
| That didnt do anything, how would it even effect it? |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2016 11:39 AM |
KreoBlox is a tool.
CFramed tools in the camera is how they did that.
They stole assets from PF badly tho.
WolfgangVonPrinz // Private Drive - Residents Only |
|
|
| Report Abuse |
|
|
Raildex
|
  |
| Joined: 06 Dec 2009 |
| Total Posts: 934 |
|
|
| 13 Oct 2016 11:47 AM |
| could you elaborate on that? |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2016 11:52 AM |
He put the bricks in CurrentCamera and CFramed them to the Camera's CFrame, simple as abc
|
|
|
| Report Abuse |
|
|
|
| 13 Oct 2016 12:11 PM |
| Creating a HUD out of parts isn't impossible, however, unless you're using an insanely low FoV you'll get unwanted warping. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2016 12:21 PM |
| I went ahead and visited the place you linked. Not sure who's claiming to have scripted that but it's from this open sourced place: https://www.roblox.com/games/391889168/Weapon-System |
|
|
| Report Abuse |
|
|