Ok so, what I am trying to do is make it so when you click a TextButton, It changes an ImageLabel ID inside of the BillboardGui that appears above the player. That same BillboardGui also has a TextLabel in it that shows the players name.
I’ve tried changing around a few things by looking at the Output, but I don’t know what to do now. The output says “LocalPlayer is not a valid member of DataModel “GAME NAME”” and I don’t really know how to fix that.
I’ve looked for solutions in a lot of places but none of them actually fix my problem
local BillboardGui = game.LocalPlayer.BillboardGui
local ImageLabel = BillboardGui.ImageLabel
script.Parent.MouseButton1Click:Connect(function()
ImageLabel.Image = 8989779741
end)
The script is inside of the TextButton that I am clicking, Which is inside of a frame in a ScreenGui with roughly 10 other frames
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local BillboardGui = Character:WaitForChild("BillboardGui")
local ImageLabel = BillboardGui:WaitForChild("ImageLabel")
local TextButton = script.Parent
TextButton.MouseButton1Click:Connect(function()
ImageLabel.Image = "rbxassetid://8989779741"
end)