Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make metavision with billboard gui's?

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?

1 comment

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.

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.