Error with script

So I making a script that changes text color

Error

TextLabel is not a valid member of ServerScriptService "ServerScriptService"

Script

plr.PlayerGui.ScreenGui.Frame.buy.TextLabel.Text = 'NOT ENOUGH MONEY'
plr.PlayerGui.ScreenGui.Frame.buy.TextLabel.TextColor3 = Color3.new(230, 0, 0)
wait(2)
script.Parent.TextLabel.Text = 'Would you like to buy '..script.Parent.Namee.Value
plr.PlayerGui.ScreenGui.Frame.buy:WaitForChild("TextLabel").TextColor3 = Color3.new(255, 255, 255)

Thats the problem, script.Parent is the ServerScriptService, there isnt a TextLabel there.

1 Like