Hi, I’m getting this error and I don’t know how can I fix that.
If someone help me I appreciated.
The script:
local button = script.Parent
button.MouseButton1Click:Connect(function(player)
game.ReplicatedStorage.Error:FireClient(player, "Error", "This is an Error!", 3)
end)
local button = script.Parent
button.MouseButton1Click:Connect(function(player)
local playerObject = game.Players:GetPlayerFromCharacter(player)
if playerObject then
game.ReplicatedStorage.Error:FireClient(playerObject, "Error", "This is an Error!", 3)
end
end)