Trying to restrict shift to sprint for group members only

Hey, I want to make this shift to sprint script only work for group members, is there any way I can do that?
Here’s the code:

local speed = 50
local norm_spd = 16
local ke_y = Enum.KeyCode.LeftShift



local fovMax = { FieldOfView = 70 + (speed/5) }
local fovMin = { FieldOfView = 70 }
local thing = game.Workspace.CurrentCamera
local tween = game.TweenService:Create(thing, TweenInfo.new(0.4, Enum.EasingStyle.Sine), fovMax)
local tween2 = game.TweenService:Create(thing, TweenInfo.new(0.4, Enum.EasingStyle.Sine), fovMin)
local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input, processed)
   if processed then return end
   if input.UserInputType == Enum.UserInputType.Keyboard then
   		if input.KeyCode == ke_y then
       		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speed
			tween:Play()
			-- tween starts 1 and stops 2
   		end
	end
end)

UIS.InputEnded:Connect(function(input) 
	if input.KeyCode == ke_y then
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = norm_spd
		tween2:Play()
		-- tween starts 2 and stops 1
	end
end)

Anything helps, thanks.

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

if player:IsInGroup(12345689) then

local speed = 50
local norm_spd = 16
local ke_y = Enum.KeyCode.LeftShift



local fovMax = { FieldOfView = 70 + (speed/5) }
local fovMin = { FieldOfView = 70 }
local thing = game.Workspace.CurrentCamera
local tween = game.TweenService:Create(thing, TweenInfo.new(0.4, Enum.EasingStyle.Sine), fovMax)
local tween2 = game.TweenService:Create(thing, TweenInfo.new(0.4, Enum.EasingStyle.Sine), fovMin)
local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input, processed)
   if processed then return end
   if input.UserInputType == Enum.UserInputType.Keyboard then
   		if input.KeyCode == ke_y then
       		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speed
			tween:Play()
			-- tween starts 1 and stops 2
   		end
	end
end)

UIS.InputEnded:Connect(function(input) 
	if input.KeyCode == ke_y then
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = norm_spd
		tween2:Play()
		-- tween starts 2 and stops 1
	end
end)

end

It’s that simple.

Oh, wow. It sure is! Thank you very much, I appreciate it.