Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I made a working phone but it does not fliter. Can you help me?

So I made a phone but it does not filter I have looked at the ROBLOX wiki. Here is the script.

script.Parent.MouseButton1Click:connect(function()
	script.Parent.Parent.values.newMessage.Value = script.Parent.Parent.Parent.thisPhone.Value .. ": " .. script.Parent.Parent.MessageBox.Text
	local workphone = script.Parent.Parent.Parent.otherPhone.Value
	local playerphone = workphone:FindFirstChild("player")
	if playerphone.Value ~= nil then
		local pp = playerphone.Value
		pp.PlayerGui.PhoneGUI.ChatScreen.values.newMessage.Value = script.Parent.Parent.Parent.thisPhone.Value .. ": " .. script.Parent.Parent.MessageBox.Text
	end
end)

function updateLine()
	script.Parent.Parent.values.line10.Value = script.Parent.Parent.values.line9.Value
	script.Parent.Parent.values.line9.Value = script.Parent.Parent.values.line8.Value
	script.Parent.Parent.values.line8.Value = script.Parent.Parent.values.line7.Value
	script.Parent.Parent.values.line7.Value = script.Parent.Parent.values.line6.Value
	script.Parent.Parent.values.line6.Value = script.Parent.Parent.values.line5.Value
	script.Parent.Parent.values.line5.Value = script.Parent.Parent.values.line4.Value
	script.Parent.Parent.values.line4.Value = script.Parent.Parent.values.line3.Value
	script.Parent.Parent.values.line3.Value = script.Parent.Parent.values.line2.Value
	script.Parent.Parent.values.line2.Value = script.Parent.Parent.values.line1.Value
	script.Parent.Parent.values.line1.Value = script.Parent.Parent.values.line0.Value
	script.Parent.Parent.values.line0.Value = script.Parent.Parent.values.newMessage.Value
	script.Parent.Parent.values.newMessage.Value = ""
end

script.Parent.Parent.values.newMessage.Changed:connect(updateLine)

1 answer

See here and here.

2 comments

0

.... I just said I readed the wiki and I don't know were to put the script dude. Read the whole question before you send a answer.

0

Put it before you send it through the phone, isint that obvious?

This discussion is preserved as it was. New answers, comments, and votes are closed.