I’m trying to weld a weapon model to the player the when they spawn into the game. This is my first time experimenting with welds, so I’m having some trouble. There are no errors in the output, but the weapon is not even appearing in the workspace. I left my Script down below, along with the model of the Weapon and its properties.
--//SERVICES//--
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
--//OBJECT VARIABLES//--
local Weapons = ReplicatedStorage.Weapons
local Greatsword = Weapons:WaitForChild("Greatsword")
Players.PlayerAdded:Connect(function(plr)
local GreatswordClone = Greatsword:Clone()
GreatswordClone.Parent = plr
local Character = plr.Character
local Weld = Instance.new("Weld")
Weld.Part1 = Character:FindFirstChild("Right Arm")
Weld.Part0 = GreatswordClone:WaitForChild("BodyAttach")
Weld.Parent = GreatswordClone:WaitForChild("BodyAttach")
end)
I am not sure I would check throught the properties and so on, I do recommend using this plugin Tool Grip Editor - Roblox it costs 5 robux but I would say its well worth it and its very easy to use, Sorry I could not offer any other help.
I’ll buy this plugin, in case I work with tools in the future. Currently, I’m trying to create a weapon that is not a tool, so the player starts with it.