So, I tried to make a little chat-thing script. Once you look at the script you may understand. (There is an event in serverstorage.)
Event - Firer script. (LocalScript)
game.Players.PlayerAdded:Connect(function()
game.ServerStorage.ChatEvents:FireServer("Ah, I have a headache... I can't see...")
end)
Detector script in the textlabel . (Normal script)
game.ServerStorage.ChatEvents.OnServerEvent:Connect(function(sentence)
local oof = tostring(sentence) -- I do this for safety
script.Parent:TweenPosition(UDim2.new(0.25, 0, 0.85, 0), "In", "Linear", 0.2)
for i = 1, #oof do
script.Parent.Text = string.sub(oof, 1, i)
end
script.Parent:TweenPosition(UDim2.new(0.25, 0, 1.2, 0), "Out", "Linear", 0.2)
script.Parent.Text = " "
end)

9 comments
Use the print() command under each line of code to see if it's firing.
OK let me try...
Apparently the "PlayerAdded" function is not working.
Any reasons for it?
The reason that's happening is that the player is loading in before the script does.
So how do I fix it? I'm sorry, I'm a bit new to this kind of scripting. (Not new to scripting though xD )
in this particular case, you cannot use PlayerAdded in a local script
also remember you must always do player,sentence instead of just sentence
hmm. Thanks. I'll get to it soon! thanks, bye