Firstperson arms script drop fps depending on tool's model

When i was testing my game, I realized that there is fps drop when player equip tool while they are at firstperson.

Since they stop dropping fps when i disabled the firstperson arm script, I’m assuming that it’s caused by the that script.

As you can see in the video on above, FPS only drops in firstperson and tool with complex model.

Both of tool (Tool named “AK” and just “Tool”) that showed in video has none of script, Only difference is that “AK” tool has the motor6d weld on handle to make sure all part stays in position.

I also tried replacing motor6d with normal weld, But that didn’t fixed the fps drop.

This is the script that firstperson script i’m talking about:

local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

local camera = game.Workspace.CurrentCamera

game:GetService("RunService").RenderStepped:Connect(function()
	if (camera.Focus.p - camera.CoordinateFrame.p).Magnitude <= 1 then
		character["Right Arm"].LocalTransparencyModifier = 0.8
		character["Left Arm"].LocalTransparencyModifier = 0.8
	end
end)

Fps drop still only happens in firstperson even after deleting “if (camera.Focus.p - camera.CoordinateFrame.p).Magnitude <= 1 then)” line.

1 Like
local player = game:GetService("Players").LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local camera = game.Workspace.CurrentCamera

game:GetService("RunService").RenderStepped:Connect(function(dt)

game:GetService("RunService").RenderStepped:Wait(dt)

if (camera.Focus.p - camera.CoordinateFrame.p).Magnitude <= 1 then

character["Right Arm"].LocalTransparencyModifier = 0.8

character["Left Arm"].LocalTransparencyModifier = 0.8

end

end)
1 Like

That doesn’t seems to work for some reason :slightly_frowning_face:

1 Like

Doesn’t work as in it doesn’t fix the fps drop?

1 Like

Yes, I don’t think its my hardware problem since it can handle most roblox game with highest graphics so.

1 Like

I just realized that if i turn the LocalTransparencyModifier from 0.8 to 1, It seems stop the fps drop, which is really weird.

I don’t know if this is a bug with roblox or other.

2 Likes

I am like 99.99% sure that would be considered a bug. I can’t possibly see a reason why a transparency modifier would cause an fps drop at 0.8 compared to 1. Some things make sense like obviously parts being 0.1 transparency will be easier to render than parts with 1 transparency but what you are describing is basically it has so much difficulty rendering the 0.8 transparency that it wants the parts to be fully invisible.

1 Like

I’ll try report bug through the roblox support, Since i’m not using devforum long enough to post topic in bug report section, Thanks :slightly_smiling_face:

2 Likes