--local Util = require(game.ReplicatedStorage.Modules.Util)


game:GetService("UserInputService").InputBegan:Connect(function(input,gameprocessed)
	if input.KeyCode == Enum.KeyCode.LeftAlt then
		--Util:UnlockMouse("Admin")
	end
	if gameprocessed then
		return
	end
	if input.UserInputType == Enum.UserInputType.MouseButton1 and game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftAlt) then
		game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Mouse.Hit * CFrame.new(0,3,0)
	end
end)

game:GetService("UserInputService").InputEnded:Connect(function(input,gameprocessed)
	if input.KeyCode == Enum.KeyCode.LeftAlt then
		--Util:DeleteMouseUnlock("Admin")
	end
end)

game:GetService("UserInputService").InputBegan:Connect(function(input,gameprocessed)
	if not gameprocessed then
		if input.KeyCode == Enum.KeyCode.F2 then
			script.Parent.Enabled = not script.Parent.Enabled
			
		end
	end
end)
