#second call for help, basic weld stuff
45 messages · Page 1 of 1 (latest)
thats not the issue but thats the part that im welding to the player
Allat stuff works its literally just that I can't move when it welds
?
--!strict
local sv = {}
sv.Players = game:GetService 'Players'
local CharacterAdded = function (character: Model)
local hrp = character:WaitForChild('HumanoidRootPart')
if not hrp:IsA("BasePart") then return end
local part = Instance.new('Part')
part.Name = "BackyPacky"
part.CFrame = hrp.CFrame * CFrame.new(0, 0, 1)
part.Size = Vector3.new(1, 3, 1)
part.Parent = workspace
local weld = Instance.new("WeldConstraint")
weld.Part0 = part
weld.Part1 = hrp
weld.Enabled = true
weld.Parent = part
end
local PlayerAdded = function (player: Player)
player.CharacterAppearanceLoaded:Connect(CharacterAdded)
end
sv.Players.PlayerAdded:Connect(PlayerAdded)
i just script this and it works super well
is weldconstraint the issue?
like i dont understand what does it do for you, and what are you trying to do ?
dont use weld its ugly
welds the part to ethe players right arm (which isnt an issue) i just cant move when its welded, which im assuming is a weldconstraint issue
so just use weldconstraint?
nope
use weldconstraint and make the part CanCollide off
debounce = true
function onTouched(hit)
local h = hit.Parent:findFirstChild("Humanoid")
if (h ~= nil and debounce == true) then
debounce = false
script.Parent.Parent.Part.Position = h.Parent.HumanoidRootPart.Position
script.Parent.Anchored = false
local weld = Instance.new("WeldConstraint")
weld.Part0 = h.Parent["Right Arm"]
weld.Part1 = script.Parent
weld.C0 = CFrame.new(0, -0.5, 0) *CFrame.new(0, 0, 0)
script.Parent.Parent.Part.Parent = h.Parent.HumanoidRootPart
wait(8)
debounce = true
end
end
script.Parent.Touched:connect(onTouched)
yes but are you sure its Right Arm and not RightArm ?
i believe its right arm cause it worked previously
and it also depends on if its a R6 or a R15
R6
** You are now Level 8! **
--!strict
local sv = {}
sv.Players = game:GetService 'Players'
local CharacterAdded = function (character: Model)
local arm = character:FindFirstChild('RightLowerArm') or
character:FindFirstChild("Right Arm")
print(arm)
if not arm:IsA("Part") then return end
local part = Instance.new('Part')
part.BrickColor = BrickColor.Red()
part.Name = "BackyPacky"
part.CFrame = arm.CFrame
part.Size = Vector3.new(1.1, 3.1, 1.1)
part.Parent = character
local weld = Instance.new("WeldConstraint")
weld.Part0 = part
weld.Part1 = arm
weld.Enabled = true
weld.Parent = part
end
local PlayerAdded = function (player: Player)
player.CharacterAdded:Connect(CharacterAdded)
end
sv.Players.PlayerAdded:Connect(PlayerAdded)
you were right its Right Arm
Since weldconstraint didnt work i went back to weld, and the script now works (and welds) but the same issue keeps occuring where the player is just stuck
(for this case its a katana, since its a quest to pick one up)
because there are parts in the stuff he is holding that are Anchored
from what i know, it's not
i double checked and the katana isnt anchored
maybe ill check again rq
maybe i was wrong and it said it was anchored
each little pieces
show explorer
you should use my script its also working for R6
.
only sticking to mien cus i have some presets on there that im using for other stuff that i'll add to this script
Just tryna figure this out
in my oppinion, you should at least try use it with cloning the katana instead of creating a part from scratch like i do
i tried welding it to the humanoidrootpart instead, and it functions fine now with no issues