Getting particle speed for slider GUI

I’m not sure how to implement a certain particle’s speed into this SliderGui script.
(I don’t know these sliders much)

-- Setting up unchanging variables
local bar = script.Parent.Bar;
local knob = bar.Knob;
local valueChangedEvent = script.Parent.ValueChanged;
local startXScale = -.05;
local endXScale = .95;
local mouse = game:GetService("Players").LocalPlayer:GetMouse()

-- Updates the position of the knob as well as the value
local prevValue = nil;
local function Update()
	local absPosition = script.Parent.Bar.AbsolutePosition.X;
	local absSize = script.Parent.Bar.AbsoluteSize.X;
	local mouseDelta = math.min(math.max(0, mouse.X - absPosition), absSize);
	local value = script.Parent.MinValue.Value + ((mouseDelta / absSize) * (script.Parent.MaxValue.Value - script.Parent.MinValue.Value));
	knob.Position = UDim2.new((mouseDelta / absSize) - .05, knob.Position.X.Offset, knob.Position.Y.Scale, knob.Position.Y.Offset);
	if (prevValue ~= nil and math.floor(prevValue) ~= math.floor(value)) then
		valueChangedEvent:Fire(prevValue, math.floor(value));
		prevValue = math.floor(value);
	else
		prevValue = math.floor(value);
	end
end

-- Coroutine to keep updating
local keepUpdating = false;
local function Updater()
	while (true) do
		if (keepUpdating) then
			Update()
		end
		wait(.05)
	end
end
local taskCoro = coroutine.create(Updater)
coroutine.resume(taskCoro);

-- Event Connecting
knob.MouseButton1Down:Connect(function()
	keepUpdating = true;
end)
local UserInputService = game:GetService("UserInputService")
UserInputService.InputEnded:Connect(function(inputObject)
	if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
		keepUpdating = false;
	end
end)

I’m not sure where to put a value for it in this sample script.

If you visit the Roblox developer tools, you can see the SliderGui's properties.

SliderGui.Value

Gets or sets the value of the slider, between 0 and 1.

Therefore, you can do ```local value = script.Parent.Value ``` to get the value of the slider, and you can do ```script.Parent.Value = 0.5 ``` to set the value of the slider.

As for the question at the end of the post, it looks like you’re trying to use SliderGuis to control particle emitters. This isn’t the best way to do that, because SliderGuis are more designed to control properties like volume, brightness, etc. Try using a NumberValue to control particle emitters instead.