Why wont this script work?

So i want all players to spawn with a tea cup in hand, and i want all players to see each others tea cups, so i wrote this script

--Client
local REvent = game:GetService("ReplicatedStorage"):WaitForChild("TeaWelder")


REvent:FireServer()
--Server

local REvent = game:GetService("ReplicatedStorage"):WaitForChild("TeaWelder")


REvent.OnServerEvent:Connect(function(players)
	local Character = players.CharacterAdded:Wait() or players.Character
	local teaArm = game:GetService("Lighting").Assets["Tea Arm"]:Clone()
	local leftArm = Character:WaitForChild("Left Arm")
	local motor6D = Instance.new("Motor6D")

	teaArm.Parent = Character
	motor6D.Parent = leftArm
	motor6D.Part0 = leftArm
	motor6D.Part1 = teaArm

	motor6D.Name = "Tea Arm"
	
end)

I playtest the game, but the teapot wont show (not even on the clients side)

help would be appreciated, thank you for your time :smiley:

You’ll want to switch these two so you don’t wait unless their character doesn’t exist.

1 Like

This worked! thank you so much! it makes alot more sence now lol

1 Like