I think the second one is where the issue is, could you send it (or snippet) of it?
here it is
local char = plr.Character
local hum = char:FindFirstChildOfClass("Humanoid")
local camera = workspace.CurrentCamera
local runserv = game:GetService("RunService")
local rightarm = char:FindFirstChild("Right Arm")
local tool = rightarm:FindFirstChild("MosinNagant")
hum.CameraOffset = Vector3.new(0, 0, -0.65)
local function bodytrans(x, transparency)
for i,v in pairs(x:GetChildren()) do
if v:IsA("Part") then
v.LocalTransparencyModifier = transparency
end
end
end
local function guntrans(x, transparency)
for i,v in pairs(x:GetChildren()) do
if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("UnionOperation") or v:IsA("Tool") then
v.LocalTransparencyModifier = transparency
v.Transparency = 0
end
end
end
local function setheadtrans(transparency)
local head = char:FindFirstChild("Head")
if head then
head.LocalTransparencyModifier = transparency
head:FindFirstChildWhichIsA("Decal").Transparency = transparency
end
end
runserv.RenderStepped:Connect(function()
bodytrans(char, 0)
setheadtrans(1)
guntrans(tool, 0)
end)```
I think nothing is wrong here, could you show the other script?
local char = plr.Character
local hum = char:FindFirstChildOfClass("Humanoid")
local camera = workspace.CurrentCamera
local runserv = game:GetService("RunService")
local rightarm = char:FindFirstChild("Right Arm")
local tool = rightarm:FindFirstChild("MosinNagant")
hum.CameraOffset = Vector3.new(0, 0, -0.65)
local function bodytrans(x, transparency)
for i,v in pairs(x:GetChildren()) do
if v:IsA("Part") then
v.LocalTransparencyModifier = transparency
end
end
end
local function guntrans(x, transparency)
for i,v in pairs(x:GetChildren()) do
if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("UnionOperation") or v:IsA("Tool") then
v.LocalTransparencyModifier = transparency
v.Transparency = 0
end
end
end
local function setheadtrans(transparency)
local head = char:FindFirstChild("Head")
if head then
head.LocalTransparencyModifier = transparency
head:FindFirstChildWhichIsA("Decal").Transparency = transparency
end
end
runserv.RenderStepped:Connect(function()
bodytrans(char, 0)
setheadtrans(1)
guntrans(tool, 0)
end)```
That’s the same script though.
i hit ctrl a but forgot to copy.
local character = script.Parent
local VM = game.ReplicatedStorage.VM.VM:Clone()
VM.Parent = workspace.CurrentCamera
local leftShoulder = character.Torso["Left Shoulder"]
local rightShoulder = character.Torso["Right Shoulder"]
runService.RenderStepped:Connect(function()
VM:SetPrimaryPartCFrame(workspace.CurrentCamera.CFrame + workspace.CurrentCamera.CFrame.LookVector * 0)
local dist = (workspace.CurrentCamera.CFrame.Position - character.Head.Position).Magnitude
if dist < 1 then
rightShoulder.Part0 = VM.Torso
leftShoulder.Part0 = VM.Torso
else
rightShoulder.Part0 = character.Torso
leftShoulder.Part0 = character.Torso
end
end)```
yes
(kumqlalakumalalakumalasavesta)