Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Localscript works in studio but not online?

Asked by 9 years ago

I have a ScreenGui named 'ServerChat' a frame inside and a textbox as a chatbar. The chat's only clone into the player's playergui and not startergui or other player's playerguis.

01local SetText = script.Parent.Text
02local player = game.Players.LocalPlayer
03local mouse = player:GetMouse()
04 
05function UpdateOldLabels(Parent)
06    for i,v in pairs(Parent:GetChildren()) do
07        if v.Name:sub(1,4):lower() == "line" then
08            local LineNumber = v.Name:sub(5)
09            if LineNumber == "12" then
10                v:Destroy()
11            else
12                v.Name = "line"..tostring(tonumber(LineNumber) + 1)
13                v.Position = v.Position - UDim2.new(0,0,0,15)
14            end
15        end
View all 62 lines...
0
Please tell us what you're trying to do. And it'd probably help if you added a wait(1) on the FIRST line. james24dj 90 — 9y

1 answer

Log in to vote
0
Answered by
mine248 40
9 years ago

So you have to have another script, for server side. It won't work by itself. Also, make a event called "SendMessages".

0
How? GullibleChapV2 155 — 9y
Ad

Answer this question