#how can i fix this ?

1 messages · Page 1 of 1 (latest)

clear mauve
#

i want to have an alternative but idk how because when i click that equipe the model on the player with a zone but the point of the zone go on the middle
so its put the arms where the point is and when my point is at the ground the hands are there, but its too little to click and hard for the player
): @ me if u need more screens

dense torrent
#

I don't know how the logic of your scripts work but, make the click part only give the tool to you and adjust the handle to the position you want it to be

clear mauve
#

its not a tool

#

its a model

#

this is this point who put my hands

#

@dense torrent

dense torrent
# clear mauve this is this point who put my hands

I would recommend you to make a tool, on every grab able model you put a invisible handle and when you click the grab part it grabs the model with the handle, puts it into a tool and then parents it to the player inv

clear mauve
#

ookok

desert yarrow
#

such that the handle and the click detector are separate

clear mauve
#

if u want i can give u the script to see

#

local Players = game:GetService("Players")
local lp = Players.LocalPlayer
local Tool = script.Parent
local Anim = script:FindFirstChild("Idle")

-- Wait for character and humanoid to be ready
local character = lp.Character or lp.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:FindFirstChildOfClass("Animator") or Instance.new("Animator", humanoid)

-- Load the animation
local Loaded = animator:LoadAnimation(Anim)
local Weld = nil

-- Attach Zone part above player's head
local function attachAboveHead()
    local head = character:FindFirstChild("Head")
    local zone = Tool:FindFirstChild("Zone")
    if not head or not zone then return end

    -- Remove existing welds
    for _, w in ipairs(zone:GetChildren()) do
        if w:IsA("WeldConstraint") then
            w:Destroy()
        end
    end

    -- Create new weld
    Weld = Instance.new("WeldConstraint")
    Weld.Name = "AboveHeadWeld"
    Weld.Part0 = zone
    Weld.Part1 = head
    Weld.Parent = zone

    -- Position zone above the head
    local offset = Vector3.new(0, 0, 0)
    zone.CFrame = head.CFrame * CFrame.new(offset)
    zone.Anchored = false
end

-- Detach Zone from head
local function detachFromHead()
    local zone = Tool:FindFirstChild("Zone")
    if zone then
        for _, w in ipairs(zone:GetChildren()) do
            if w:IsA("WeldConstraint") and w.Name == "AboveHeadWeld" then
                w:Destroy()
            end
        end
    end
end

-- Handle Equip
local function Equipped()
    if not Loaded then
        Loaded = animator:LoadAnimation(Anim)
    end
    Loaded:Play()
    attachAboveHead()
end

-- Handle Unequip
local function Unequipped()
    if Loaded then
        Loaded:Stop()
    end
    detachFromHead()
end

-- Bind events
Tool.Equipped:Connect(Equipped)
Tool.Unequipped:Connect(Unequipped)

-- If tool is already equipped when script runs
if Tool.Parent == character then
    Equipped()
end
desert yarrow
#

then put attachment in the zone and use that 👍

#

also you should set that position before welding it otherwise it will teleport the player with it (and appear to do nothing)

clear mauve
#

yess

#

but when i put the a position that do nothing

#

i already tried to change it but it dosen't work :/

#

OK MB

#

wait

desert yarrow
#

dont forget to move the attachment to where the hands should be

clear mauve
#

yeah

desert yarrow
#

if you do zone.CFrame = head.CFrame * attachment.CFrame then it will also inherit the attachment's rotation

#

or you could just rotate the zone, either/or 🤷

clear mauve
#

idk its not working..

desert yarrow
#

show updated code

clear mauve
#

okay

#

im trying to change the position but i need to equipe and unequip

desert yarrow
#

coz setting cframe of any part of an assembly will move the entire assembly, including the player if it's welded to the player

clear mauve
#

sorry if im dumb bro but im new to studio and yea im bad 🥲

desert yarrow
#

tho i'm guessing ai wrote this for you

clear mauve
#

because ai is not very yea

#

bro i don't very understand that crazy but thanks for ur help brotha

#

@desert yarrow can u just say what do i need to do to fix it please 🙏

desert yarrow
#

i did

clear mauve
#

yes. i will read and try my best (btw im not english )

#

that is just i yo u can resume 🥲 🙏

clear mauve
#

@desert yarrow Can you just send me the correct code or things to do please bro im stuck crying 🙏

#

im sorry if im annoying but i need help

desert yarrow
clear mauve
#

uhh i don't get it alrd :/

clear mauve
#

im just asking for help

#

i can give u robux but it feels a littl troll ?

desert yarrow
#

for reference that is worth a little under usd$1 after devex, buy-in is about usd$3.50 if you buy at bulk rate without bonuses

clear mauve
#

uhh

#

what ?

#

i don't have usd in my country

desert yarrow
#

me either but it's a standard currency you can use to convert and gauge what 300 robuck is worth ;p