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

How do I make this script work with Filtering Enabled?

Asked by
Jexpler 63
5 years ago

I want all players to be able to see this above a player's head, but FE stops that.

        plr = game.Players.LocalPlayer
        char = game.Players.LocalPlayer.Character
        groupId = 3289024
        billboard = Instance.new("BillboardGui")
        billboard.Size = UDim2.new(1,0,.5,0)
        billboard.StudsOffset = Vector3.new(-1.5,3,0)
        text = Instance.new("TextLabel")
        text.Size = UDim2.new(4,0,2,0)
        text.FontSize = "Size14"
        text.TextScaled = true
        text.TextWrapped = false
        text.TextColor3 = Color3.new(255,0,0)
        text.Position = UDim2.new(0,0,0,19)
        text.TextTransparency = .4
        text.Text = plr:GetRoleInGroup(groupId)
        text.BackgroundTransparency = 1
        text.Parent = billboard
        billboard.Parent = char.Helmet.Middle

        billboard = Instance.new("BillboardGui")
        billboard.Size = UDim2.new(1,0,.5,0)
        billboard.StudsOffset = Vector3.new(-1.5,3,0)
        text = Instance.new("TextLabel")
        text.Size = UDim2.new(4,0,2,0)
        text.FontSize = "Size14"
        text.TextScaled = true
        text.TextWrapped = false
        text.TextColor3 = Color3.new(255,0,0)
        text.Position = UDim2.new(0,0,0,-10)
        text.TextTransparency = .4
        text.Text = plr.Name
        text.BackgroundTransparency = 1
        text.Parent = billboard
        billboard.Parent = char.Helmet.Middle

        touched.Parent.Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll
            end
        end
    end
end)
0
The top half of your script got cut off... I can try and help even without the top half if you want lol Hexcede 52 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Put a remote event in replicated storage, a server script in server script service

local script:

game:GetService("Players").PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        game:GetService("ReplicatedStorage").RemoteEvent:FireServer()
    end)
end)

server script:

local groupId = 3289024

game:GetService("ReplicatedStorage").RemoteEvent.OnServerEvent:Connect(function(player)
    --make billboard gui stuff
end)
    plr = game.Players.LocalPlayer
    char = game.Players.LocalPlayer.Character
    groupId = 3289024
    billboard = Instance.new("BillboardGui")
    billboard.Size = UDim2.new(1,0,.5,0)
    billboard.StudsOffset = Vector3.new(-1.5,3,0)
    text = Instance.new("TextLabel")
    text.Size = UDim2.new(4,0,2,0)
    text.FontSize = "Size14"
    text.TextScaled = true
    text.TextWrapped = false
    text.TextColor3 = Color3.new(255,0,0)
    text.Position = UDim2.new(0,0,0,19)
    text.TextTransparency = .4
    text.Text = plr:GetRoleInGroup(groupId)
    text.BackgroundTransparency = 1
    text.Parent = billboard
    billboard.Parent = char.Helmet.Middle

    billboard = Instance.new("BillboardGui")
    billboard.Size = UDim2.new(1,0,.5,0)
    billboard.StudsOffset = Vector3.new(-1.5,3,0)
    text = Instance.new("TextLabel")
    text.Size = UDim2.new(4,0,2,0)
    text.FontSize = "Size14"
    text.TextScaled = true
    text.TextWrapped = false
    text.TextColor3 = Color3.new(255,0,0)
    text.Position = UDim2.new(0,0,0,-10)
    text.TextTransparency = .4
    text.Text = plr.Name
    text.BackgroundTransparency = 1
    text.Parent = billboard
    billboard.Parent = char.Helmet.Middle

    touched.Parent.Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll
        end
    end
end

end)

I'm just assuming you want this done when the player joins since you cut off the entrance to your function

Ad

Answer this question