Ok so i pretty much want to move a model to a certain position in this case the players LeftLowerArm so i did this but it didn't work can someone explain why to me?
--Client
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(input,gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.G and not gameProcessedEvent then
script.Parent.Remotes.Equip:FireServer()
end
end
end)
--Server
script.Remotes.Equip.OnServerEvent:Connect(function(plr)
local g = script.Gauntlet:WaitForChild("Thanos"):Clone()
local c = plr.Character
g.Parent = plr.Character
g.LeftLowerArm.PlayerWeld.Part1 = c.LeftLowerArm
c.LeftHand.Transparency = 1
g.LeftLowerArm:TranslateBy(c.LeftLowerArm.Position-g.LeftLowerArm:GetModelCFrame().p)
for _, x in next, g:GetChildren() do
local Match = c:FindFirstChild(x.Name)
if (Match) then
x:SetPrimaryPartCFrame(Match.CFrame)
end
end
end)

3 comments
I didnt clarify that these are two different scripts
take it step by step. see if the remote is firing to the server. after that, see if the gauntlet clone and character exist / gauntlet gets parented into the player. tell me when it stops working as expected
It is firing and it is in the player so i dont see what is wrong