Hey folks,

I'm making my own custom chat GUI and was wondering the best way I should go about position/removing lines for the chat UI.

The maximum amount of chat frames at a time is 6. How would I go about removing it and updating the other positions?

The script I currently have is as followed:


local function createUi(...)
	local tuple={...}
	
	if(canChatLimit(tuple[2])) then
	
		local frame=Instance.new("Frame")
		frame.Name="PlayerChatFrame"
		frame.Transparency=1
		frame.Size=UDim2.new(1,0,.15,0)
		frame.Parent=frame2
		
		
		local textLabel=Instance.new("TextLabel", frame)
		textLabel.TextColor3=Color3.new(200,0,0)
		textLabel.Text=tuple[1]..":"
		textLabel.Name="PlayerName"
		textLabel.Size=UDim2.new(.3,0,1,0)
		textLabel.Position=UDim2.new(0,0,0,0)
		textLabel.BackgroundTransparency=.7
		textLabel.TextStrokeTransparency=0
		textLabel.TextStrokeColor3=Color3.new(170,255,0)
		
		local stringUI=Instance.new("TextLabel", frame)
		stringUI.Name="StringUI"
		stringUI.Text=tuple[2]
		stringUI.TextColor3=TextColor(tuple[1])
		stringUI.Size=UDim2.new(.7,0,1,0)
		stringUI.Position=UDim2.new(0.3,0,0,0)
		stringUI.BackgroundTransparency=.7
		stringUI.TextStrokeTransparency=0
		stringUI.TextStrokeColor3=Color3.new(0,0,0)
		
	end
end

Cheers!

2 comments

0

You have no events...?

0

@aplhawolvess, that's not the full script, just the UI creation part.