Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make metavision with billboard gui's?

Asked by 4 years ago

So I wanted to make a billboard GUI that appears for every player but when you press g only you can see the guy. So pretty much when you press g you can see where everyone is at and only you and like I have no idea how to do this I tried doing a thing with UserInputService and making the GUI not visible, but I have no idea how to do this. Can you please help me?

0
You'd need to use a billboard gui and probably keep the ui client-sided and make its Adornee the player's head. So, you'd be looping through each player and making a Billboard GUI in a local script and setting its Adornee to each player's head or something of the sort. IdealistDeveloper 234 — 4y

1 answer

Log in to vote
0
Answered by
Narunzo 172
4 years ago
Edited 4 years ago

You want to have remote events control the gui on the server and do like you were saying and make its visible property false or make it disabled using a LocalScript in the StarterGui like this:

local UserInputService = game:GetService("UserInputService")

local Player = game:GetService("Players").LocalPlayer
local Map = Player:WaitForChild("PlayerGui"):FindFirstChild("Map")

function Toggle(Key)
    if Key.KeyCode == Enum.KeyCode.G then
        if Map then
            if Map.Enabled then
                Map.Enabled = false
            else
                Map.Enabled = true
            end
        else
            print('Change "Map" to the name of your gui.')
        end
    end
end

UserInputService.InputBegan:Connect(Toggle)
Ad

Answer this question