Is it possible to use values from a dictionary in the same one? I have provided an example below:
local events = {
Event1 = {
Amount = math.random(10, 25),
Status = 'A random plate will stretch upwards by '..events.Event1.Amount..' studs', -- the line outputting the error
Event = function(plate)
ts:Create(plate, TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Size = Vector3.new(plate.Size.X, plate.Size.Y + 20, plate.Size.Z)}):Play()
end
}
}
I forgot to include events in the post, apologies:
local events = {
Event1 = {
Amount = math.random(10, 25),
Status = 'A random plate will stretch upwards by '..events.Event1.Amount..' studs', -- the line outputting the error
Event = function(plate)
ts:Create(plate, TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Size = Vector3.new(plate.Size.X, plate.Size.Y + 20, plate.Size.Z)}):Play()
end
}
}