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

Cant weld parts outside of a tool?

Asked by 6 years ago
local player = game.Players.LocalPlayer
local character = player.Character
local rhand = character.RightHand

local weld = Instance.new("Weld")
weld.Parent = script.Parent
weld.Part0 = script.Parent
weld.C0 = rhand.CFrame:inverse()
weld.Part1 = rhand
weld.C1 = script.Parent.CFrame:inverse()
script.Parent.Anchored = false
script.Parent.CFrame = rhand.CFrame * CFrame.new(0,0,4)

This script welds parts together whenever they're inside a tool, but for the life of me I cant get it to work without being in a tool.

0
any errors hellmatic 1523 — 6y
0
Nope nicktooner 119 — 6y
0
your trying to weld a tool without the script being in the tool? hellmatic 1523 — 6y
0
I'm trying to weld a standard part to my right hand without having to use a tool. nicktooner 119 — 6y
View all comments (4 more)
0
The `script.Parent` is the tools handle? hellmatic 1523 — 6y
0
or 'standard part' hellmatic 1523 — 6y
0
Script.Parent is just a "Part" in workspace nicktooner 119 — 6y
0
So basically, I've got a part in work-space with the above local script inside of that. nicktooner 119 — 6y

Answer this question