Its probably a stupid mistake I have made like usual or I just did it wrong. Its a LocalScript if that helps Someone please look at it and try to help
local frame = script.Parent.Parent
local blur = game.Lighting:WaitForChild("Blur")
local player = game.Players.LocalPlayer
local output = script.Parent.Parent.Output
while true do
script.Parent.MouseButton1Click:Connect(function()
frame:TweenPosition(UDim2.new(-1,0,-0.052,0), "In", "Sine", 1.5)
wait(0.3)
repeat blur.Size = blur.Size - 0.1 wait(0.01) until blur.Size == 0
blur.Enabled = false
player.Character:MoveTo(Vector3.new(-202, 6.1, 44))
if blur.Size >= 0 then
blur.Size = 0
---------------------Class Module By Ki_ngPhantom---------------------
local lighting = game:GetService("Lighting")
local guns = lighting.Guns
local pack = player.Backpack
if output.Text == "Class: Assault" then
local AKM = guns.Assault.AKM:Clone()
AKM.Parent = pack
local M9 = guns.Assault.M1911
M9.Parent = pack
end
end
end)
end

3 comments
Instead of Lighting, use ReplicatedStorage unless its a folder.
First, whats the error you're getting? Also you don't need that "while true do" because the code will only run if the button is click.
No error, just nothing. But I know the problem know anyway. It was I had FE on for testing and I din't turn it off. Now I have and the game is just freezing. I have made another question on, go check it out.