Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

LeftHand is not a valid member of Model? Welding Problems

Asked by 5 years ago

So when a player joins it should fire a client but in the client it says that i cannot find the left hand . This is server script

local replicatedstorage = game:GetService("ReplicatedStorage")

game.Players.PlayerAdded:Connect(function(plr)
    replicatedstorage.Remotes.JustARandomWeld:FireClient(plr)
end)        

Local Script

local replicatedstorage = game:GetService("ReplicatedStorage")
local gloves = replicatedstorage.Objects
local remote = replicatedstorage.Remotes.JustARandomWeld

remote.OnClientEvent:Connect(function(plr)
    local leftweld = Instance.new("Weld")
    local gloveleft = replicatedstorage.Objects.LeftArmGloves:Clone()
    gloveleft.Position = game.Players.LocalPlayer.Character.LeftLowerArm
    leftweld.C0 = game.Players.LocalPlayer.Character.LeftLowerArm
    leftweld.C1 = gloveleft.WeldPart
end)
0
Your error is in localscript on 5 line. You dont need to type plr after function. plr that you typed in FireClient from server its info for the server what client will be fired. Just remove it in localscript HaveASip 494 — 5y
0
LeftHand or LeftLowerArm? cherrythetree 130 — 5y
0
yeah but @HaveASip when i remove it it says "Argument 1 missing". And its ment to be leftlowerarm yes WillBe_Stoped 71 — 5y
0
the problem is on line 5 in the localscript, simply remove "plr" from the function and it will work Elixcore 1337 — 5y

Answer this question