Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why isn't my welding Remote Event script working?

I've been trying to make a remote event that welds clothes but it doesn't work,and for some reason the FireServer local script doesnt do anything at all.

this is the FireServer local script,which is in the StarterGUI

game.Players.PlayerAdded:wait()

game.Workspace.Part.Touched:connect(function()			
game.Workspace.RicoClass.RicoEvent:FireServer()

end)

this is the OnServerEvent script,which is in the ServerScriptStorage

local Debounce = false
local replicatedstorage = game:GetService("ReplicatedStorage")
local RicoEvent = Instance.new("RemoteEvent")
RicoEvent.Parent = replicatedstorage.RicoClass
RicoEvent.Name = "RicoEvent"


RicoEvent.OnServerEvent:connect(function(player)
	wait()
	if not Debounce then
		Debounce = true


	local RicoClasss = game.ReplicatedStorage.RicoClass.RicoClothes
	local TopShirtClone = RicoClasss.TopShirt
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.UpperTorso
		w.Part1 = TopShirtClone
		w.C0 = CFrame.Angles(0,4.7,0)
		w.C1 = CFrame.new(0,-0.056,0)
		
	
		
			local TopShirtClone = RicoClasss.BottomShirt
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.LowerTorso
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0,0)
	
		
		local TopShirtClone = RicoClasss.LeftUpperPant
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.LeftUpperLeg
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0,0)
		
		local TopShirtClone = RicoClasss.LeftLowerPant
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.LeftLowerLeg
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0,0)
		
		local TopShirtClone = RicoClasss.RightUpperPant
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = playerCharacter.RightUpperLeg
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0,0)
		
		local TopShirtClone = RicoClasss.RightLowerPant
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.RightLowerLeg
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0,0)
		
		local TopShirtClone = RicoClasss.RightAnkle
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.RightLowerLeg
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0.5,0)
		
		local TopShirtClone = RicoClasss.LeftAnkle
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.LeftLowerLeg
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0.5,0)
		
		local TopShirtClone = RicoClasss.LeftBrass
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.LeftLowerArm
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0.5,0.5,0)
		
		local TopShirtClone = RicoClasss.LeftBrass1
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.LeftLowerArm
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0.24,0)
		
		local TopShirtClone = RicoClasss.RightBrass
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.RightLowerArm
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(-0.5,0.5,0)
		
		local TopShirtClone = RicoClasss.RightBrass1
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.RightLowerArm
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,0.24,0)
		
			local TopShirtClone = RicoClasss.RicoHair
	TopShirtClone:Clone()
	TopShirtClone.Parent = player.Character
		local w = Instance.new("Weld", TopShirtClone)
		w.Part0 = player.Character.Head
		w.Part1 = TopShirtClone
		w.C1 = CFrame.new(0,-0.4,-0.31)
		
	end	
end)

4 comments

0

Do you know if the remoteevent is firing to the server?

0

You don't need to use a remote event for this kind of task. You can just have a touched event on the sever.

0

I don't think its firing at all Precise. Nothing happens when i touch the part.

0

And kingdom i need to learn how to use Remote Events, this is practice.

1 answer

Try removing the first line in the local script, PlayerAdded should be used in a server script. This is the only problem I could find.

This discussion is preserved as it was. New answers, comments, and votes are closed.