Is it the script or just my bad laptop thats causing my pc to overheat?

Okay so when i open up roblox studio my laptop fans start and it gets very loud and hot very quickly, I could even burn my hand if i hold my hand long enough on it. So I was wondering is it the script in roblox or is it just my shitty laptop.

Also please reply if i commented on the wrong category or could change the title to something more suitable. My laptop specs are, Proccesor: 11th Gen Intel(R) Core™ i5-1135G7 and graphicscard: NVIDIA GeForce MX450

So in my game there 3 folders at the moment that have about 107 doors combined from each folder. Inside each folder there 1 script that weilds my door togheter and yeah, makes them work properly. So there is 3 scripts. Please reply if the code could be improved in some way.

local tweenService = game:GetService("TweenService")

local skop = script.Parent:GetChildren()

local function Tween(object, goal, easingStyle, tweenTime)
	local tween = tweenService:Create(object, TweenInfo.new(tweenTime, easingStyle), goal)

	return tween
end

for i, model in pairs(skop) do
	if model:IsA("Model") then
		for i, part in pairs(model:GetChildren()) do
			if part ~= model.PrimaryPart and part:IsA("BasePart") then 
				local weld = Instance.new("WeldConstraint")
				weld.Parent = model.PrimaryPart
				weld.Part0 = model.PrimaryPart
				weld.Part1 = part
				

				part.Anchored = false
			end
		end
	end
end

for i, model in pairs(skop) do
	if model:IsA("Model") then 
		local open = false
		local debouce = false 

		local promt6 = Instance.new("ProximityPrompt")
		promt6.Parent =	model.Handle6
		promt6.ActionText = "Open"

		local promt8 = Instance.new("ProximityPrompt")
		promt8.Parent =	model.Handle7
		promt8.ActionText = "Open"

		promt6.Triggered:Connect(function(Player)
			if debouce == false then 
				debouce = true

				if open then
					open = false
					promt6.ActionText = "Open"
					promt8.ActionText = "Open"

					local tween = Tween(model.PrimaryPart, {CFrame = model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(100), 0)}, Enum.EasingStyle.Sine, 1)
					tween:Play()
				else 
					open = true 
					promt6.ActionText = "Close"
					promt8.ActionText = "Close"

					local tween = Tween(model.PrimaryPart, {CFrame = model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(-100), 0)}, Enum.EasingStyle.Sine, 1)
					tween:Play()
				end
				task.wait(1)
				debouce = false
			end
		end)

		promt8.Triggered:Connect(function(Player)
			if debouce == false then 
				debouce = true

				if open then
					open = false
					promt6.ActionText = "Open"
					promt8.ActionText = "Open"

					local tween = Tween(model.PrimaryPart, {CFrame = model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(100), 0)}, Enum.EasingStyle.Sine, 1)
					tween:Play()
				else 
					open = true 
					promt6.ActionText = "Close"
					promt8.ActionText = "Close"

					local tween = Tween(model.PrimaryPart, {CFrame = model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(-100), 0)}, Enum.EasingStyle.Sine, 1)
					tween:Play()
				end
				task.wait(1)
				debouce = false
			end
		end)
	end
end


It probably is your pc since I don’t see anything too taxing on performance other than maybe the proximity prompt triggered events.

It could also just be that maybe there is a lot of models in skop which is causing the script to do a lot of things and take up performance.

2 Likes

damn, do i really have that bad of a computer? Also the gpu is at 100% almost everytime open up roblox studio, is that something I shoulb be concerned about? Even though i have 16 gb of ram. Also theres like 7 parts inside the skop mode, and 30 skop models.

Anyways, thanks for the reply :grin:

If we knew the actual specifications of your computer we’d be able to truly know if it is your PC that’s having problems running the script.

But if you say your GPU already hits 100% usage when you open Studio, it’s probably safe to assume that you have no discrete graphics card. Integrated graphics are typically very weak and have minimal VRAM to work with, instead using the system RAM (which is typically slower and not specialised for graphical applications).

Unfortunately your only option is to upgrade, or make sure the graphical settings on Studio are turned all the way down. Upgrading is seldom cheap, especially when looking for laptops designed for creative or gaming applications, so I understand if upgrading is not an option!


I know how it feels to only have access to a terrible machine, I once had a laptop that reached 100% CPU utilization when you moved the mouse pointer with the trackpad.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.