local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() local debounce = false Mouse.KeyDown:connect(function(key) if key == "v" and not debounce then debounce = true game.ReplicatedStorage.WorkspaceRinkakuModel.PrimaryPart = ReplicatedStorage.WorkspaceRinkakuModel.Primary local RinkakuModel = game.ReplicatedStorage.WorkspaceRinkakuModel:Clone() Player = script.Parent.Parent local w = Instance.new('Weld') w.Part0 = RinkakuModel.PrimaryPart w.Part1 = Player.Character.Torso w.Parent = RinkakuModel w.C0 = CFrame.new(0, 0, 0)*CFrame.new(0, 0, 0) RinkakuModel.Parent = workspace RinkakuModel:MakeJoints() RinkakuModel.Name = Player.Name end end)
It should clone the model from Replicated Storage and weld the primary part to my torso when I press V But its not. This is a Local Script. Despite being called "WorkspaceRinkakuModel" the model is in Replicated Storage.
After parenting it to the workspace, makejoints, and then parent the weld to the torso. That way the primary part isn't teleported before joints have been made.
Finished Script
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() local m m = Mouse.KeyDown:connect(function(key) if key == "v" then m:disconnect() local RinkakuModel = game.ReplicatedStorage.RinkakuModel:Clone() --Assuming the model is now in ReplicatedStorage local w = Instance.new('Weld') w.Part0 = RinkakuModel.PrimaryPart w.Part1 = Player.Character.Torso RinkakuModel.Parent = Player.Character RinkakuModel:MakeJoints() w.Parent = Player.Character.Torso RinkakuModel.Name = Player.Name end end)
Comment if the code doesn't work for you, and I'll see what I might've done wrong.