Oh, because “player” doesn’t come up in the local script.
What do you mean by doesn’t come up? Did you remove it from the OnClientEvent?
I got an error
RemoteEvent.OnClientEvent:Connect(function(text, player)
TextLabel.Text = text
title.Text = player
local TextTransparency = TweenService:Create(TextLabel, TweenInfo.new(1, Enum.EasingStyle.Quint), {TextTransparency = 0})
TextTransparency:Play()
local TextTransparency2 = TweenService:Create(title, TweenInfo.new(1, Enum.EasingStyle.Quint), {TextTransparency = 0})
TextTransparency2:Play()
local BackgroundTransparency = TweenService:Create(frame, TweenInfo.new(1, Enum.EasingStyle.Quint), {BackgroundTransparency = 0})
BackgroundTransparency:Play()
local TextTransparency2 = TweenService:Create(title, TweenInfo.new(1, Enum.EasingStyle.Quint), {TextTransparency = 0})
TextTransparency2:Play()
local BackgroundTransparency = TweenService:Create(line, TweenInfo.new(1, Enum.EasingStyle.Quint), {BackgroundTransparency = 0})
BackgroundTransparency:Play()
task.wait(5)
local TextTransparency = TweenService:Create(TextLabel, TweenInfo.new(1, Enum.EasingStyle.Quint), {TextTransparency = 1})
TextTransparency:Play()
local TextTransparency2 = TweenService:Create(title, TweenInfo.new(1, Enum.EasingStyle.Quint), {TextTransparency = 1})
TextTransparency2:Play()
local BackgroundTransparency = TweenService:Create(frame, TweenInfo.new(1, Enum.EasingStyle.Quint), {BackgroundTransparency = 1})
BackgroundTransparency:Play()
local BackgroundTransparency = TweenService:Create(line, TweenInfo.new(1, Enum.EasingStyle.Quint), {BackgroundTransparency = 1})
BackgroundTransparency:Play()
end)
Players.CoconutError.PlayerGui.ScreenGui.panel.lower.Notify.LocalScript:4: attempt to index nil with ‘Name’
Can you show the FireAllClients
code again after what I said about it?
--//Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--//Variables
local RemoteEvent = ReplicatedStorage.AnnounceEvent
--//Functions
RemoteEvent.OnServerEvent:Connect(function(player, text)
RemoteEvent:FireAllClients(text, player.Name)
end)
Hello? Sorry if I’m bad at coding.
Right sorry, I got busy so I couldn’t stay on the devforums, can you show the code that’s erroring?
Wait I may have just done it, lemme test it.
Sorry for leaving you on a cliff hanger. It worked tysm!
1 Like