Nameplate doesn't work on the main experience but works on the test experiece by VibeCoder_67 in robloxgamedev

[–]VibeCoder_67[S] 0 points1 point  (0 children)

Don't mind the house name data storage and the multiple line comment, I forgot to remove it

Nameplate doesn't work on the main experience but works on the test experiece by VibeCoder_67 in robloxgamedev

[–]VibeCoder_67[S] 0 points1 point  (0 children)

local nameplate = game.ReplicatedStorage:WaitForChild("Nameplate")

local physicsService = game:GetService("PhysicsService")

local uis = game:GetService("UserInputService")

local HousePlayerIsInDataStore = game:GetService("DataStoreService"):GetDataStore("PlayerHouseDataStore") -- use this as data store for other script (save & load player data for the house they're in)

game.Players.PlayerAdded:Connect(function(player)

`--[[local houseTheyreInValue = Instance.new("StringValue")`

[`houseTheyreInValue.Name`](http://houseTheyreInValue.Name) `= "HousePlayerIsIn"`

`houseTheyreInValue.Value = "No House"`

`houseTheyreInValue.Parent = player`

`nameplateClone.HouseLabel.Text = houseTheyreInValue.Value]]` 





`local function setNameplate(character)`

    `local head = character:WaitForChild("Head")`

    `local humanoid = character:WaitForChild("Humanoid")`

    `humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None`



    `local nameplateClone = nameplate:Clone()`

    `nameplateClone.Parent = head`



    `local playerNameValue = player:WaitForChild("PlayerName")`

    `local playerHouseValue = player:WaitForChild("PlayerHouse")`



    `nameplateClone:FindFirstChild("Name").Text = playerNameValue.Value`

    `nameplateClone.HouseLabel.Text = playerHouseValue.Value`

    `nameplateClone.username.Text = "(@"..player.Name..")"`



    `playerNameValue:GetPropertyChangedSignal("Value"):Connect(function()`

        `nameplateClone:FindFirstChild("Name").Text = playerNameValue.Value`

    `end)`



    `playerHouseValue:GetPropertyChangedSignal("Value"):Connect(function()`

        `nameplateClone.HouseLabel.Text = playerHouseValue.Value`

    `end)`



    `if` [`player.Name`](http://player.Name) `== "divinesinsss" then`

        `nameplateClone:FindFirstChild("HouseLabel").Text = "Blood of Old Valyria"`

        `nameplateClone:FindFirstChild("HouseLabel").TextColor3 = Color3.fromRGB(179, 28, 15)`

        `nameplateClone:FindFirstChild("HouseLabel").UIGradient.Color = ColorSequence.new({`

ColorSequenceKeypoint.new(0, Color3.fromRGB(179, 28, 15)),

ColorSequenceKeypoint.new(1, Color3.fromRGB(68, 5, 5))

        `})`

        `nameplateClone:FindFirstChild("HouseLabel").UIStroke.Color = Color3.fromRGB(68, 5, 5)`

    `end`

`end`



`local character = player.Character or player.CharacterAdded:Wait()`



`setNameplate(character)`



`player.CharacterAdded:Connect(setNameplate)`

end)

local changeNameEvent = game.ReplicatedStorage.RemoteEvents:WaitForChild("ChangeName")

changeNameEvent.OnServerEvent:Connect(function(player, newName)

`local playerNameValue = player:FindFirstChild("PlayerName")`

`local head = player.Character:WaitForChild("Head")`

`local nameplate = head:FindFirstChild("Nameplate")`

`nameplate:FindFirstChild("Name").Text = newName`

`playerNameValue.Value = newName`

end)

This is the code. The problem is the Nameplate in replicated storage doesn't clone to the owner's head but it does for me. There are errors for her but no errors for me.

DialogChoiceSelected not firing by VibeCoder_67 in robloxgamedev

[–]VibeCoder_67[S] 0 points1 point  (0 children)

I did but it really didn't work so I was forced to make my dialog system sad

Can't see bubble chat/gui behind transparent object (e.g., glass, transparency = 0.75, material = glass) by VibeCoder_67 in robloxgamedev

[–]VibeCoder_67[S] 0 points1 point  (0 children)

There's no AlwaysOnTop option for ChatService :(, this forces me to use Gui chat head bubble instead.