I'm doing a 911 System and a error pops up... What the error?
Hi. I am doing a 911 System. Look at this script:
01 | button = script.Parent.Callbutton |
02 | locationbox = script.Parent.LocationBox |
03 | typeofemergencybox = script.Parent.EmergencyTypeBox |
04 | describesittuationbox = script.Parent.DescribeSituationBox |
05 | line 1 = script.Parent.Parent.OperatorFrame.line 1 |
06 | line 2 = script.Parent.Parent.OperatorFrame.line 2 |
07 | line 3 = script.Parent.Parent.OperatorFrame.line 3 |
08 | line 4 = script.Parent.Parent.OperatorFrame.line 4 |
09 | line 5 = script.Parent.Parent.OperatorFrame.line 5 |
10 | line 6 = script.Parent.Parent.OperatorFrame.line 6 |
11 | line 7 = script.Parent.Parent.OperatorFrame.line 7 |
15 | describesittuation = nil |
17 | button.MouseButton 1 Click:connect( function () |
18 | location = locationbox |
19 | typeofemergency = typeofemergencybox |
20 | describesittuation = describesittuationbox |
22 | line 1. Text = line 2. Text |
23 | line 2. Text = line 3. Text |
24 | line 3. Text = line 4. Text |
25 | line 4. Text = line 5. Text |
26 | line 5. Text = line 6. Text |
27 | line 6. Text = line 7. Text |
28 | line 7. Text = "%name%, " .. "called for 911, Type Of Emergency: " ..typeofemergency.. ", location: " ..location.. ", Sittuation: " ..describesittuation.. "!" |
It is using a Script not local script because I want it to happen serverside and not local. So then this error pops up:
16:53:07.877 - Players.iiLevelMaker.PlayerGui.ScreenGui.Main.Script:28: attempt to concatenate global 'describesittuation' (a userdata value)