I want to make it so that I can resize the GUI for each frame, using a stringvalue.
local tip = plrgui:WaitForChild('TipGui'):WaitForChild('TipLabel')
local frame = script.Parent
local tipsize = frame:WaitForChild('TipSize')
tip.Size = UDim2.new(tipsize.Value)
How do I make it so that I can change just the value of TipSize to change the size of TipLabel?
You could use string.split and then unpack to do essentially:
local String = game.Workspace.Value.Value ---0,0,100,0
String = string.split(String, ",")
local Udim = UDim2.new(table.unpack(String))
So in your case:
local tip = plrgui:WaitForChild('TipGui'):WaitForChild('TipLabel')
local frame = script.Parent
local tipsize = frame:WaitForChild('TipSize')
local NewString = string.split(tipsize.Value, ",")
tip.Size = UDim2.new(table.unpack(NewString))
And yes it returns nil because it has commas, as something like β0,1,0,1β cannot be converted into a number through the tonumber method/function