Frame not firing to all clients in killfeed

so, i have a script that, whenever you get a kill it updates your killfeed frame, and then duplicates it and sends it to all players with a function, and a remoteevent firing to all clients, however, it doesnt want to seem to go in everyone’s PlayerGui so it wont show up if someone kills a person, only to them, its like it’s local

--duplication function, SERVER SCRIPT BY THE WAY, THERE IS NO LOCAL
function CPA()
	local SCF = Player.PlayerGui["StudCounter"].Frame
	local Clone = SCF:Clone()
	Clone.Parent = Player.PlayerGui["KillFeed"].Frame
	Clone.Visible = true
end


function getstuds(humanoid, Humanoid)
	local deadpos = humanoid.Parent.HumanoidRootPart.Position
	local killerpos = Humanoid.Parent.HumanoidRootPart.Position
	local studsindist = killerpos - deadpos
	local studs = tostring(studsindist)
	local str = "%.1s"
	local stud = string.format(str, studs)
	local killername = Humanoid.Parent.Name
	local victimname = humanoid.Parent.Name
	local Killer = Player.PlayerGui["StudCounter"].Frame.Killer
	local Victim = Player.PlayerGui["StudCounter"].Frame.Victim
	local Studs = Player.PlayerGui["StudCounter"].Frame.Studs
	local Streak = Player.PlayerGui["StudCounter"].Frame.Streak
	local PlayerGUI = Player.PlayerGui["KillFeed"].Frame
	local PlayerName = Humanoid.Parent.Name
	local remote = game.ReplicatedStorage.Remotes:WaitForChild("Send")
	

--setting of the stats
	Killer.Text = ("🉐 " .. killername .. "  Killed    ")
	Victim.Text = ("       " .. victimname)
	Studs.Text = ("(" .. stud .."  studs away" .. ")")
	Streak.Text = ("x"..count)
	--thing that fires the function to all clients "supposedly"
   	remote:FireAllClients(CPA())

	print(studsindist)
end

fixed it myself using module scripts

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.