In this video, I'm teaching you how to Show what players are using to
play Roblox above their heads
Script
--------------------------------------------------
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
wait(1)
game.ReplicatedStorage.pc.OnServerEvent:Connect(function(player)
local billboard = script.BillboardGui:Clone()
billboard.Parent = character.Head
billboard.TextLabel.Text = "pc"
wait(1)
billboard:Destroy()
end)
game.ReplicatedStorage.mobile.OnServerEvent:Connect(function(player)
local billboard = script.BillboardGui:Clone()
billboard.Parent = character.Head
billboard.TextLabel.Text = "mobile"
wait(1)
billboard:Destroy()
end)
game.ReplicatedStorage.console.OnServerEvent:Connect(function(player)
local billboard = script.BillboardGui:Clone()
billboard.Parent = character.Head
billboard.TextLabel.Text = "console"
wait(1)
billboard:Destroy()
end)
end)
end)
--------------------------------------------------
--------------------------------------------------
LocalScript
--------------------------------------------------
wait(0.5)
player = script.Parent.Parent
uis = game:GetService("UserInputService")
console = uis.GamepadEnabled
pc = uis.KeyboardEnabled
mobile = uis.TouchEnabled
while true do
wait(1)
if pc then
game.ReplicatedStorage.pc:FireServer(player)
elseif mobile then
game.ReplicatedStorage.mobile:FireServer(player)
elseif console then
game.ReplicatedStorage.console:FireServer(player)
end
end
-------------------------
Model Link
[ Ссылка ]
![](https://s2.save4k.ru/pic/XSSVdianTss/maxresdefault.jpg)