#second call for help, basic weld stuff

45 messages · Page 1 of 1 (latest)

balmy lava
#

whats script.Parent.Parent.Part

latent needle
#

Allat stuff works its literally just that I can't move when it welds

balmy lava
#

💀

#

wait

latent needle
balmy lava
#
--!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

latent needle
balmy lava
#

like i dont understand what does it do for you, and what are you trying to do ?

balmy lava
latent needle
balmy lava
latent needle
balmy lava
latent needle
# balmy lava 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)

balmy lava
latent needle
balmy lava
latent needle
#

wait maybne im wrong cause the script doesnt work now

#

ill try it rq.

balmy lava
#

and it also depends on if its a R6 or a R15

latent needle
dusky spireBOT
#

studio** You are now Level 8! **studio

balmy lava
#
--!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

latent needle
#

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)

balmy lava
#

because there are parts in the stuff he is holding that are Anchored

latent needle
#

i double checked and the katana isnt anchored

#

maybe ill check again rq

#

maybe i was wrong and it said it was anchored

balmy lava
#

each little pieces

latent needle
#

its all one mesh

balmy lava
#

show explorer

latent needle
balmy lava
#

you should use my script its also working for R6

latent needle
#

Just tryna figure this out

balmy lava
#

in my oppinion, you should at least try use it with cloning the katana instead of creating a part from scratch like i do

latent needle