Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Make that load after death? Xd SOLVED

hEY Ho I have an script for R6 Arms in FP Camera

wait(1.1)
local player = game.Players.LocalPlayer
local rightArm = player.Character["Right Arm"]:Clone()
local leftArm = player.Character["Left Arm"]:Clone()
player.Character["Right Arm"].Transparency = 1
player.Character["Left Arm"].Transparency = 1
local model = Instance.new("Model", game.Workspace)
local Humanoid = Instance.new("Humanoid", model)

rightArm.Parent = model
leftArm.Parent = model
local RightWeld = Instance.new('Weld', rightArm)
RightWeld.Part0 = rightArm
RightWeld.Part1 = player.Character["Right Arm"]
local LeftWeld = Instance.new('Weld', leftArm)
LeftWeld.Part0 = leftArm
LeftWeld.Part1 = player.Character["Left Arm"] -- Thankz to Apoc Yokkee for basic script

It workz perfectly but i'm not sure how to make that load again after the character die cause this script is in StarterPlayerScripts Well i want easy help PS. I make a really good simulation game.

1 comment

0

What is easy help?

1 answer

✓ Accepted answer

You don't need to weld the arms or any cloning!! Let me tidy this up for you.

-- LocalScript inside StarterGui

wait()
local plr = script.Parent.Parent
local char = plr.Character or plr.CharacterAdded:Wait()
local children = char:GetChildren()

while wait() do -- This would work fine but after they died this would stop working, so I had to wrap it in 2 loops.
    while wait() do
        game:GetService("RunService").RenderStepped:Wait()
            for _, v in pairs(children) do
                if v.Name:match("Hand") or v.Name:match("Arm") then
                    v.LocalTransparencyModifier = 0
                end
            end

    end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.