Can someone help me make it so everyone can see this i using fireallclients but it isnt working

function ToolManagement.EditWeld(Limb,NumberWeld)

	print(Limb)
	local UseWelds = Instance.new("Weld")
	UseWelds.Part0 = game.Players.LocalPlayer.Character["Torso"]
	UseWelds.Part1 = game.Players.LocalPlayer.Character[Limb]
	
	UseWelds.C0 = NumberWeld
	UseWelds.Parent = game.Players.LocalPlayer.Character["Torso"]
	UseWelds.Name = "LimbsMover"
	if Limb == "Left Leg" then
		UseWelds.C1 = game.Players.LocalPlayer.Character["Torso"]["Left Hip"].C1
	
	elseif Limb == "Right Leg" then
		UseWelds.C1 = game.Players.LocalPlayer.Character["Torso"]["Right Hip"].C1
	elseif Limb == "Torso" then
		UseWelds.C1 = game.Players.LocalPlayer.Character["HumanoidRootPart"].RootJoint.C1
	elseif Limb == "Left Arm" then
		
	
		UseWelds.C1 = game.Players.LocalPlayer.Character["Torso"]["Left Shoulder"].C1
	elseif Limb == "Right Arm" then
		UseWelds.C1 = game.Players.LocalPlayer.Character["Torso"]["Right Shoulder"].C1
	elseif Limb == "Head" then
		UseWelds.C1 = game.Players.LocalPlayer.Character["Torso"]["Neck"].C1
	
		
	end
	game.ReplicatedStorage.Edit:FireServer(UseWelds)
end
game.ReplicatedStorage.Edit.OnServerEvent:Connect(function(Player,Weld)
	
	
	game.ReplicatedStorage.Edit:FireAllClients(Player,Weld)
	
end)

Here is the code this only works for the client but shouldn’t it work for all people since im using fireallclients

1 Like

is this a client script or a server script?

So the one with the function is a module script so its the client and the server one is the where i do .onserverevent

if you call the module on the client, FireAllClients it will not work, the integrated function FireAllClients it’s only available from the server to the client

Hello i made a search on documentation and it exists two type of events Fire Server and FireAllClients you might verify the two calls if it is here the problem. Have a good day

In the client script i do fireserver in the server script i do on the event it firesallclients is that not right?

To help clarify; FireAllClients (which are fired directly from a server script), fires all OnClientEvents which are listening to the same event, on all the clients that are listening for it. I don’t think you can fire events directly from a ModuleScript, but correct me if I am wrong.

Additionally, what also exactly are you trying to achieve? Are you trying to listen for an event in the ModuleScript or are you listening for an event in a Script? From your code it looks like your trying to fire something from a ModuleScript, have it listened for in a server Script and then fire the RemoteEvent again and have it listened to somewhere else?

So ive made a thing that can edit the players limbs by instancing a weld and changing the c0s of it but only the client can see it ebacuse its a module script and im trying to make everyone see it by firing it to the server in the module script then in the server script on the event it fires all the clients. in the paramters ive put the weld but it isnt working can you help?

Ive also added prints to see if it fires and it does

remote event invocation queue exhausted for replicatedstorage.edit; did you forget to implement onclientevent? (4 events)
Ok i just got this errror

Where should i make this local script? Can i make it in startercharactersscript?

What code should i put inside ?

Sorry if im asking for too much.

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