So I’m trying to make a underplayer Gui but I don’t know how i’ve seen many games do it like this game RB World 3 but im still stuck on how to do it myself. Can someone please help me thanks.
2 Likes
maybe a part with a surface gui that’s positioned below the player’s root part?
A method you can do is create a template (the part with a SurfaceGui) and then in a LocalScript, clone the template and create a loop using RunService. Inside that loop, set the position of the template with the player’s HumanoidRootPart X and Z position and set the Y value to a number higher than your basketball court’s Y value. For example:
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")
local template = (path to your template instance)
RunService.RenderStepped:Connect(function()
template.Position = Vector3.new(rootPart.Position.X, (your Y value here), rootPart.Position.Z)
end)
Hope this helps!
3 Likes
You could make a part with whatever GUI you want, and then weld that part to the character model so that it is under the player all the time.
1 Like