Output : Value is not a valid member of TextLabel "Players.JAJA_MAM.PlayerGui.ScreenGui.Background.Experience"

You can write your topic however you want, but you need to answer these questions:

  1. What do I want to achieve?
    An event that fires when the value of my exp changes.
  2. What is the issue?

It prints this when the event fires
image

  1. What solutions have I tried so far?
    I couldn’t find tutorials about the issue

Remote Event Script

game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("Exp").OnServerEvent:Connect(function(Player, Label, Exp, Re, Filler, Level)
	Label.Text = Exp.Value.."/"..Re
	if Exp >= Re then
		Level.Value += 1
	end
	Filler:TweenSize(UDim.new(0, Exp.Value/Re, 0, 13), "In", "Out", 0.5)
end)

Local script

local Background = Gui:WaitForChild("Background")
local Bfill = Background:WaitForChild("BFill")
local Filler = Background:WaitForChild("Filler")
local Experience = Background:WaitForChild("Experience")
local ProfilePicture = Background:WaitForChild("Pic")
local Player = game:GetService("Players").LocalPlayer
local Cash = Background:WaitForChild("Cash")
local Name = Background:WaitForChild("Name")
local leaderstats = Player:WaitForChild("leaderstats")
local Currency = leaderstats:WaitForChild("Currency")
local Exp = leaderstats:WaitForChild("Exp")
local Level = leaderstats:WaitForChild("Level")
local RequiredExp
local LevelUp = Background:WaitForChild("LevelUp")
--//Events
local Events = game.ReplicatedStorage:WaitForChild("Events")
local CashEvent = Events:WaitForChild("Cash")
local LevelEvent = Events:WaitForChild("Level")
local ExpEvent = Events:WaitForChild("Exp")
--//Script//--
Name.Text = Player.Name
ProfilePicture.Image = game.Players:GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)

Cash.Text = Currency.Value.."$"
RequiredExp = (Level.Value * 10)
Experience.Text = Exp.Value.."/"..RequiredExp

Currency:GetPropertyChangedSignal("Value"):Connect(function()
	CashEvent:FireServer(Player, Cash, Currency)
end)

Level:GetPropertyChangedSignal("Value"):Connect(function()
LevelEvent:FireServer(Player, LevelUp, Level)
end)

Exp:GetPropertyChangedSignal("Value"):Connect(function()
ExpEvent:FireServer(Player, Experience, Exp, RequiredExp, Filler, Level)
end)

Which script is the error coming from?

And what type of value are you getting in Exp?

It is from the server script of the remote event. And the exp is a number value.

Don’t pass player as an argument lol
Roblox automatically sends it, remove it from the localscript

1 Like

Your script is messy. I cannot know what is “re”, “filler”

And you should change the text in local script.

1 Like

Well, why are you trying to change the players ui from a server side script with a server event?

It should have been done in the local script, this kinda over complicates things.

sorry. Re means “Required Experience”
and the filler is for my exp bar.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.