My script does not work

My Module script did not clone all script to all LocalPlayer’s PlayerGui.

Module script
local module = {}

function module.load(target)
	local Cloned_Events = script.Events:Clone()
	Cloned_Events.Parent = game.ReplicatedStorage
	
	local Cloned_SystemMessage = script["System Message"]:Clone()
	local Cloned_PlayerChatted = script.PlayerChatted:Clone()
	local Cloned_VoteKick = script.VoteKick:Clone()
	Cloned_VoteKick.Parent = workspace
	
	wait(1)
	
	for _,v in pairs(game.Players:GetPlayers()) do
		Cloned_SystemMessage.Parent = v.PlayerGui
		Cloned_PlayerChatted.Parent = v.PlayerGui
	end
end

return module
Video

https://gyazo.com/2fd9913afa607356b8e8a63c285e20f6

More info:

1 Like

I found what I wrong. Sorry guys! :sweat_smile:

1 Like