Received a message from ROBLOX saying my game has a custom GUI...blah..blah... But the script that they are on about does not even use the roblox chat system can anybody help?
Here is the Script:
***RadioGUIScript***
wait(1)
local MainGUI = script.Parent
local GUI = MainGUI.Frame
local Tool = MainGUI.Tool
local Channel = game.Workspace["MilitaryRadioSystem"]
function Transmit(MSG, Targ)
if Tool.Value.On.Value == false then return end
Channel.Line1.Value = Channel.Line2.Value
Channel.Line2.Value = Channel.Line3.Value
Channel.Line3.Value = Channel.Line4.Value
Channel.Line4.Value = Channel.Line5.Value
Channel.Line5.Value = Channel.Line6.Value
Channel.Line6.Value = Channel.Line7.Value
Channel.Line7.Value = Channel.Line8.Value
Channel.Line8.Value = Channel.Line9.Value
Channel.Line9.Value = " ".. Tool.Value.Parent.Name ..": ".. MSG
end
script.Parent.Frame:TweenPosition(UDim2.new(0.054, 0, 0.643, 0),"Out","Quad",1,true)
MainGUI.Parent.Parent.Chatted:connect(Transmit)
***UpdateScript***
wait(1)
default = "AN/PRC-149"
fail = "ERROR://Please enter a RadioTitle Name."
success = "SUCCESS://RADIO IS RUNNING WITHOUT ANY PROBLEMS."
local MainGUI = script.Parent
local GUI = MainGUI.Frame
local Tool = MainGUI.Tool
local Channel = game.Workspace["MilitaryRadioSystem"]
function Update()
GUI.Line1.Text = Channel.Line1.Value
GUI.Line2.Text = Channel.Line2.Value
GUI.Line3.Text = Channel.Line3.Value
GUI.Line4.Text = Channel.Line4.Value
GUI.Line5.Text = Channel.Line5.Value
GUI.Line6.Text = Channel.Line6.Value
GUI.Line7.Text = Channel.Line7.Value
GUI.Line8.Text = Channel.Line8.Value
GUI.Line9.Text = Channel.Line9.Value
Tool.Value.Handle.Alert.Volume = 0.4
Tool.Value.Handle.Alert.Run.Value = true
end
if script.Parent.RadioTitle.Value == "Enter name" then
script.Parent.RadioTitle.Value = default
print(fail)
else
print(success)
end
|